Instrument · compression as prediction
The Compressor
Every byte a cell, coloured by its cost in bits — surprise made visible.
This is not a decorative gradient. The heat you see is the real cost of every byte, computed live by the exact 32-bit Witten–Neal–Cleary arithmetic coder and adaptive context model from the420code's compression proof, ported verbatim and run in your browser. Each cell is one byte of a real message; its colour is that byte's self-information, −log₂(p) — precisely the number of bits the coder must pay to emit it. Cold, with no shared knowledge, almost every byte is a surprise and burns near the 8-bit ceiling. As sender and receiver prime on the same corpus, the grid cools: you transmit the surprise, not the whole. Then the residual is decompressed back, bit-for-bit lossless — verified on screen. The shared-knowledge gain is measured live, not asserted.
Priming
Sender and receiver stream the shared corpus. The model learns — and this is never transmitted.
The compression proof itself still runs — see the numbers and code linked below.
The heat is the real coder's cost per byte, live. Space = play/pause · try “Random bytes” to watch it refuse to compress — high entropy stays hot, honestly.
What is honest here — and what is not
Honest: the coder driving this is the actual arithmetic coder from the proof, not a mock. The per-cell heat is the true −log₂(p) the model assigns; the compressed length shown is the real bit count; and the round-trip is genuinely lossless — the decoder rebuilds the grid and we compare it byte-for-byte (the ✓ lossless badge only lights if it matches). The shared-knowledge gain on screen is measured, not typed in.
Not a claim: this does not beat information theory. Feed it the Random bytes grid and it stays hot and barely compresses — because incompressible data is incompressible, and an honest coder admits it. The layout is illustrative (the message is tiled to fill the screen, and the cold→primed cooling is animated for legibility). It is the mechanism, made visible — consistency, not proof.
The one idea, in one line
- Priming. Both ends stream the shared corpus so the model learns the statistics of the language. Nothing is transmitted here — that's the trick.
- The cold sweep. The grid first lights up at the cold cost — no priming, every byte near 8 bits, nearly all hot. This is the “whole”, the naive baseline.
- Cooling to primed. Cell by cell the heat relaxes to the primed cost. Common words, letter pairs, and structure the corpus taught the model drop to a bit or two — the map goes olive-cool where prediction is strong.
- The residual bar. The bar up top is the bitstream actually sent. Primed, it fills only a fraction of the cold length — the shared-knowledge gain, shrinking in real time.
- Decompression. The same residual is decoded on the primed model and the grid rebuilds, bit-for-bit identical. Lossless is not a slogan here; it's checked each loop.
- Honest refusal. Switch the grid to Random bytes: no context helps, the map stays hot, the bar barely shrinks. Incompressible data is incompressible — and the instrument says so.