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.0 required=5.0 tests=AWL,DNS_FROM_SECURITYSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 65A33BBAF for ; Thu, 23 Oct 2008 16:54:58 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwAAJwtAEnU4366i2dsb2JhbACBdpF6AQEBCgsKBw8FrG0Bg00 X-IronPort-AV: E=Sophos;i="4.33,470,1220220000"; d="scan'208";a="19092288" Received: from moutng.kundenserver.de ([212.227.126.186]) by mail1-smtp-roc.national.inria.fr with ESMTP; 23 Oct 2008 16:54:58 +0200 Received: from gate.lan.gerd-stolpmann.de (dslb-088-068-193-126.pools.arcor-ip.net [88.68.193.126]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1Kt1aR33ch-00032z; Thu, 23 Oct 2008 16:54:55 +0200 Received: from [192.168.0.32] (fw.lan.gerd-stolpmann.de [192.168.1.1]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 78401C077; Thu, 23 Oct 2008 16:54:55 +0200 (CEST) Subject: Re: [Caml-list] Serialisation of PXP DTDs From: Gerd Stolpmann To: Dario Teixeira Cc: caml-list@yquem.inria.fr In-Reply-To: <51474.6143.qm@web54606.mail.re2.yahoo.com> References: <51474.6143.qm@web54606.mail.re2.yahoo.com> Content-Type: text/plain Date: Thu, 23 Oct 2008 16:55:48 +0200 Message-Id: <1224773748.7340.51.camel@flake.lan.gerd-stolpmann.de> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+N1b5/9/4gGTouQi93eB0dbNQ9mbsCI2JiRoO IIAKLyIxKmq7MtQ7rE5BHWuuqj+zeppnC2xps6+ZGFK8xStvU8 gnflewQ/oWz6wq462l3JQm7KEtdBcpl X-Spam: no; 0.00; pxp:01 dtds:01 gerd:01 stolpmann:01 pxp:01 dtds:01 overlooking:01 serialize:01 gerd:01 cheers:01 beginner's:01 ocaml:01 bug:01 stolpmann:01 viktoriastr:01 Am Mittwoch, den 22.10.2008, 13:11 -0700 schrieb Dario Teixeira: > Hi, > > I am using PXP to parse the MathML2 DTD. This is a fairly large DTD, > which even on a fast machine takes several seconds to parse. I am > therefore looking at ways to serialise a parsed DTD, in a such a way > that it can be reused by other processes. > > Does PXP already offer primitives for (un)serialising DTDs? (I couldn't > find any). Note that using Marshal is out of the question, because DTDs > are stored as objects, and we all know that objects cannot be serialised > across process boundaries. But are there alternative solutions I'm > overlooking? No, there is currently no built-in function to serialize DTD's. The DTD objects are, however, mostly containers, and you can get all their properties by invoking methods of the object interface. That allows it to do your own serialization. You are a bit dependent on the PXP version then, but I don't think the interface of DTD's will change anytime soon. Gerd > > On a more general but related note, I think we should start an OSP > discussion about standardising serialisation methods. The rationale > should be obvious. Myself, I am partial to Sexplib, since it is > reasonably fast, very simple to use, human-readable, and future-proof. > I reckon that bin-prot could also be considered, as long as at some > point the binary format is "set in stone", or at least deserialisers > are always backwards compatible. Any other opinions? > > Thanks for your time! > Cheers, > Dario Teixeira > > > > > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------