Care2x Development Blog

All the news regarding Care2x development

Hip-Hop for PHP or a New Beat in Town

HipHop 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.


We have also developed HPHPi, which is an experimental interpreter designed for development. When using HPHPi you don’t need to compile your PHP source code before running it. It’s helped us catch bugs in HipHop itself and provides engineers a way to use HipHop without changing how they write PHP.

Well! It seems that it is here!


Filed under: General, , , , , , ,

New JIT PHP Compiler

It seems that Facebook is working on a new PHP compiler that will fasten a lot how PHP runs on servers. This would be of major importance — if it becames FL/OSS — to big projects like Care2x.

Most of Care2x code does not change so often so it will be really neat if it was compiled hence, as Crowley said, “A JIT (Just In Time) compiler compiles frequently-executed portions of the program to machine code for speed while maintaining the flexibility of interpreted code” and this will dramatically improve Care2x usability in high demand environments like urgency units.

Of course, we already have APC, Memcache and eAccelerator and Facebook uses for quite some time APC but I too think that this could be a neat enhancement to those and a new option to choose from is always good. And better if it is released under some sort of truly Free and Open Source License.

Filed under: c3x, New Directions, , , ,


c2x development

Top Posts