4 ms·
Facebook doesn't technically run PHP anymore; they transform their PHP into C++ and run that because PHP is too slow. https://github.com/facebook/hiphop-php ht
by getsat 15y ago
Facebook doesn't technically run PHP anymore; they transform their PHP into C++ and run that because PHP is too slow.
https://github.com/facebook/hiphop-php https://github.com/facebook/hiphop-php
- eurleif 15y agoUsing a compiler doesn't mean your code isn't written in the source language.
- getsat 15y agoI didn't say that they don't write it, I said that they don't actually run it. :)
- eurleif 15y agoBy that logic, they don't run C++ either; they run machine code. So does everyone else.
- jrockway 15y agoBut to be fair, their PHP is a subset of the official PHP, and they probably use all of their own libraries (rather than the ones you have access to outside of Facebook). So if you want Facebook to be your PHP success story, all you get out of it is "PHP didn't kill their company; they were eventually able to move away", which I suppose is not exactly a swimming endorsement.