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

Show parent comments

0

u/[deleted] Mar 20 '14

[deleted]

49

u/[deleted] Mar 20 '14

These are brilliant suggestions. If we hire you, can you please plan to have them all completed by the end of Q3?

19

u/Error401 Mar 20 '14

spend a year rewriting Facebook

What could possibly go wrong?

0

u/[deleted] Mar 20 '14

[deleted]

5

u/epiphany47 Mar 20 '14

canttelliftrollingornot?

1

u/Smallpaul Mar 21 '14

I'm upvoting him either way! Best entertainment I've had today.

4

u/gordonkristan Mar 20 '14

Static typing is not the only improvement that they made with Hack. And even if it was, given the potential performance benefits, I would say that it is worth it to add static type-checking to a language.

4

u/thedeemon Mar 20 '14

They've got millions of lines of code there. Rewriting is not an option.

4

u/TJSomething Mar 20 '14

My guesses are:

  • Because the LLVM doesn't do JIT compilation.

  • Because they tried automatic translation to C++ and it didn't work.

  • Because they are trying to avoid the second system problem.