H = −Σ p·log₂ p. The average bits a symbol must cost given its probability. You cannot beat it by modeling symbol frequencies — it's a law.
Sort symbols by probability, then recursively split the set into two near‑equal halves, handing out 0/1 as you descend. Simple — but not optimal.
Repeatedly merge the two least‑likely nodes into a subtree; the tree grows upward from the leaves. Provably optimal prefix code — and the one everyone still uses.
Everything since is the same axis: LZ77 → DEFLATE → LZMA → zstd, arithmetic/ANS. Model the byte stream better, encode nearer entropy. The ceiling is always Shannon.
My 9‑year‑old, Miguel — Mike — wasn't having it. Marvel, Transformers, computers, cars. So I told him: you love computers? It's all math. Cars? Physics — which is math. You gotta love math, kiddo.
My wife Ana looked at Newton, my sovereign AI, and called me Gilfoyle. So I rewatched Silicon Valley. Mid‑way through Richard's middle‑out‑beats‑Shannon speech: brilliant tech‑BS — should've gone with math. And puzzleCompressor clicked.
I jumped out of bed and ran the tests overnight — just like Richard. And, much like middle‑out, it shines on some files. Byte‑exact. Lossless. Real.
Both Mikes — and Ana — left fingerprints on this. I named it MIKE: my son Miguel, the masterpiece of Mike Judge, John Altschuler, Dave Krinsky and Alec Berg, and Kompression with a K — the homage was too good to ignore. MIKE is born.
Find repeats, then entropy‑code the rest. Real, hard‑won progress — but bounded by Shannon entropy. On data with no statistical skew, there's nothing left to take.
If the data came from a rule — a counter, a polynomial, a recurrence, a sampled physical process — the shortest description is the rule itself. The ceiling isn't Shannon; it's Kolmogorov — the shortest program that outputs the data.
n bytes → store “+1” · 10,000×+ where Shannon tools sit at their floor.
Decode the entropy layer back to the numbers underneath, then find the rule. That's JPEG, PNG, ZIP, MP3.
Best‑of‑everything, verified per file, never expands. If there's no rule, it quietly falls back to the standard pass.
Long runs of integers or floats — a counter, a ramp, a recurrence, a sampled process. Statistically flat, so Shannon tools sit at their floor.
Take differences, then differences of those. A linear ramp goes flat after one pass, a degree‑k polynomial after k. What remains is tiny.
Fit the generator, keep formula + residual. Binance ticks 357,120 B → 47 B — 7,598×.
Interleaved L/R 16‑bit samples of a band‑limited signal — each sample sits close to the last. Already dense; rar/7‑Zip barely move it.
Split channels, then predict each sample from the ones before it. Subtract the prediction — what's left is a small residual.
Best‑in‑class on raw PCM: 25% smaller than rar, beats 7‑Zip — byte‑exact lossless.
Same move as the JPEG re‑model, one layer earlier: find the math that made the data, and store that. No statistical skew required.
Each 8×8 block becomes a sum of 64 cosine basis patterns — smooth low‑frequency at the corner, fine detail toward the edges (the “sin/cos”).
Divide by a quant table and round — this is the lossy step, discarding high‑frequency detail the eye won't miss. MIKE never touches this.
Zig‑zag, run‑length the zeros, and Huffman‑code the (run,size) tokens. DC coefficients are delta‑coded block‑to‑block.
JPEG's static per‑file Huffman can't see cross‑block structure. MIKE decodes the tokens + DC deltas losslessly, re‑models them, and re‑emits the JPEG byte‑exact. The puzzleCompressor engine rides the deltas and finds the math formula that best describes them — reducing far beyond Huffman alone. Find the puzzle… solve the problem… and math shall save us all.
The result: byte‑exact & lossless, 8–27% smaller — where xz/zstd/7z get ~0%.
| Real JPEG | Original | xz -9e | MIKE | saved |
|---|---|---|---|---|
| 4:2:0 photo web/camera | 29,825 | ~29,800 | 24,681 | 17.2% |
| high‑detail 4:2:2 | 38,555 | ~38,500 | 31,191 | 19.1% |
| structured photo 4:2:2 | 237,602 | 231,448 | 205,327 | 13.6% |
WhatsApp & Instagram already lossy‑recompress every uploaded photo — losing quality to save space. MIKE saves 8–27% losslessly: smaller and higher quality than today, across billions of daily uploads.
The JPEG bytes are already Huffman‑coded — statistically flat. There's no skew left for a Shannon‑axis tool to model. You have to re‑open the entropy layer first — which is the whole point.
counters, IDs, timestamps → a formula, not a file.
past the benchmark's best (rar/xz), on data everyone calls already‑compressed.
than rar — dethrones rar and 7‑Zip on raw PCM (rar 43.6% → 32.6%).
31× past rar · 1,926× past 7z.
178× past rar · a formula, not a file.
beats the whole field · 24% past 7z · 72% past zip.
reclaimed = stored × Σ(mix × reduction)
saving/yr = reclaimed × cost per TB‑yr
Reduction rates are measured (byte‑exact, this engine). Scale & mix are labelled assumptions — plug in the target's real figures under NDA. Video counts as 0.
Cost per TB‑yr = disk + wattage + floor‑space only — we discard the enclosure & RAID hardware that capacity needs to run. This assessment is extremely conservative.
| CSV / tabular | ~60% | Logs / text | ~65% |
| Office (zip) | ~45% | PNG | ~35% |
| PDF (Flate) | ~30% | JPEG | ~15% |
| H.264/H.265 | 0% | misc binary | ~12% |
Two anchors behind the rates: a representative document library 466 KB → 98 KB (78.9% reclaimed), and 6/6 smallest on the AI dataset suite.
Extremely conservative $30/TB — disk cost + one year of disk wattage alone + datacenter space. Nothing else counted.
These estimates are tremendously conservative — this is a simple example modelling ~3 EB at a floor cost. Consider the real estates: AWS 500+ EB (2024) · Microsoft an estimated 40+ EB · Google alone an estimated 15+ EB. True savings on storage alone run far past this simulator example.
The same Rust core runs on the server and on the device — so compression isn't only a storage trick; it's end‑to‑end.
Google alone moves an est. 20,000–40,000 PB every day. Every byte MIKE shaves off a transfer is saved on every hop, every day — bandwidth, sync time, egress. Storage saves once; the wire saves forever.
The client does the decode — offloading the datacenter's CPU to the edge. It stores less and computes less.
Google processes an est. 20,000–40,000 PB every day. A local auto‑compress folder service pushes (de)compression onto the hosts — so cutting that transfer 30–40% also offloads datacenter CPU 30–40%. Storage is only the first saving.
We're just missing the TechCrunch #! sha‑bang — but we've got YOU as an exquisite audience. Can't beat that.
byte‑exact lossless, this engine — not modeled.
the deal number is measured on your sampled corpus, vs your current stored form.
never expands · verifies every file · video excluded. No downside to "compress everything."
Structured 10,000×+ · JPEG/PNG/ZIP/PDF/Office 8–44% · CSV 45–89% · 6/6 on AI data — every number byte‑for‑byte lossless, verified over 100,000 fuzz iterations, 0 failures.
Named for my son Miguel. Some data isn't compressed — it's a puzzle waiting to be solved.