Friends
| HipHop for PHP announced |
|
|
|
| Written by Nate Lyman |
| Wednesday, 03 February 2010 17:15 |
|
Facebook has implemented HipHop for PHP on it's own site and has seen a reduction in CPU cycles in upwards of 50%. For a site that serves 400 billion page view a month that is substantial. While 50% efficiency gains on your server are amazing, HipHop for PHP is really directed at large scale PHP implementations. For your average business website or blog it would be total overkill. But complex web applications it is a game changer to say the least. At a macro level the way HipHop for PHP works is fairly straight forward. It takes your PHP, generates C++ code, then compiles it with the g++ compiler. To do this Facebook had to re-write a version of the PHP parsing engine, and turn PHP type-less variables to typed variables using a type-inference engine. The type-inference engine is smart enough to look at your code and decide which variable is an array, object, int, string, etc...
|
| Last Updated on Wednesday, 03 February 2010 17:18 |




Yesterday, 