3 ms·
Yes, both are replacing some PHP/Python bits with C++ AFTER scaling to billions of users... Still curious what the power savings are... I'm sure they've done
by Mikeb85 5y ago
Yes, both are replacing some PHP/Python bits with C++ AFTER scaling to billions of users...
Still curious what the power savings are... I'm sure they've done enough profiling to know their performance is increasing. But are they saving energy? How about the compilation cycles to get to where they are? The carbon footprint of the additional employees? Etc...?
- colanderman 5y agoFacebook runs PHP via their own JIT, HHVM (https://en.wikipedia.org/wiki/HHVM https://en.wikipedia.org/wiki/HHVM). Researching a bit now it appears they've actually migrated to their own subset of PHP called Hack, which is measured in the benchmark, and looks more efficient than even some compiled languages in that benchmark.
- notacoward 5y ago> How about the compilation cycles When the code will be deployed on 10K-1M machines, compilation costs are noise. In fact, FB does all sorts of expensive optimizations to ensure that the deployed executables are as efficient as possible, and the effort is worth it many times over. I'm sure the same is true at Google and elsewhere.