From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2823CBC6C for ; Thu, 16 Aug 2007 18:26:15 +0200 (CEST) Received: from pih-relay06.plus.net (pih-relay06.plus.net [212.159.14.133]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7GGQEwD008833 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 16 Aug 2007 18:26:14 +0200 Received: from [80.229.56.224] (helo=beast.local) by pih-relay06.plus.net with esmtp (Exim) id 1ILiAo-00014e-4P for caml-list@yquem.inria.fr; Thu, 16 Aug 2007 17:26:14 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Re: JIT VM in OCaml: Impossible? Date: Thu, 16 Aug 2007 17:15:00 +0100 User-Agent: KMail/1.9.7 References: <5C180944-2CD9-48FB-8802-8AF57972AD2C@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708161715.01002.jon@ffconsultancy.com> X-Miltered: at concorde with ID 46C47AA6.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 runtime:01 staged:01 metaocaml:01 2007,:98 frog:98 wrote:01 wrote:01 cristal:01 caml-list:01 seems:03 gnu:03 library:03 inria:06 On Thursday 16 August 2007 15:37:09 Sylvain Le Gall wrote: > On 16-08-2007, Joel Reymont wrote: > > Folks, > > > > Is it possible to write a JIT VM in OCaml? > > > > It seems that this should not be possible as OCaml does not allow for > > code generation at runtime. Am I mistaken? > > > > Thanks, Joel > > What about : > http://cristal.inria.fr/~starynke/ocamljit.html As others have said, Joel wants to write a JIT in OCaml rather than for OCaml. Although the OCamlJIT project was a nice idea, it is based upon the now-dead GNU Lightning library and its functionality was more recently displaced by the much more performant ocamlnat. However, I think tools to enable JIT writing using OCaml would be most welcome. Not only the safe staged metaprogramming approach of MetaOCaml but also direct code generators. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists/?e