About HipHop

Login or register to post comments
2 replies [Last post]
Offline
Joined: 10/11/2010

Hello all,

I was just checking the HipHop that FB developed to fire up its performance 2X on PHP. In case one does not know, HipHop is a code converter which converts (and compiles, in case you ask it to) PHP code into C++ code. C++ being COMPILED and NOT INTERPRETED runs really a LOT faster. I could not get time to try my hands on it.

Can anyone here tell me whether QCubed based code can be converted to C++ using HipHop or not? Waiting for a reply :)

Vaibhav

Offline
Joined: 02/02/2010

Hi,
I don't know if QCubed would work with HipHop, but there is news on HipHop.
Facebook puts out the "HipHop Virtual Machine". It could be seen as a just in time compiler for HipHop. The performance should be about the same as with HipHop but it is not finished yet.

vakopian's picture
Offline
Joined: 04/08/2008

According to this page: http://terrychay.com/article/hiphop-for-faster-php.shtml/2
HipHop does not (and will never) support the eval() function. This means that at list QDataGrid will not work with HipHop. Also, since codegen heavily relies on eval() (and $$ which is also not supported by HipHop), it should be excluded when compiling with HipHop.

Other links related to PHP code optimisation:
http://en.wikipedia.org/wiki/PHP#Compilers
http://en.wikipedia.org/wiki/PHP#Speed_optimization