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

42

u/lickyhippy Mar 20 '14

I get that Facebook has a huge involvement already with a PHP codebase, and I'm grateful for all the work that they do (HipHop, Hack/HHVM), but the fact they basically needed to rewrite the language to not be shit really says something about PHP.

I mean, /r/lolphp/ , just pick anything from there.

9

u/catcradle5 Mar 21 '14

They had to rewrite not only the language (with Hack), but also the entire interpreter (with HHVM).

(To be fair to them, PHP is almost a full subset of Hack though, according to their docs.)

12

u/[deleted] Mar 20 '14

Just imagine the loss of traffic to /r/lolphp if hack takes off :(

6

u/faitswulff Mar 21 '14

Same goes for Dart, Google's rewrite of JavaScript.

→ More replies (1)

3

u/leofidus-ger Mar 21 '14

I would say that the fact that PHP is still this popular says a lot about the lack of other languages properly filling PHPs role. For fast, php-style web development, the list of serious competitors is amazingly short.

3

u/[deleted] Mar 20 '14

So? Typescript does the same thing to javascript as hack does to php. You don't see people complaining.

11

u/thedeemon Mar 21 '14

There is no shortage of people complaining about JS. And yes, TypeScript does the same thing, shows how bad JS is.

2

u/UloPe Mar 22 '14

The difference is that JS for the most part isn't crush-your-head-on-an-anvil bad

→ More replies (2)