Earlier quoted context omitted.
That's cool! Is that a GNU tar only thing? Based on it being a longopt, I'm guessing a GNU tar only thing. That's the problem with these things, it takes a while to get pushed to all the installed copies of tar running around. Perhaps it's time to check: * MacOS Sonoma(14.6) has tar --auto-compress and --zstd * OpenBSD tar does not appear to have it: https://man.openbsd.org/tar * FreeBSD does: https://man.freebsd.org…
Both libarchive ("bsdtar") and GNU tar have -a, which I guess are the only two upstream tar implementations that are still relevant? You're right, it can take a while for these things to propagate downstream though.
Dissecting the gzip format (2011)
61–68 of 68 posts
Re: Dissecting the gzip format (2011)
#62Earlier quoted context omitted.
gzip is fast (pigz is even faster), supported everywhere (even in DOS), uses low amounts of memory, and compresses well enough for practical needs. bzip2 is too slow. xz is too complex (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068024 ), designed to compress .exe files. lzip is good, but less popular. zstd is good and fast, but less popular.
Another factor is that gzip is over 30 years old and ubiquitous in many contexts. Zstd is awesome, but has only been around for a decade, but seems to be growing.
Re: Dissecting the gzip format (2011)
#63Re: Dissecting the gzip format (2011)
#64Has anyone taken the coding as compression (when you create repeated behaviour, stuff it in the dictionary via creating a function; switching frameworks is changing initial dicts; etc.) metaphor seriously?
Sounds like LZW compression to me - is what you're thinking of different than that?
Re: Dissecting the gzip format (2011)
#65Earlier quoted context omitted.
... --auto-compress ... foo.tar.zstd
That's cool! Is that a GNU tar only thing? Based on it being a longopt, I'm guessing a GNU tar only thing. That's the problem with these things, it takes a while to get pushed to all the installed copies of tar running around. Perhaps it's time to check: * MacOS Sonoma(14.6) has tar --auto-compress and --zstd * OpenBSD tar does not appear to have it: https://man.openbsd.org/tar * FreeBSD does: https://man.freebsd.org…
Re: Dissecting the gzip format (2011)
#66Earlier quoted context omitted.
Sounds like LZW compression to me - is what you're thinking of different than that?
Different in terms of applying the same principle to produce "semantically compressed" code — instead of having each new dictionary entry be a reference to an older one along with the new symbol, each new function will refer to older ones along with some new literal data. (If that still doesn't make sense, see the sibling comment to yours.)
Re: Dissecting the gzip format (2011)
#67Earlier quoted context omitted.
Both libarchive ("bsdtar") and GNU tar have -a, which I guess are the only two upstream tar implementations that are still relevant? You're right, it can take a while for these things to propagate downstream though.
Some of us use OpenBSD: https://man.openbsd.org/tar
Re: Dissecting the gzip format (2011)
#68Earlier quoted context omitted.
Some of us use OpenBSD: https://man.openbsd.org/tar
Ooh interesting. I'd assumed (incorrectly) that OpenBSD tar was just libarchive like FreeBSD and NetBSD. I prefer BSD libarchive tar to GNU tar as /bin/tar on my Linux machines too for what it's worth.