r/programming • • Mar 20 '14

Facebook introduces Hack: a new programming language for HHVM

https://code.facebook.com/posts/264544830379293/hack-a-new-programming-language-for-hhvm/
802 Upvotes

526 comments sorted by

View all comments

0

u/XenGi Mar 21 '14

So as of the examples I found the language looks exactly like PHP. Why should there be another ugly language nobody can write correctly?

1

u/gclaudiu Mar 21 '14

I doubt that if you take a Hack file and remove the pesky dollar signs you'll see it the same way. What Hack adds on top of PHP is immediately visible once you start using the language.

0

u/albeva Mar 21 '14

trolling aside...

PHP is everywhere. Most websites you visit are probably written in PHP. Including Facebook. PHP for all its warts remains one of the most productive and newby friendly web languages. This means there are many PHP developer available - this drives the PHP proliferation across the web.

In ideal world everyone would move to "super duper awesome technology" over night. In reality it is not possible to rewrite massive codeboses and retrain all the developers.

Hack ads some features sorely missing in normal PHP and aims to make the code more maintainable and less error prone. I don't choose to think of hhvm/hack as a new language - rather an evolution of PHP. You should check out hacklang.org for particular changes and updates.