3 ms·
Welp, so much for “PHP has JIT too.”
by aasasd 8y ago
Welp, so much for “PHP has JIT too.”
- singlow 8y agoThe official PHP JIT branch is nearing release which would have made HHVM less relevant. I think it is expected to be in 8.0, whenever that hits.
- mgkimsal 8y agoMy understanding is that a PHP 8, as it stands right now, is looking like Nov 2020.
- ehnto 8y agoThey increased performance of the language enough that it caught up to HHVM. PHP7 is wildly faster than previous PHP versions. In other words, HHVMs value proposition of speed is no longer as relevant. PHP is still working on a JIT implementation but I honestly don't think it's that important for now.
- thawkins 8y agoPHP 7 has Zend OPtimizer built in, basically a caching bytecode compiler. Previous versions used to use the APC extension to serve the same purpose.
- bpicolo 8y agoThat's distinct from JIT - it's just a way to prevent having to re-parse/compile to byte code every single request to your site (no other language has this issue)
- ars 8y ago> no other language has this issue Because no other language is as easy to deploy. With PHP you edit the PHP file, and that's it. It's deployed. No clearing cache, no compiling, packaging, nothing. It's one of the major factors in how good of a language it is. If it's needs this optimization as a result of that, it's completely worth it, and other languages should copy that.
- bpicolo 8y ago> Because no other language is as easy to deploy Nah, it's because PHP isn't an actively running process. The overhead of starting a process isn't what it used to be in shared web infra world before. It's cheap to spin up a small VM now. And there are other similar constructs, e.g. FaaS