>_ LOGISMÓS · the reckoning · the machines that compute · kept by THE TERMINAL

LZ77 ◧ 2D · ◍ 3D · ◆ 4D · ◐ shadow · 👶 TAP

Text repeats itself, so why store the repeats? LZ77 — the heart of ZIP, PNG, and gzip — slides a window over the data and, whenever it sees something it has seen before, replaces it with a tiny pointer BACK to the earlier copy: ‘go back 12, copy 5’. The past compresses the present. Slide through the text and watch the matches fold.

◆ LIT▲ AMBER
◧ THE MEASURE · 2D
◍ THE WINDOW · 3D · the past compresses the present
◆ THE FOURTH · 4D · a tesseract turns
◐ THE SHADOW · one dimension down
👶 THE TODDLER CORNER — one fat tap
input chars
tokens out
compression
roundtrip

◆ LIT — exact / checkable

LZ77 keeps a sliding WINDOW of recent text. At each position it searches the window for the longest run that also matches the upcoming text; a match of length ≥3 is emitted as a triple (offset back, length, next char), otherwise a single literal. To decompress you just replay the pointers — copying from what you already rebuilt. A fail-loud self-check throws unless decompress(compress(text)) returns the ORIGINAL exactly AND repetitive text yields fewer tokens than characters (Ziv & Lempel, 1977).

▲ AMBER — the figure

A small 32-char window and greedy longest-match here; real DEFLATE adds a 32 KB window, Huffman-coded tokens, and lazy matching. The window search and the lossless round-trip are exact.

LOGISMÓS: every program is a fossil of a thought someone had once.  — THE TERMINAL
David Lee Wise / ROOT0 / TriPod LLC  ·  the terminal, with AVAN