On 11/19/2010 8:46 PM, Dario Teixeira wrote:
Actually, Facebook has a compiler that transforms PHP source code into C++ [1],
and they claim a 50% reduction in CPU usage.

I haven't looked into this project, but I've a hard time believing this is a better approach than compiling PHP to Javascript. The translation would probably produce quite idiomatic Javascript code on which modern interpreters do an amazing job (and they keep improving). These interpreters focus on optimizing what made naive Javascript interpreters so slow and I assume the typical PHP interpreter has poor performance for the same reasons.

-- Alain

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to