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 119A37F6CC for ; Mon, 2 Feb 2015 17:05:39 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of dhekuir@gmail.com) identity=pra; client-ip=209.85.160.194; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhekuir@gmail.com"; x-sender="dhekuir@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of dhekuir@gmail.com designates 209.85.160.194 as permitted sender) identity=mailfrom; client-ip=209.85.160.194; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhekuir@gmail.com"; x-sender="dhekuir@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-yk0-f194.google.com) identity=helo; client-ip=209.85.160.194; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhekuir@gmail.com"; x-sender="postmaster@mail-yk0-f194.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A4AQCMn89UhsKgVdFbhDEEgn2/D4hJAoEVB0MBAQEBAREBAQEICwsHFi6EDQEBAwESER0BGx4DAQsGBQQHNwICIgERAQUBHBkbB4d2AQMJCLQWPjGLLoFrgneKXAoZJw1UhHwBAQgCARkBBQ6PAm8WglKBQQWYLoEXhUeKNBIjgQwJhBE9MYJCAQEB X-IPAS-Result: A0A4AQCMn89UhsKgVdFbhDEEgn2/D4hJAoEVB0MBAQEBAREBAQEICwsHFi6EDQEBAwESER0BGx4DAQsGBQQHNwICIgERAQUBHBkbB4d2AQMJCLQWPjGLLoFrgneKXAoZJw1UhHwBAQgCARkBBQ6PAm8WglKBQQWYLoEXhUeKNBIjgQwJhBE9MYJCAQEB X-IronPort-AV: E=Sophos;i="5.09,507,1418079600"; d="scan'208";a="119886489" Received: from mail-yk0-f194.google.com ([209.85.160.194]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 02 Feb 2015 17:05:38 +0100 Received: by mail-yk0-f194.google.com with SMTP id 131so5632797ykp.1 for ; Mon, 02 Feb 2015 08:05:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=M+XwSz5RLla6muWfioqpt48sc97TsJw3wKUreBrc+3Q=; b=Yx6LKzCyR4xbQGA/bblUTEAwNFrZv7lPy8B2xanJBdlUU5Z6EjbeLPND4N67RrH3J6 81jOwdJkF2IQWrTez3JSuWUTjPcvlRI4qponOjH7JH5m2P+hYAf0sMpEWI086Ga6oC5T HtNvXDHhgRm4UEtjt9Nucf8MP0UO5Gf1ppax+1kfYXQJF6RWF91RFedPoOhjlT9pFExb nuZW5I8qJsOQbPOCtA3WU2A6z39FKwaXUDDbnR/T63cG/LCLAAGw2eytLg06fYYzlXb3 Wpa79inmbOePdcMDDR7IQANYQaNEUhQws+RPvTgEdaBtE9MagiporthyMtEJ8qhz/OTj cvqw== MIME-Version: 1.0 X-Received: by 10.170.115.209 with SMTP id h200mr9290391ykb.87.1422893137503; Mon, 02 Feb 2015 08:05:37 -0800 (PST) Received: by 10.170.217.194 with HTTP; Mon, 2 Feb 2015 08:05:37 -0800 (PST) In-Reply-To: <54CF9B20.5040300@inria.fr> References: <54CF9B20.5040300@inria.fr> Date: Mon, 2 Feb 2015 17:05:37 +0100 Message-ID: From: Dhek Uir To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=001a1137bdb403acb3050e1d202c Subject: Re: [Caml-list] Simple compression library --001a1137bdb403acb3050e1d202c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Feb 2, 2015 at 4:43 PM, Jacques-Henri Jourdan < jacques-henri.jourdan@inria.fr> wrote: > 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 ? > > Indeed, I can. I believe the hard part is actually the input_value operation. But I haven't looked enough into Marshal, maybe my solution can be found there. --001a1137bdb403acb3050e1d202c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Mon, Feb 2, 2015 at 4:43 PM, Jacques-Henri Jourdan <ja= cques-henri.jourdan@inria.fr> wrote:
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<= br> > I might be wrong.
>
> Otherwise, is there another OCaml library with an API very similar to<= br> > 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 ?

=C2=A0
Indeed, I can. I believe the hard part is actually the = input_value operation.
But I haven'= t looked enough into Marshal, maybe my solution can be found there.
--001a1137bdb403acb3050e1d202c--