by geofft · 10y ago · 0 comments
On the other hand, having to deal with support requests from users who don't have any decompressor other than gzip will cost me both users and my time. Some complicated "download this one if you have xz" or "here's how to install xz-utils on Debian, on RHEL, on ..." will definitely cost me users, compared to "if you're on a UNIXish system, run this command".
From a pure programming point of view, sure, xz is better. But there's nothing convincing me to make the engineering decision to adopt it. The practical benefits are unnoticeable, and the practical downsides are concrete.
Well, at the time it was released, people were making much the same arguments (with kittens). It compressed so much better than gzip, no reason to use the obsolete gzip format and tools, etc. And some of us jumped on the hype bandwagon and started recompressing our data, only to find out afterwards that bzip2 is now the new thing and the format is not only obsolete, but also patent-encumbered and in general needs to be phased out.
From a long-term perspective I'm fine with gzip. At least I know that I'll be able to open my data in 10 years time, which is not the case with bzip-0.21. The jury is still out on "xz", in my opinion.
If you're a developer, gzip is simply the best option. It's not the best, but it's good enough and it's safe.
* The faster compression made a difference of about 100 milliseconds to a user experience lasting minutes.
* The better compression made a different of about 1 second to most users.
* The change of compression algorithm would take time away from engineering teams, and ultimately introduce bugs.
So in the end it was sidelined until other fundamental changes (file format etc) made it able to be coat-tailed into production.
Same story as yours: don't fix what ain't broke. Tallest working radio antenna in the world -> longest lying broken antenna in the world.
Mostly Mac, but iirc some Linux users were confused as well. We switched back to gzip because everyone knows how to use it.
tar -xf some_file.tar.xz
tar -xf some_file.tar.gz tar -xzf file.tar.gz
To be honest, I only started doing -xf a year ago. I was used to -xjf and -xzf. tar -xzvf file.tgz > /dev/nullAlso works with non-tar formats like Zip, RAR and 7z: https://www.freebsd.org/cgi/man.cgi?query=libarchive-formats...
$ tar -xf foo.tar.xz
tar: End of archive volume 1 reached
tar: input compressed with xz
$ tar -xf foo.tar.gz
tar: End of archive volume 1 reached
tar: input compressed with gzip; use the -z option to decompress itOn the other hand 128 kbps AAC is transparent for almost any input. AAC is supported abou everywhere where mp3 is. The quality alone should be convincing. The smaller size make the usage of mp3 IMHO insane.
OTOH "the scene" still does MPEG-2 releases I think.
And it was reproducible on all my computers. I couldn't use my opus collection at all because either the encoder was broken or the playback was broken.
I need to do it again at some point, when I have 8 hours to transcode everything and try again. See if they've fixed it.
Debian/Ubuntu dpkg supports compressing with xz too -- and it's a hard dependency of dpkg at least as far back as the precise (12.04) LTS release. So I'd say the majority of Linux users already have access to xz.
What about tooling? OSX: tar -xf some.tar.xz (WORKS!) Linux: tar -xf some.tar.xz (WORKS!) Windows: ? (No idea, I haven't touched the platform in a while... should WORK!)
Both tend to be part of an essential core of packages required to install a system.