FaceBook releases the HipHop PHP to C++ cross compiler as open sourceHipHop for PHP isn't technically a compiler itself. Rather it is a source code transformer. HipHop programmatically transforms your PHP source code into highly optimized C++ and then uses g++ to compile it. HipHop executes the source code in a semantically equivalent manner and sacrifices some rarely used features — such as eval() — in exchange for improved performance. HipHop includes a code transformer, a reimplementation of PHP's runtime system, and a rewrite of many common PHP Extensions to take advantage of these performance optimizations. Wow. At first I thought this was just another opcode cache like APC or eAccelerator but it looks like this is much more. It will be very interesting to see real world numbers on speed improvements, but if FaceBook is happy with the results that is a pretty strong endorsement.
|
- jim 2-03-2010 2:03 pm