Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is 7zip = zip ?



No. The 7zip format has much better compression than the ancient (1990s) zip format.


ZIP as a standard is no longer ancient. It has support for modern encryption and compression, including LZMA. This is sometimes referred to as the ZIPX archive, but it's part of the standard in its later revisions.


All this "no longer ancient" means is that zip is now out of the window. Its value has been lost.

The format has been perverted, and we can't trust zip as the "just works" option that will open in any platform, with any implementation, anymore.

All because somebody thought it a good idea to try to leverage the zip name's attached popularity to try and make a new format instantly popular.

Great job. This is why we can't have good things.


The same can be said of HTML. I realise that file archive formats are expected to be more stable (they are for archiving, yes?), but is it right to expect them to be forever frozen in amber? Especially when open source or free decompressors exist for every version of every system? ZIP compressed using LZMA is even supported in the last version of 7-zip compiled for MS-DOS.


>ZIP compressed using LZMA is even supported in the last version of 7-zip compiled for MS-DOS.

But then, why wouldn't you just use the 7z format?

The expectation with ZIP is (or was) that it'll unpack fine, even under CP/M.

Moving to '.zipx' extension was the right move, but it was done far too late.


Moving to the .zipx extension was definitely the right (and only) move. This is due to the fact that Microsoft's compressed folder code hasn't been updated in years and thus it isn't safe to send out any Zip files that uses any new features [1].

[1]: https://devblogs.microsoft.com/oldnewthing/20180515-00/?p=98...


Thank you Microsoft.

I hope if/when they upgrade their zip support, they only accept the new format if the filename extension is zipx.


zipx != zip -- we are speaking of file compression standards NOT branded compression software programs


No, it literally is part of the ZIP standard [0]. I updated my original comment.

ZIPX archives are simply ZIP archives that have been branded with the X for the benefit of the users who may be trying to open them with something ancient, that doesn't yet support LZMA or the other new features.

[0] https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT


When a 'hacker' (programmer) says 'zip file' they refer to the widely compatible implementation which is likely to work in any common implementation of archive handling software.

https://en.wikipedia.org/wiki/ZIP_(file_format)#Version_hist...

According to the above version table, that would conform to PKWARE 2.0, which as with the ODF file specification, limits packing methods to STORE and DEFLATE only; as mentioned in the standardization section and ISO/IEC 21320-1.

When you say 'zip' you should be saying 'zipx' at the very least, but you may as well be comparing a tar file to a tar.zstd file in the same case.


> may as well be comparing a tar file to a tar.zstd file in the same case.

It's not exactly hard to get a new compressor on a *nix system. It's either in the repos, or not so hard to compile. On non-nixes, there's usually a binary. Tarballs have not been limited to only tar.gz for a very long time, though a lot of people do choose to be conservative in how their distributed files are compressed.

> When a 'hacker' (programmer) says 'zip file' they refer to the widely compatible implementation which is likely to work in any common implementation of archive handling software.

You don't speak for every hacker, certainly not for me. If you're implementing ZIP these days and it's not, at the very least, capable of reading ZIP64 archives (forget about newer compression methods), then you're just creating obsolete software.


7zip uses lzma, a much more advanced and slower format than RFC 1951 DEFLATE used in zlib/gzip/png/zip/jar/office docs/etc


Zip can also use LZMA, assuming the recipient can interoperate with that.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: