Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: Erik de Castro Lopo <ocaml-erikd@mega-nerd.com>,
	caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Pickling for OCaml?
Date: Fri, 6 Jan 2006 09:30:07 -0500	[thread overview]
Message-ID: <f8560b80601060630s1512a2b9gc1435fef5b9c35e8@mail.gmail.com> (raw)
In-Reply-To: <ad8cfe7e0601060227u6b912aeejc8459c441ff32eb1@mail.gmail.com>

On 1/6/06, Jonathan Roewen <jonathan.roewen@gmail.com> wrote:
> > Will the Marshall module not do?
>
> Marshal is unsafe. Pickling is safe. I'd take pickling =)

You could try our S-expression library, which uses CamlP4 to generate
code for converting arbitrary extensionally defined (= sum and product
types, polymorphic variants, records, types with type variables)
OCaml-types to and from S-expressions:

  http://www.janestcapital.com/ocaml

The library is safe and displays understandable error messages when
parsing S-expressions.  One can choose whether to print values in
human-readable ways or in very compact machine-readable (somewhat
human-readable) form.  It's also very easy to write down OCaml-values
in S-expression syntax, which makes it ideal for complex configuration
files.

Regards,
Markus

--
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com


  reply	other threads:[~2006-01-06 14:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-06  9:59 Jonathan Roewen
2006-01-06 10:16 ` Erik de Castro Lopo
2006-01-06 10:27   ` Jonathan Roewen
2006-01-06 14:30     ` Markus Mottl [this message]
2006-01-06 15:36     ` Alessandro Baretta
2006-01-06 16:02       ` Mark Shinwell
2006-01-11  4:48         ` Jonathan Roewen
2006-01-11  4:50           ` Jonathan Roewen
2006-01-11  8:16           ` Alessandro Baretta
2006-01-06 14:50 ` David MENTRE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8560b80601060630s1512a2b9gc1435fef5b9c35e8@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=jonathan.roewen@gmail.com \
    --cc=ocaml-erikd@mega-nerd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox