From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 8C25EBC88 for ; Mon, 7 Feb 2005 18:35:55 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j17HZsQn015607 for ; Mon, 7 Feb 2005 18:35:55 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA15279 for ; Mon, 7 Feb 2005 18:35:54 +0100 (MET) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j17HZr3p015602 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 7 Feb 2005 18:35:54 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1CyClT-0006mB-1G for caml-list@inria.fr; Mon, 07 Feb 2005 18:33:35 +0100 Received: from host103-167.pool8249.interbusiness.it ([82.49.167.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2005 18:33:35 +0100 Received: from vincenzo_yahoo_addressguard-gmane by host103-167.pool8249.interbusiness.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2005 18:33:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Vincenzo Ciancia Subject: Re: OCaml expression evaluated in a OCaml program Date: Mon, 07 Feb 2005 18:21:14 +0100 Message-ID: References: <4207705F.4030501@nemoworld.info> <4207948D.6030705@yahoo.fr> <420793B9.3020504@neometsys.fr> <200502071647.29407.jon@jdh30.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host103-167.pool8249.interbusiness.it User-Agent: KNode/0.8.2 Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: gclci-caml-list@m.gmane.org X-MailScanner-To: caml-list@inria.fr X-Miltered: at nez-perce with ID 4207A6FB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4207A6F9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 wrote:01 ocamlopt:01 marshalling:01 compiler:01 humps:01 compilers:01 attenzione:98 l'indirizzo:98 posta:98 nel:98 campo:98 expression:01 data:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Jon Harrop wrote: > > I've done exactly this though, by spitting out an ocaml program, compiling > it with ocamlopt (linked against the running program) and invoking it > using marshalling to shuffle data back and forth. This is quite easy to > implement and is the simplest way to write a JIT compiler in ocaml. I believe there are "eval" implementations in the humps or around on the net - there are also on-the-fly compilers and loaders. V. -- Please note that I do not read the e-mail address used in the from field but I read vincenzo_ml at yahoo dot it Attenzione: non leggo l'indirizzo di posta usato nel campo from, ma leggo vincenzo_ml at yahoo dot it