HipHop for PHPToday, Facebook shared one of its cool project – HipHop for PHP.

What is the use?
HipHop can reduce the CPU usage at the server even by 50% depending on the page executing PHP code. Reducing the overhead this way, it can help in scaling complex php websites. As per Facebook latest news, HipHop has shown incredible results for Facebook.

How It optimizes?
HipHop doesn’t work like a compiler technically, instead 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.

It’s not complete yet, but beta software can be tried before trying it out. I need to still try it out.

Some useful links:

  • Twiki : http://github.com/facebook/hiphop-php/wikis
  • Dev mailing List : http://groups.google.com/group/hiphop-php-dev
  • Source News : http://developers.facebook.com/news.php?blog=1&story=358
If you enjoyed this post, make sure you subscribe to my RSS feed!!!!

No related content found.