From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 EF26FBB84 for ; Wed, 28 Jun 2006 18:42:33 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k5SGgYQ0018468 for ; Wed, 28 Jun 2006 18:42:34 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA22270 for ; Wed, 28 Jun 2006 18:42:33 +0200 (MET DST) Received: from [128.93.11.101] (buzet.inria.fr [128.93.11.101]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k5SGgWBF018465 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Jun 2006 18:42:32 +0200 Message-ID: <44A2B119.1020203@inria.fr> Date: Wed, 28 Jun 2006 18:40:57 +0200 From: Alain Frisch User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 To: David MENTRE Cc: caml-list@inria.fr Subject: Re: [Caml-list] [announce] XStream: streaming XML transformation References: <44A29ED1.6000207@inria.fr> <3d13dcfc0606280923m2930398cw7346bb6b6f97e442@mail.gmail.com> In-Reply-To: <3d13dcfc0606280923m2930398cw7346bb6b6f97e442@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 44A2B17A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 44A2B178.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; frisch:01 frisch:01 ocaml:01 bytecode:01 ocaml:01 compares:01 ocamlduce:01 ocamlduce:01 wrote:01 caml-list:01 native:02 data:02 functional:02 output:02 output:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Hello David, David MENTRE wrote: > It seems obvious but I want to be sure: can XStream generated code be > embedded in OCaml programs (native and bytecode)? Currently, XStream generates only a fully functional executable transformaion which reads its input from an XML file and send its output to the standard output. It would be quite simple to have it generate an OCaml module which exports a ``filter'' function (a transformer of XML event streams) if there is some demand for such a feature. > How XStream compares to OCamlDuce? OCamlDuce is intended to write large OCaml applications which need to manipulate XML data. XStream is really meant as an XML transformation tool. In particular, to achieve efficient streaming, XStream keeps control over the evaluation of the transformation as a whole. OCamlDuce, instead, relies on the regular OCaml evaluation mechanism. > So XStream cannot be used as a replacement to > OCamlDuce. Is it correct? Yes it is. Regards, Alain