5 ms·
I wonder how stock PHP is stacking up to Hack both from the dimensions of efficiency, safety, and productivity these days.
by ilovecaching 7y ago
I wonder how stock PHP is stacking up to Hack both from the dimensions of efficiency, safety, and productivity these days.
- tylerjwilk00 7y agoThe Hack HHVM JIT is typically more performant than standard PHP 7. However, that is more of an apples to oranges comparison of JIT vs Non-JIT than Lang to Lang comparison. That said, PHP 7 has squeezed most of the performance from the language and the low hanging fruit is gone. However, PHP 8 looks to bring a standard JIT to PHP [1]. I'd guess that once that happens Hack / HHVM may no longer have any advantage. [1] https://hub.packtpub.com/php-8-and-7-4-to-come-with-just-in-time-jit-to-make-most-cpu-intensive-workloads-run-significantly-faster/ https://hub.packtpub.com/php-8-and-7-4-to-come-with-just-in-...
- judge2020 7y agoJust to add (you didn't say otherwise), PHP on HHVM is EoL'd https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html https://hhvm.com/blog/2018/09/12/end-of-php-support-future-o....
- tyingq 7y ago"PHP on HHVM is EoL'd" True that you shouldn't expect large existing PHP projects to run. But, the syntax is close enough that for net new projects, it's essentially PHP.
- tyingq 7y agoHack supports async in a way that's production ready: https://docs.hhvm.com/hack/asynchronous-operations/some-basics https://docs.hhvm.com/hack/asynchronous-operations/some-basi... The built in webserver, Proxygen, is also usable in production and supports TLS, http/2, etc.