About HipHop
Thu, 12/15/2011 - 00:40
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

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