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=1.2 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id AAF60BC69 for ; Wed, 28 Mar 2007 14:49:28 +0200 (CEST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2SCnRxx025830 for ; Wed, 28 Mar 2007 14:49:28 +0200 Received: by wr-out-0506.google.com with SMTP id q50so2282918wrq for ; Wed, 28 Mar 2007 05:49:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E35gtAEuKVsNR4U1++D2Vb+LEz5IAmVOV9fUrWf/qWHmT2zSuBZcKePktJ4QGzjV2Ra2unhC8cX/16RqiVAI4ryjU9bh5CmqqEo1aEfnEHXs0dangwkEqVjwScPQI0iZkugfQj0haOv21Q5oFoafvhJDsztXwtYPmZ9EpxAeOTY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S/jECeuqFOlJS84t7X4WYMCNcaGuMlR9NtS6LL0yQAt30SnYRBY7tyOOyFBMEt80VFIL8gDQoMNG6bhhcWyP3Piyo5CL1YYKY4xvjbY8o1xPaMRd73yip9mE+KUkhf+YTj/N/kFzVSzoDJa6JtG/FmSFIgCAivPsHz4w8v89B90= Received: by 10.114.46.1 with SMTP id t1mr3695527wat.1175086166069; Wed, 28 Mar 2007 05:49:26 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Wed, 28 Mar 2007 05:49:26 -0700 (PDT) Message-ID: Date: Wed, 28 Mar 2007 14:49:26 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: [Caml-list] Calling OCaml from Ruby Cc: "Caml List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-j-chkmail-Score: MSGID : 460A6457.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 460A6457.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 translated:01 28,:98 2007,:98 sever:98 wrote:01 wrote:01 imho:01 caml-list:01 data:02 seems:03 depends:04 translate:04 arguments:07 On 3/28/07, Joel Reymont wrote: > The use is straightforward. I need to call a translate function in > OCaml and that should return either the translated code or an error > with the error location. IMHO since there is one function with simple arguments the C solution will be better. > > On Mar 28, 2007, at 10:43 AM, Nicolas Pouillard wrote: > > > Using C to make the bridge seems good. > > > > You can also use some client/sever protocol using some serialization > > data format like JSON. > > > > It mainly depends on the use of that OCaml code. > -- Nicolas Pouillard