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,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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id A06EFBBCA for ; Thu, 28 Feb 2008 21:01:09 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAMuhxkfRVcithmdsb2JhbACDIY1QAQEBBwUEExiVSodR X-IronPort-AV: E=Sophos;i="4.25,421,1199660400"; d="scan'208";a="23178180" Received: from wf-out-1314.google.com ([209.85.200.173]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Feb 2008 21:01:08 +0100 Received: by wf-out-1314.google.com with SMTP id 25so3128726wfa.15 for ; Thu, 28 Feb 2008 12:01:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=6N11tF//bOUIVLBKTEy9BHhHRJ+/GDPTQym9rGwIyYw=; b=g5qfAJ3VdIt4GZ6anntxNyoj+2S2hBq/tvjPq/BcjP847tJB8aExzlHyRKnZOHNMDX8ylj5XDjNY7OgbxPwAJaRgAfx91NMNlDkRQZ8dIMYDERe6g4G8l3IzasRLGylKneP4n6gIc04C+QqJ8lXKEdJsgx2THZEpDgF8ZDJ1tlg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=vvi5lEE7b6CaXLZGvlveR9wz+kzgLQ5X9vYUHN8i/cv8Z4EaEp9YFsFKdNOdp0d5gNSk/FcTp9e5hql+6YBk+5YHE4scTReqHNC1GYWlsGRO5ZrLhBuSHxhie2eFZQ/gDjjYjW8Jes1L23Ml612Xbg03Rn8+oN3kAU2RntaiOM0= Received: by 10.142.251.9 with SMTP id y9mr6555740wfh.43.1204228867316; Thu, 28 Feb 2008 12:01:07 -0800 (PST) Received: by 10.142.177.18 with HTTP; Thu, 28 Feb 2008 12:01:07 -0800 (PST) Message-ID: <3d13dcfc0802281201o12ead197q2619ee3297476ff5@mail.gmail.com> Date: Thu, 28 Feb 2008 21:01:07 +0100 From: "David MENTRE" Sender: david.mentre@gmail.com To: "Dario Teixeira" Subject: Re: [Caml-list] Long-term storage of values Cc: caml-list@yquem.inria.fr In-Reply-To: <191751.36007.qm@web54607.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <191751.36007.qm@web54607.mail.re2.yahoo.com> X-Google-Sender-Auth: dc70b0ed3769f854 X-Spam: no; 0.00; marshalling:01 ocaml:01 ocaml:01 cameleon:01 config:01 caml-list:01 data:02 data:02 lisp:02 converted:04 problem:05 toc:06 file:11 convert:11 similar:12 Hello Dario, 2008/2/28 Dario Teixeira : > I am therefore looking for an alternative to marshalling that a) does > not suffer from the brittleness problem, and b) is fast. At the > moment, the best thing that occurs to me is to convert the data into > XML and to store it as such in the DB (the data is easily converted > into XML). I asked a similar question once. One of the answer was to use Sexplib, to store your values as Lisp S-exp: http://www.ocaml.info/home/ocaml_sources.html#toc11 You could also use Config_file: http://home.gna.org/cameleon/configfile.en.html Yours, d.