Hacker News new | past | comments | ask | show | jobs | submit login

zstandard can indeed handle standard format gzip files to create and decompress them. From the zstandard compilation options:

HAVE_ZLIB : zstd can compress and decompress files in .gz format. This is ordered through command --format=gzip. Alternatively, symlinks named gzip or gunzip will mimic intended behavior. .gz support is automatically enabled when zlib library is detected at build time. It's possible to disable .gz support, by setting HAVE_ZLIB=0. Example : make zstd HAVE_ZLIB=0 It's also possible to force compilation with zlib support, using HAVE_ZLIB=1. In which case, linking stage will fail if zlib library cannot be found. This is useful to prevent silent feature disabling.




Yes, indeed I had already read that in the man page, but I did not feel it answered my question, because in my mind, and state of naivety about compression, logically at least, a compression algorithm and final file format needn't stand in a 1-1 relation. But I suppose that ZLIB is just the DEFLATE algorithm, then?


yes, zlib is the library underpinning traditional gzip

zstandard's own zstandard-own-compression format is its own separate much newer thing.

zlib, for instance

https://packages.debian.org/source/buster/zlib




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: