Ilya Zakharevich on Thu, 12 Sep 2024 15:28:12 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PATCH 2.16.2-beta] compressed input


On Mon, Sep 09, 2024 at 11:35:35PM +0200, Bill Allombert wrote:
> > > +  {".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.

What for?  They are already supported by (many!) tools included
above.  (Just rename the archive adding an appropriate extension…)

(And zstd “almost” made lzo unneeded.  “Almost the same” speed with
better compression…)

> > Someone should really write a tool that provide consistent interface to all those.
> > PARI/GP is not the place to do it...

Yes, this is exactly why ZIP and 7ZA were included above!

> I found some: zutils

Why use obscure one when the most widely used tools already support
this?  ;―)

Hope this helps,
Ilya

P.S.  And yes, having a default()able map extending the table above
      may be nice — e.g., to do multithreaded decompression…