Bill Allombert on Mon, 09 Sep 2024 23:35:43 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PATCH 2.16.2-beta] compressed input
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: [PATCH 2.16.2-beta] compressed input
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Mon, 9 Sep 2024 23:35:35 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1725917737; c=relaxed/relaxed; bh=NeB8LneIf8vyaLS9aVvIezuM4Dczv223/tSZwtV5WQE=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=og0bXldu5e3LQJ68HAm0tSgRLzVt6NH+Grn1Uk2OzlRq/4sA6V/JPNF3UvnG/yQf7VA2+eZUcI65LdQKwTWJ3n//tA4JGP/StxjL1P3LLYUqwWaiUsWFfg7bwAmkszsVgeerRBj2RyFfG8b8T2Shre3qZ3IyYoQrgRcSvAPcjY9dxjfiFWttLER02SzQKafZ3UvRz7RuqIYG7IolfajQV81n/k1EjHVOi16lBzsVJWX+c2CMi91MouSJefG/wMffroPVVJjcp3sIVzsA0oflHdAtpNoOdNecDtilGHEZevdJK5t0vP3R+YcoZPgkJwgHZdYhFA7JD0uGb/30IEyGvgej2Wp+fISXP+piofolkeWmb9M8LPBol5LFyxM1cUw2WIkY/si0/tESkcXSF82kThhOM9S9UkcUD0+mgZAkh4UxyUBznbdjOdVGZdY59o9uRlZsiSNYrM1F6yyP2Ck8P/z157Vc47V1DTIvSxdSaMOmL/Ygv99/hcrOkB/fUH9cwb7JvXy2kbSjVwGtdKwqVvRbfK+S/PAWeO931z/D5WCMYcK8J2h0rOls+9rxa7awHTr8sbtIgbbNNOPAFQqRVFPfmY9PvnnM9dO4msYzmfHKnhl+CcEtjEMWCF9QRvKFazYABqJFxSlFugkOncKey21ovleE9ddz8Yr4KbKzYkw=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1725917737; cv=none; b=IuUXl30rOzmGGVCvujE4RbY0cSVbxYTfh8p23AYnzPDOE7jVGww9LlNqsU6hYxjm6RWyeL170/nJk7aH3E/DMVxvevY2SaxbMCM9yjw+7PWFMn3jFgp+Duve0HnizqPF1/GeXORacgfOr8ODiKEdDeeVsae6PC2SI5V5BeaZZInhe/xMldkd7cmyd+ynTzBL0JIWR3v3W0tJNmf8YsvFk4Fcynt2SFIU+wnZXzmfjGHaFvm9eLnNRmunj/4hUZZepJLX607CP+BcFfDw/XH+6GrLEqrT8gtn0hwK2/0ORSnO5QHhWRlEkGwpWcKozdQFMp08pBI7nn1ZxxKa65XVAn30FkNXgANlrboQOd3fb7d4x3NIeGlpj187Qd5/+a1MQX9hB97D7LnoqGx9siLQPwj6v9RiQDoVx8lo/l9Awk1vMYbgdfM+yvDfDiTwcIAhCb32otOWnSQ/vP08dVVvMBpAUNuCqZH6jpjXfaVlmqAp9VKtvdi9Sqtxeo+rF4wo+b6JsumApXJQ7XJAx2NKa64BabqrwmjLdzq4Z2gjoFWp1TPw8gDRmhbiJP1v+bXEPccW/yQReuM90rlzYyLkjKHxEhACHw+++P4CSgDy8III4Td4LtnEDvWo25usXNRhgiAI7+Q+bwVMtzRnMKFh/5sUKq2KhrPJ/tV9OxD6XLs=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Mon, 09 Sep 2024 23:35:43 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1725917737; bh=NeB8LneIf8vyaLS9aVvIezuM4Dczv223/tSZwtV5WQE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=EtU/zxYACtbJJTTWR6tOURjBZSqDhUKxyinLqq4P/U8E+g7HVgxdvLe43oNlIBlrC WYSwDrZw27XqELzxarlorAjkdGJntxvGOnkTVSS8wvakqggowj4LImWuGdpBaKQNVj 70nGx/BWJVlVvZnZjdOFKLPV4zV7p9zjv4237RHPOsmo/jynK7p+f9ovkuS7K7jQI/ Q3W9p3/ddWU+6UH5pw+SpjBbMjQrXb+RHHy1VdLH6QE0Yhf0pEScRrfpAcHN130ax+ M5FqV3JHHL+D0HYzR6CUjAtau+u7193tYNzKFz0uM9LLqc9Qcb2uKjR0hmsvlAQTqz h6eR5ewR1TfX8k3xQOAgBwDOyZfamSRlIGNScEREwXqMnZp4nI9MqLv0c47o2+fNrb 9qOfQwYModuVhUtaIUOIydxsHqJSB6Uyw4YrBvTyl7uJf0Yodq7xGFlphuSHDF0DTz QqehGn7hxQ3ySaP4fIzijTlqTzYjAr9qgkgU0+ZXMIseAA8uzrhmR7mrWNQfAQ6QZU Aw64AZ9tuUIPDjmGntt1xHvTy8avRBcNxF0G4dfQeMa4/wIqgx5K9I3O/BoHw0CTsh 03sspm/nyhdBp8ZE5yR8V+j9yVtbxLaJEMwqArjq8uD2vzQkFxG/XdkFrEz8YToq5J EMl2Yv2OdVbf4KStn+9DGICg=
- In-reply-to: <Zt2VCKUALsEMjXFf@seventeen>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <ZtEYT7F0yhax3DLX@debian.attlocal.net> <Zt2VCKUALsEMjXFf@seventeen>
On Sun, Sep 08, 2024 at 02:14:02PM +0200, Bill Allombert wrote:
> On Thu, Aug 29, 2024 at 05:54:39PM -0700, Ilya Zakharevich wrote:
> > This patch
> > • allows newer types of compression of input;
> > • protects against poison pills in the decompression command line.
> >
> > Enjoy,
> > Ilya
> >
> > +typedef struct
> > +{
> > + char *ext;
> > + char *cmd;
> > +} decompress_tbl;
> > +decompress_tbl decompress[] = {
> > +#ifdef ZCAT
> > + {".Z", ZCAT},
> > +#ifdef GZCAT
> > + {".gz", ZCAT},
> > +#endif /* defined GZCAT */
> > +#endif /* defined ZCAT */
> > + {".bz2", "bzip2 -dc"},
> > + {".xz", "xz -dc"},
> > + {".zstd", "zstd -dc"},
> > + {".7z", "7za -so e"},
> > + {".zip", "unzip -p"},
> > + {NULL, NULL}
> > +};
>
> You could also add lzma, lz and lzop.
> Someone should really write a tool that provide consistent interface to all those.
> PARI/GP is not the place to do it...
I found some: zutils
https://download.savannah.gnu.org/releases/zutils/
This provide an universal zcat. (Also exist acat and bsdcat)
However, we need a way to tell GP which extensions denote compressed files.
Mayeb we just need to add a new default ?
Cheers,
Bill.