Remix.run Logo
rtyu1120 an hour ago

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?

amiga386 an hour ago | parent | next [-]

- 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

HelloNurse 23 minutes ago | parent [-]

Also architecturally suitable for the common case of collecting heterogeneous files in existing and new formats into a single file, as opposed to designing a database schema or a complex container structure from scratch.

Any multi-file archive format would do, but ZIP is very portable and random access.

crazygringo 15 minutes ago | parent | prev | next [-]

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.

tetraca an hour ago | parent | prev | next [-]

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.

lvh an hour ago | parent [-]

"The operating system makes it easy to mess with" doesn't seem like a particularly useful property for application file formats.

TeMPOraL an hour ago | parent [-]

It was, back when software development was run by hackers and not suits and security people. Easy access was a feature for users, too; back in those days, software was a tool that worked on data, it didn't try to own the data.

mikkupikku an hour ago | parent | prev | next [-]

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

gus_massa an hour ago | parent | prev [-]

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

conradludgate 29 minutes ago | parent [-]

gzip is not an archive container. You're thinking of .tar.gz which is a "tape archive" format which is compressed using gzip. Zip is by itself both a compression and an archive format, and is what documents like epub or docx use

gus_massa 18 minutes ago | parent [-]

You are right, but other documents like .ggb (GeoGebra files) or .mbz (Moodle backups) use the .tar.gz method. I even wrote programs to opened them, make a few tweaks and save the new version in another compatible file.