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 99D8C7F0B9 for ; Thu, 8 Sep 2016 21:45:50 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=ecc@cmu.edu; spf=None smtp.mailfrom=ecc@cooper-siegel.org; spf=None smtp.helo=postmaster@smtp02.srv.cs.cmu.edu Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of ecc@cmu.edu) identity=pra; client-ip=128.2.217.201; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="ecc@cooper-siegel.org"; x-sender="ecc@cmu.edu"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of ecc@cooper-siegel.org) identity=mailfrom; client-ip=128.2.217.201; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="ecc@cooper-siegel.org"; x-sender="ecc@cooper-siegel.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp02.srv.cs.cmu.edu) identity=helo; client-ip=128.2.217.201; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="ecc@cooper-siegel.org"; x-sender="postmaster@smtp02.srv.cs.cmu.edu"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3Aa72AlBDI6HejmoEIXg2XUyQJP3N1i/DPJgcQr6Af?= =?us-ascii?q?oPdwSP39pMbcNUDSrc9gkEXOFd2CrakV0qyI6eu5BTRIoc7Y9itdINoUD15NoP?= =?us-ascii?q?5VtjJjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9?= =?us-ascii?q?fbytScaBx/iwguu7/pmWZwRTmBK8Z6lzJVO4t1b/rM4T1KZ4K6154RzOunZSM7?= =?us-ascii?q?BbzmhALleO2Rvw+5Hjr9ZY7y1Mtqd5pIZ7WqLgcvFgQA=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AHAACUv9FXmMnZAoBdHQEFARkTBoJ7A?= =?us-ascii?q?QEBAQGBQwSjTAaVHYIEh3s6EgEBAQEBAQEBAQEBEgEBAQEBCAsLBxkvgjIYghg?= =?us-ascii?q?BBTpPCyElDwUoiH66dgEGgnKFaIUWhQyFEAEEmV6PNoFiAY4EkEwlBYJHAQuCR?= =?us-ascii?q?4YJKoIEAQEB?= X-IPAS-Result: =?us-ascii?q?A0AHAACUv9FXmMnZAoBdHQEFARkTBoJ7AQEBAQGBQwSjTAa?= =?us-ascii?q?VHYIEh3s6EgEBAQEBAQEBAQEBEgEBAQEBCAsLBxkvgjIYghgBBTpPCyElDwUoi?= =?us-ascii?q?H66dgEGgnKFaIUWhQyFEAEEmV6PNoFiAY4EkEwlBYJHAQuCR4YJKoIEAQEB?= X-IronPort-AV: E=Sophos;i="5.30,301,1470693600"; d="scan'208";a="235769670" Received: from smtp02.srv.cs.cmu.edu ([128.2.217.201]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Sep 2016 21:45:49 +0200 Received: from cooper-siegel.org (pool-72-65-228-92.pitbpa.fios.verizon.net [72.65.228.92]) (authenticated bits=0) by smtp02.srv.cs.cmu.edu (8.13.6/8.13.6) with ESMTP id u88JjjP0011770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 8 Sep 2016 15:45:46 -0400 (EDT) Received: from ecc (uid 1000) (envelope-from ecc@cooper-siegel.org) id 67c13d1 by cooper-siegel.org (DragonFly Mail Agent v0.11); Thu, 08 Sep 2016 15:45:45 -0400 Date: Thu, 8 Sep 2016 15:45:45 -0400 From: Eric Cooper To: caml-list@inria.fr Message-ID: <20160908194545.kzr4bxhmvjwb3iv7@cooper-siegel.org> Mail-Followup-To: caml-list@inria.fr References: <20160908070526.dmep3cksq3ktt4s4@seneca.home.org> <11961473358836@web2j.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11961473358836@web2j.yandex.ru> User-Agent: Mutt/1.6.2-neo (2016-07-23) X-Scanned-By: mimedefang-cmuscs on 128.2.217.201 Subject: Re: [Caml-list] bindings for xz compression and decompression ? In approx, I just use a Sys.command call to decompress to a temporary file and then open that. It has these benefits: * for gzip at least, it's faster than camlzip * easily detects corrupted files (reading the output stream of a decompressor doesn't do that until it's too late) * easy to change compression schemes or support multiple ones based on file extension, say -- Eric Cooper e c c @ c m u . e d u