News for hackers. Stuff that matters.
Re:How are zlib, gzip and Zip related? (2013) by 404-universe on Friday June 17, 2016 @02:43PM (#11924671)
Where do the other popular compression utilities (e.g. bzip2, xzip, lzma, 7zip) fit in to this?
Re:How are zlib, gzip and Zip related? (2013) by gopalv on Friday June 17, 2016 @03:24PM (#11924974)
The big picture is that there's a few compression algorithms.

Run Length Encoding

Huffman Encoding

Lempel Ziv (LZ77)

Burrows Wheeler Transform

The interesting part of all these specific implementations is their own specialized way of extending or combining these algorithms for their own niche (or tradeoff point).

Bzip2 is for example, compresses really well because BWT is expensive, but clever - rzip extends the LZ part of bzip2 to look further across the file (instead of a few hundred kb).

Zlib itself has enough of these flags exposed out, so all Zlib isn't really the same - Z_FILTERED, Z_HUFFMAN_ONLY, Z_FIXED, Z_RLE etc. Look at something like Zopfli to see how they can be remixed, provided the tradeoffs of CPU change from the historic positions of Zlib.

Re:How are zlib, gzip and Zip related? (2013) by eln1 on Saturday June 18, 2016 @02:23AM (#11927342)
Beside Huffman coding, there is also arithmetic/range coding and now is becoming widely used ANS coding - e.g. LZFSE (Apple), ZSTD (Facebook), VP10 (Google): http://encode.ru/threads/2078-List-of-Asymmetric-Numeral-Sys...
Re:How are zlib, gzip and Zip related? (2013) by TimMeade on Friday June 17, 2016 @02:49PM (#11924722)
Almost every one as far as I know where based on the info-zip code by Mark Adler and Jean-loup Gailly. That was used as the base at the time for zip/unzip in linux, winzip, and gzip ultimately.
Re:How are zlib, gzip and Zip related? (2013) by rasz_pl on Friday June 17, 2016 @09:54PM (#11926633)
good video series straight from Google Developers https://www.youtube.com/watch?v=Eb7rzMxHyOk&list=PLOU2XLYxms...
Re:How are zlib, gzip and Zip related? (2013) by kbenson on Friday June 17, 2016 @02:45PM (#11924688)
He covers all that, at least in passing. It's a fairly comprehensive rundown.