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.2 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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 2C24CBBCA for ; Fri, 21 Mar 2008 15:37:30 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvcAADFl40fOvjGsfGdsb2JhbACRDQEBCwUCBQkWmFw X-IronPort-AV: E=Sophos;i="4.25,536,1199660400"; d="scan'208";a="8665753" Received: from web54602.mail.re2.yahoo.com ([206.190.49.172]) by mail2-smtp-roc.national.inria.fr with SMTP; 21 Mar 2008 15:37:29 +0100 Received: (qmail 48190 invoked by uid 60001); 21 Mar 2008 14:37:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=b3OAKelJWPtMq89HGd4lNTvK3pVdrh8QWaYiRLgvAeRgc6jYy23FnWNbSEJiQfAKOXTihruTNUH0eZh1O5DdcgHONI8QWsUaICwRoYBaWX0kN5gYarRW0R828wlZ1ZDpFRjMrLUstEokBKTWbX1ZBcv5NSP+1h6Z97uUs9pJ6ls=; X-YMail-OSG: gSXdfUYVM1kDE6xbSQaxUfY6O_idZcYfLUeduLbf Received: from [85.244.12.183] by web54602.mail.re2.yahoo.com via HTTP; Fri, 21 Mar 2008 14:37:28 GMT Date: Fri, 21 Mar 2008 14:37:28 +0000 (GMT) From: Dario Teixeira Subject: Re: [Caml-list] Long-term storage of values To: Gerd Stolpmann Cc: caml-list@yquem.inria.fr In-Reply-To: <1206049386.3295.18.camel@flake.lan.gerd-stolpmann.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <905079.47901.qm@web54602.mail.re2.yahoo.com> X-Spam: no; 0.00; ocamlnet:01 model:01 notation:01 ocaml:01 ocaml's:01 marshalling:01 cheers:01 caml-list:01 functions:01 functions:01 data:02 defined:02 btw:03 guess:04 correctly:04 > No, there is a generator for that in Ocamlnet. ocamlrpcgen can be used > to generate these functions. Hi, If I remember correctly, the model with XDR+rpcgen is that the data type is defined in a special XDR notation, which ocamlrpcgen will then use to generate the Ocaml type and the (de)serialisation functions. Though XDR offers a fairly rich type set, it's not quite as versatile as Ocaml's. I just wonder if this will lead to situations where one would rather write the (de)serialisation functions by hand instead of relying on the poorer expressiveness of the automatic generators. Btw, do you have any numbers concerning XDR performance? My guess is that this would be the fastest method after Marshalling. Cheers, Dario __________________________________________________________ Sent from Yahoo! Mail. More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html