Ah yes, another riveting tale of how a #Minecraft #mod was saved by the mighty #Bzip, the #superhero of #compression algorithms 🦸‍♂️. Who knew that the ultimate adventure would be trading pixelated fun for tedious file space management? 📦✨ Remember folks, when in doubt, always make sure your personal boundaries for code copying are intact. 🙄
https://purplesyringa.moe/blog/an-ode-to-bzip/ #FileManagement #CodeCopying #HackerNews #ngated
An ode to bzip

The story goes like this. ComputerCraft is a mod that adds programming to Minecraft. You write Lua code that gets executed by a bespoke interpreter with access to world APIs, and now you’re writing code instead of having fun. Computers have limited disk space, and my /nix folder is growing out of control, so I need to compress code. The laziest option would be to use LibDeflate, but its decoder is larger than both the gains from compression and my personal boundary for copying code. So the question becomes: what’s the shortest, simplest, most ratio-efficient compression algorithm? I initially thought this was a complex question full of tradeoffs, but it turns out it’s very clear-cut. My answer is bzip, even though this algorithm has been critiqued multiple times and has fallen into obscurity since xz and zstd became popular.

purplesyringa's blog
An ode to bzip

The story goes like this. ComputerCraft is a mod that adds programming to Minecraft. You write Lua code that gets executed by a bespoke interpreter with access to world APIs, and now you’re writing code instead of having fun. Computers have limited disk space, and my /nix folder is growing out of control, so I need to compress code. The laziest option would be to use LibDeflate, but its decoder is larger than both the gains from compression and my personal boundary for copying code. So the question becomes: what’s the shortest, simplest, most ratio-efficient compression algorithm? I initially thought this was a complex question full of tradeoffs, but it turns out it’s very clear-cut. My answer is bzip, even though this algorithm has been critiqued multiple times and has fallen into obscurity since xz and zstd became popular.

purplesyringa's blog
R.L. Dane - Unix Data Compression Shootout

I love playing around with #compression

In this case, it's all text-based data in csv and xml formats.

Size:

32,696,320 202411.tar 4,384,020 202411.tar.bz2 4,015,912 202411.tar.zst 3,878,583 202411.tar.bz3 3,730,416 202411.tar.xz

zstd was invoked using zstd --ultra -22
xz was invoked using xz -9e
bzip2 was invoked using bzip2 -9
bzip3 has no compression level options

Speed:

zstd 54.31user 0.25system 0:54.60elapsed 99%CPU xz 53.80user 0.06system 0:53.93elapsed 99%CPU bzip2 5.33user 0.01system 0:05.35elapsed 99%CPU bzip3 3.98user 0.02system 0:04.01elapsed 99%CPU

Maximum memory usage (RSS):

zstd 706,312 xz 300,480 bzip3 75,996 bzip2 7,680

*RSS sampled up to ten times per second during execution of the commands in question

#bzip3 is freaking amazing, yo.

#DataCompression #bzip #bz3 #zstd #zst #zstandard #xz #lzma
#CouldaBeenABlost ;)

技術/歴史/zip,gzip,zlib,bzip2 - Glamenv-Septzen.net

Trabalhando com o tar no linux
Os arquivos tarball são distribuições de software livre que mantêm uma estrutura de diretórios, arquivos fonte, um arquivo Makefile, documentação e outros arquivos, encapsulados em um arquivo tar com compressão de dados gzip.

Este método de distribuição de software é muito popular porque os utilitários tar e gzip são muito
https://www.certificacaolinux.com.br/trabalhando-com-o-tar-no-linux/
#bzip #gzip #Linux #tar #tar.bz #tar.gz #tarball

Trabalhando com o tar no linux - Certificação Linux - Dicas Linux

Os arquivos tarball são software livre que mantêm uma estrutura de diretórios e arquivos encapsulados em um arquivo tar com compressão de dados gzip.

Certificação Linux