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
zlib 的視覺化互動

看到「flateview (via)」這個有趣的網站,在網站上面可以自由的塞資料進去,然後他會解釋 zlib 壓出來的東西所代表的意義。 我拿維基百科英文版的 Kalafina 條目,第一句丟進去: Kalafina (カラフィナ) is a Japanese vocal group formed by com...

Gea-Suan Lin's BLOG
🌘 剖析 Deflate 壓縮演算法
➤ 從 Gzip 壓縮字串到手動解碼 Deflate 的技術解析
https://jjrscott.com/to-deflate-or-not/
本文作者深入剖析 Deflate 壓縮演算法的運作原理,透過手動解碼一段 Gzip 壓縮的字串,展示如何將原始資料轉換為壓縮後的位元流,並進一步解析其中包含的 LZ77 複製指令與 Huffman 編碼。雖然作者成功將 24 位元組的字串壓縮至約 16 位元組,但此過程也凸顯了手動解碼的複雜性。
+ 作者的實踐方法非常直觀,讓我對 Deflate 的內部機制有了更清晰的認識。不過手動解碼確實很花時間!
+ 這篇分析真是太棒了,對於想深入瞭解壓縮技術的開發者來說是絕佳的資源。希望未來能看到更多類似的技術拆解。
#壓縮演算法 #Deflate #Gzip #LZ77 #Huffman 編碼
Understanding Deflate

A very simple worked example

jjrscott
Gzip - GNU Project - Free Software Foundation

GitHub - lz4/lz4: Extremely Fast Compression algorithm

Extremely Fast Compression algorithm. Contribute to lz4/lz4 development by creating an account on GitHub.

GitHub

@vk6flab @jupiter for the condition of "static lossless #compression" the bar is extremely low.

OFC it won't be even remotely efficient when compared to modern compression...
Even #LZ77 will run circles around it, not to mention #bzip2, #lzma or high-efficiency vocoders like #Codec2....

https://mstdn.social/@kkarhan/110692504545982742

Kevin Karhan :verified: (@[email protected])

@[email protected] Technical: #MorseCode was the first lossless static stream compression for natural language. Theoretical: #Morse #Code allows to increase the amount of text that can be transmitted in the same time at the cost of sacrificing Fano Condition Compliance, which was postulated decades later. Practical: You can - at least in theory - morse text faster than if you were to send ASCII characters in binary and you can easier and faster learn to decode and/or encode signals than ASCII bits.

Mastodon 🐘

I've been playing a bit with #React to create an interactive simulation of the #LZ77 #compression algorithm for my next bog post :) .

I know that it's not very visually appealing, but frontend is not my trade 😅.

#Verpasstodon

Wir hatten großes Glück – Zum Tod von Abraham Lempel​ und Jacob Ziv

Wenige Wochen nach seinem Mitstreiter Abraham Lempel ist am Wochenende Jacob Ziv gestorben. Die beiden gaben dem Kompressionsverfahren LZ77 ihren Namen.

https://www.heise.de/news/Wir-hatten-grosses-Glueck-Zum-Tod-von-Abraham-Lempel-und-Jacob-Ziv-8151912.html?wt_mc=sm.red.ho.mastodon.mastodon.md_beitraege.md_beitraege

#AbrahamLempel #Algorithmen #JacobZiv #Kompression #LZ77 #LZW #Technion #TerryWelch

Wir hatten großes Glück – Zum Tod von Abraham Lempel​ und Jacob Ziv

Wenige Wochen nach seinem Mitstreiter Abraham Lempel ist am Wochenende Jacob Ziv gestorben. Die beiden gaben dem Kompressionsverfahren LZ77 ihren Namen.

heise online
Du hast schon einmal etwas von MP3, PNG oder ZIP gehört? -- Wenige Wochen nach seinem Mitstreiter Abraham Lempel ist am Wochenende Jacob Ziv gestorben. Die beiden gaben dem Kompressionsverfahren #LZ77 ihren Namen. https://www.heise.de/news/Wir-hatten-grosses-Glueck-Zum-Tod-von-Abraham-Lempel-und-Jacob-Ziv-8151912.html?wt_mc=rss.red.ho.ho.rdf.beitrag.beitrag -- Na dann gute Nacht, Mastodon.
Wir hatten großes Glück – Zum Tod von Abraham Lempel​ und Jacob Ziv

Wenige Wochen nach seinem Mitstreiter Abraham Lempel ist am Wochenende Jacob Ziv gestorben. Die beiden gaben dem Kompressionsverfahren LZ77 ihren Namen.

heise online
History of Lossless Data Compression Algorithms

ETHW