r/lolphp • • Sep 19 '17

HHVM dropping PHP

http://hhvm.com/blog/2017/09/18/the-future-of-hhvm.html
69 Upvotes

31 comments sorted by

View all comments

0

u/[deleted] Sep 21 '17

[deleted]

1

u/fred_emmott Sep 21 '17 edited Sep 21 '17

Eventually we're hoping to drop all the PHP stuff we don't like; for now, we're building replacements, and keeping the existing ones until "pure hack" projects are practical. For hack arrays, strings, and math operations, that's in the HSL, and we'll be adding more - and consistency/predictability is one of the primary goals behind that project.

Though yes, it's another standard library :p https://xkcd.com/927/

1

u/[deleted] Sep 22 '17

Why not Python, Ruby, Ocaml or Haskell .... Anything else? What does Hack have over them?

3

u/fred_emmott Sep 22 '17

It's very hard to answer this without getting into one of the usual language wars, but I'll try for Python and Ruby:

  • some parts of PHP are awesome for web development - e.g. the idea that a request is the entire lifecycle of your program. This isn't just about dev workflow - the 'nothing is shared between requests unless you explicitly store it somewhere' thing is great

  • the hack typechecker

Python and Ruby also both have things they do better than Hack and PHP; which one is 'best' depends heavily on the context.

I've not worked enough with Ocaml or Haskell to try to answer for them.

1

u/[deleted] Sep 22 '17

Interestingly I actually have to agree with your reasoning.

You're right today is not a day for a language war. Have you played with haxl?