Re:Facebook rewrites PHP runtime, will open source on Tuesday
by wvenable on Sunday January 31, 2010 @01:14AM
(#1090123)
The idea is probably to compile PHP into machine code rather than byte code.
[ Parent
| on HN ]
Re:Facebook rewrites PHP runtime, will open source on Tuesday
by bad_user on Sunday January 31, 2010 @02:28AM
(#1090211)
I know you're thinking machine code must be better than byte-code, but that doesn't do any good, quite the opposite.
With byte-code you can compile sections of code to machine-code, based on runtime profiling / type-inference (as the JVM does). With ahead-of-time compiling to machine code, you're probably going to end up with a serialization of the PHP code in the final executable, plus an interpreter :)