logoalt Hacker News

rtyu1120today at 3:15 PM7 repliesview on HN

Bit unrelated rant but I'm still not sure why ZIP has been adopted as an Application File Format rather than anything else. It is a remanent of a DOS era with questionable choices, why would you pick it over anything else?


Replies

amiga386today at 3:38 PM

- archiver format to stow multiple files in one; your actual files (in your choice of format(s)) go inside

- files can be individually extracted, in any order, from the archive

- thousands of implementations available, in every language and every architecture. no more than 32KiB RAM needed for decompression

- absolutely no possibility of patent challenges

show 1 reply
crazygringotoday at 4:24 PM

If all you need is a bag of named blobs and you just want quick reasonable compression supported across all platforms, why not?

If you don't need any table/relational data and are always happy to rewrite the entire file on every save, ZIP is a perfectly fine choice.

It's easier than e.g. a SQLite file with a bunch of individually gzipped blobs.

tetracatoday at 3:24 PM

Because Windows can view and extract them out of the box without installing any additional applications. If it supported anything better out of the box I'd guess people would use that instead.

show 1 reply
daharttoday at 4:51 PM

ZIP isn’t an application format, it’s a container, no? You store files with any format in a .zip, and that’s what applications do - they read files with other formats out of the .zip. What are your goals; what else would you pick, and why? What are the questionable choices you refer to?

show 1 reply
thijsontoday at 4:52 PM

AMD/Xilinx Vivado uses ZIP format to compress design checkpoints. They just give them a .dcp extension though.

mikkupikkutoday at 3:25 PM

It works well enough. What could, for instance, epubs gain by having another base format instead?

gus_massatoday at 3:32 PM

I think most format use "gzip" instead of "zip".

show 2 replies