English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
OCamlJit 2.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-24 (07:20)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] OCamlJit 2.0
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