From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id DDE737F6CC for ; Mon, 2 Feb 2015 16:43:31 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.09,507,1418079600"; d="asc'?scan'208";a="119881411" Received: from pouilly.inria.fr (HELO [128.93.8.13]) ([128.93.8.13]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 02 Feb 2015 16:43:31 +0100 Message-ID: <54CF9B20.5040300@inria.fr> Date: Mon, 02 Feb 2015 16:43:28 +0100 From: Jacques-Henri Jourdan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: caml-list@inria.fr References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ra5cgkqpUNlH3b0pR8hI9RUrpnalMo6Wd" Subject: Re: [Caml-list] Simple compression library This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ra5cgkqpUNlH3b0pR8hI9RUrpnalMo6Wd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le 02/02/2015 16:39, Dhek Uir a =C3=A9crit : > I'm looking for a compression library such as camlzip to read/write > compressed files (any lossless compression algorithm is fine), but > having a function similar to Pervasives.output_value, which does not > seem to be available in camlzip (and I do not see how I could easily > implement it). > > Would it be simple to modify camlzip to add this function? I believe > that if this were the case, then it would already have been done, but > I might be wrong. > > Otherwise, is there another OCaml library with an API very similar to > Pervasives'? I'd prefer a lightweight solution (avoiding Core and > Batteries) if possible. Can't you do Marshal.to_string, and then use Camlzip on the generated string ? --=20 JH Jourdan --Ra5cgkqpUNlH3b0pR8hI9RUrpnalMo6Wd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUz5sgAAoJEGHoGlEY1GjFI3YH/3CKpQ92BlDPOKkMGN65vLrM ugCZW87RIH8KxM6JmySrde0yfNcps6PesskEY0t31pUMPAGkX7R0XXXYFaWn0U0E qsXzZXQAcvkXkIU1W1NDKLfmg9eN5cu2ULhtmTW6OG/XsS+twXolpVO0GAH3In6a IozQJ6SxRWD/MbYTpzftrclX/ozkH9W1sFPY57E8AuoAB6wjY8sjMJaLNKS2Yw5X g2iKdly/o8F10Amk922pSj+u77eaDpY58ENiOyRXZUQ/9RfYJnwwMC3hbjYlfy3C Z/W3wBbxY7tYU303JGQ8eVZXZvP8llw+vCga/k8XvsGWLeVMxedHF/Rc59Px6KY= =/zT+ -----END PGP SIGNATURE----- --Ra5cgkqpUNlH3b0pR8hI9RUrpnalMo6Wd--