code-a-day
One program a day — fundamental computing concepts from the 80s to now, in 5–15 lines.
A Seedling Finds Its Slope
Least Squares Regression 🔗 Basil Germination FlipbooksA few basil photographs turn into a line that estimates how quickly a seedling is growing.
A Spoon Bowl in Small Polygons
Shoelace Formula 🔗 Whittling Wooden SpoonsA handful of points around a spoon bowl can reveal its area without filling it with water.
A Shallow Light Reveals the Cut
Lambertian Diffuse Reflection 🔗 Raking-Light Stone Carving PhotographyA lamp skimming a soapstone carving turns tiny changes in surface direction into a map of light and shadow.
Finding a Form Inside the Stone
Voxel Representation 🔗 Soapstone CarvingA tiny block of digital soapstone reveals its shape one layer at a time.
When the Moisture Readings Turn Around
Inversion Counting 🔗 Terrestrial Isopod KeepingA handful of habitat readings reveals how often a later measurement falls below an earlier one.
A Day of Light, One Slice at a Time
Midpoint Numerical Integration 🔗 Seed Starting Under Grow LightsA seedling’s daily light adds up one small interval at a time.
Sorting the Mending Basket by Wear
Counting Sort 🔗 Visible MendingA few small piles turn a basket of worn clothes into a lesson in counting sort.
A Spoon Too Wide to Count
Checked Arithmetic 🔗 Whittling Wooden SpoonsA tiny measurement field has room for 255 tenths of a millimetre. What happens when a spoon needs more?
A Mirror Trick with Exclusive Or
Exclusive Or 🔗 Kaleidoscope MakingA row of mirrors turns a one-bit logic operation into something you can see.
A Handful of Stamps for the Gaps
Greedy Set Cover 🔗 Jigsaw Gap Reconstruction PrintsChoose a small collection of carved stamps to cover the missing shapes in a jigsaw print.
Finding a View in Common
Cosine Similarity 🔗 Postcard Viewpoint RephotographyA church tower, a bridge and a row of trees can help rank possible matches for an old postcard.
One Fold Away from Clarity
Levenshtein Edit Distance 🔗 Disentanglement Puzzle Accordion GuidesA misplaced panel in a puzzle guide becomes a lesson in measuring the distance between two sequences.
Reading Loops from the Inside Out
Balanced Parentheses 🔗 NalbindingA strand can pass through earlier loops in surprising ways. A tiny loop notation helps us check one kind of structure.
The Pieces That Aren’t There
Left Outer Join 🔗 Jigsaw Puzzle SolvingA puzzle inventory becomes more useful when it includes the empty spaces.
Finding the Sweet Spot in a Roast
Pareto Dominance 🔗 Home Coffee RoastingWhen one roast smells wonderful and another tastes sweeter, let Pareto dominance preserve the interesting choices.
Making Room for Both Hands
Greedy Interval Scheduling 🔗 Accordion PlayingA busy accordion arrangement becomes a lesson in choosing the next note by when it ends.
One Piece, Four Ways to Turn
Canonical Representation 🔗 Jigsaw Puzzle SolvingA puzzle piece can face four directions; a canonical representation gives them all one name.
A Postcard Catalogue That Knows Prefixes
Trie Data Structure 🔗 Postcard CollectingA shared beginning can turn a pile of postcard place names into a searchable tree.
Counting Steps Between Isopod Shelters
Manhattan Distance 🔗 Isopod Shelter MappingA grid, two shelters and a distance that counts sideways steps instead of drawing a straight line.
What a Woodlouse Can Tell Us
Shannon Entropy 🔗 Terrestrial Isopod KeepingA count of woodlice under two shelters becomes a small lesson in measuring uncertainty.
A Leaf, a Label, and a Shortcut
Short-Circuit Evaluation 🔗 Botanical Leaf Embossing Field CardsA field card with no note can teach a useful lesson about when a program decides it has seen enough.
Let the Circle Choose the Dots
Rejection Sampling 🔗 Graphite Texture Field JournallingA circular graphite swatch begins with a square full of candidate marks.
The Stitch That Never Changes Its Mind
Pure Functions 🔗 Shuttle TattingA tatting gauge becomes a small lesson in functions that give the same answer every time.
Counting Owners in the Pencil Drawer
Reference Counting 🔗 Mechanical Pencil CollectingTwo pencils share a tube of leads. When can the collection let it go?
Making Room for One More Word
Greedy Line Wrapping 🔗 Hobonichi Techo JournallingA small journal page turns word wrapping into a lesson in making local decisions.
A Roast Temperature in Binary
Positional Number Systems 🔗 Home Coffee RoastingA coffee roaster's temperature probe offers a warm introduction to how computers write numbers in binary.
Three Piles Before the Polish
Three-Way Partitioning 🔗 Dorodango MakingA handful of soil and three moving boundaries reveal a neat way to organize data in place.
A Shorter Guide to Untangling
Move-to-Front Encoding 🔗 Disentanglement Puzzle Accordion GuidesAn accordion guide can record repeated puzzle moves as positions in a changing list.
Counting the Branches Left Behind
Graph Vertex Degree 🔗 Leaf SkeletonizingA leaf skeleton turns a handful of vein segments into a lesson in graph degree.
Two Beads, Four Colour Choices
Cartesian Product 🔗 Peyote Stitch BeadweavingA pair of bead colours becomes a small lesson in generating every possible combination.
A Little Compression Between the Knots
Run-Length Encoding 🔗 Shuttle TattingA tatting pattern already knows a compression trick: count the stitches instead of writing every one.
Depth Between Two Puzzle Views
Stereo Triangulation 🔗 Disentanglement Puzzle Stereo FlipbooksA tiny shift between two views can reveal how far away a puzzle piece is.
Where Two Views Part Ways
Longest Common Prefix 🔗 Disentanglement Puzzle Stereo CardsTwo puzzle views can share a sequence of moves right up to the moment they disagree.
Finding Depth One Shift at a Time
Exhaustive Search 🔗 Stereogram ViewingA tiny stereo pair reveals how trying every candidate can bring a hidden shift into focus.
A Fold in the Instructions
Character Escaping 🔗 Disentanglement Puzzle Accordion GuidesA puzzle guide needs arrows and ampersands; HTML needs to know when they are just text.
A Flipbook Written in Differences
Delta Encoding 🔗 Sliding-Puzzle Flipbook MakingA tile's journey across a flipbook can be recorded as a starting position and a handful of changes.
A Print That Commits All at Once
Transaction Atomicity 🔗 Sliding-Puzzle Block PrintingA sliding-puzzle print makes a useful case for keeping an unfinished change out of sight.
The Swap a Puzzle Won't Allow
Permutation Parity 🔗 Mechanical Puzzle CollectingA pair of swapped pieces can reveal why a mechanical puzzle refuses to be solved.
How Many Properties Apart Are These Inks?
Hamming Distance 🔗 Fountain Pen Ink CollectingA row of yes-or-no ink observations becomes a surprisingly useful way to compare swatches.
A Harmonica as a Map of Parts
Adjacency Lists 🔗 Harmonica Repair and MaintenanceA small graph keeps track of which parts belong together when a harmonica comes apart.
A Seal That Survives the Cut
Morphological Erosion 🔗 Chinese Seal CarvingA tiny stone seal shows how a neighbourhood rule can reveal strokes that may be too thin to survive.
Making Quiet Harmonics Visible
Min-Max Normalization 🔗 Vocal Overtone Spectrogram SketchingStretch a handful of spectral magnitudes across the page, and a quiet overtone gets room to show itself.
When an Overtone Pretends to Be Lower
Sampling Aliasing 🔗 Harmonic SingingA high overtone can masquerade as a low one when a digital recorder takes too few samples.
Where the Endpaper Stops
Half-Open Intervals 🔗 Sashiko-Stitched Cloth Book CoversA clean edge on a book cover starts with knowing exactly where the paper stops.
Pencilling In the Possibilities
Set Difference 🔗 Sudoku SolvingA Sudoku pencil mark is a small act of subtraction: take away the digits that cannot belong.
A Mirror for the Pebble Net
In-Place Reversal 🔗 Macramé Pebble Net PendantsTwo fingers moving inward can reverse a cord pattern without a second list.
A Sorting Network for Rough Stones
Sorting Networks 🔗 Rock TumblingFive little comparisons can put four rough stones in order, no matter how they arrive.
Turning a Woven Patch Sideways
Matrix Transposition 🔗 Mini-Loom Woven DarningA woven patch looks different when you follow each warp thread instead of each pass of the weft.
The Places the Patches Miss
De Morgan's Laws 🔗 Visible MendingTwo denim patches can overlap beautifully, but a little Boolean logic reveals what they leave exposed.
The Pool That Remembered Each Species
Idempotent Operations 🔗 Tidal PoolingA sea star spotted twice still belongs on the species list once.
Finding the Fewest Moves Apart
Breadth-First Search 🔗 Disentanglement Puzzle SolvingA queue can find the shortest route through a small puzzle's possible positions.
Shuffling Stitches Across a Cloth Cover
Fisher–Yates Shuffle 🔗 Sashiko-Stitched Cloth Book CoversA shuffled set of sashiko motifs gives a book cover variety without losing track of any piece.
A Thimble, Fourteen Stitches, and Division
Integer Division and Rounding 🔗 Sashiko Thimble MakingA strip of fabric and a row of stitches make a neat case for rounding up.
When Two Bell Parts Meet
Merging Sorted Sequences 🔗 Handbell RingingTwo ringers follow separate parts. Merging their entrances reveals the ensemble’s shared timeline.
Where Two Inkings Meet
Set Intersection 🔗 Linocut Artistamp MakingTwo carved blocks, two colours, and one small operation reveal where the inks meet.
The Stamp That Found Its Label
Relational Inner Join 🔗 Postage Stamp CollectingA stamp and its catalogue entry can find each other without sharing the same box.
A Whistle Worth Testing Twice
Online Variance 🔗 Paper Bellows Whistle MakingA paper whistle may hit the right note once. Online variance asks whether it can do it again.
A Straw Cut Short by Rounding
Floating-Point Representation 🔗 Paper Straw Oboe MakingA paper straw exposes the tiny gap between a decimal measurement and its representation in memory.
Finding a Common Breath in Numbers
Euclidean Algorithm 🔗 Harmonica PlayingTwo harmonica phrases can share a pulse even when their lengths differ.
Keeping the Comb Strokes in Order
Stable Sorting 🔗 Paste Paper Pattern MakingA stable sort groups paste-paper swatches by colour without disturbing the order of their combed patterns.
One Crease at a Time
Gray Code 🔗 Pop-Up Card EngineeringA pop-up card with three creases reveals why changing one bit at a time can be useful.
Finding the Wind’s Middle Note
Median and Outliers 🔗 Aeolian Harp Building and Wind-TuningA gust can dominate an average; the median gives an aeolian harp builder another way to hear the weather.
Cut Paper, Paint From the Back
Painter’s Algorithm 🔗 Layered Paper Shadow Box MakingA shadow box and a computer screen both need a plan for deciding which shapes cover others.
Keeping the Walnut Away from the Walnut
Greedy Graph Colouring 🔗 Intarsia WoodworkingAn intarsia owl turns wood selection into a graph: neighbouring pieces need enough contrast to keep their edges visible.
Keeping a Promise Beneath Every Wool Loop
Loop Invariants 🔗 Rug HookingA strip of wool becomes a lesson in loop invariants: the promise that survives every trip through a program.
Finding Order Among the Paper Coils
Selection Sort 🔗 Paper QuillingA tray of loose paper coils becomes a sorting problem: find the smallest, place it, and repeat.
Putting a Wayward Serve in Its Place
Insertion Sort 🔗 Table TennisSeven serves, one wild bounce, and a sorting algorithm that makes room for every mistake.
Counting Yarn Between the Loops
Prefix Sums 🔗 Punch Needle EmbroideryA row of embroidered loops becomes a running total that answers yarn-budget questions with two numbers.
The Sensible Boule Is Not Always Spectacular
Expected Value 🔗 PétanqueA dramatic shot can succeed more often and still be the poorer choice. Pétanque meets expected value.
One Good Throw Deserves a Function
Function Composition 🔗 Yo-YoingA yo-yo combination and a composed function share a useful trick: make the finish of one move the start of another.
Uncrossing the Threads, One Swap at a Time
Reversible Computation 🔗 Bobbin Lace MakingA misplaced bobbin crossing offers a small lesson in computing backwards without losing information.
A Shadow Puppet Walks Its Family Tree
Recursive Tree Traversal 🔗 Articulated Shadow PuppetryBefore the shadow dragon takes a bow, recursion gives every joint its turn in the spotlight.
Leaving Room for the Cardboard Bird
Interval Arithmetic 🔗 Cardboard Cam AutomataA cardboard bird needs headroom, and interval arithmetic makes room for the uncertainty in every fold.
Two Hands Cannot Halve Every Stacking Time
Amdahl’s Law 🔗 Sport StackingTwo hands promise twice the speed, until the cups reveal which movements still have to happen in order.
A Woolly Lesson in Knowing Your Limits
Saturating Arithmetic 🔗 Needle FeltingA felted sheep's ear offers a soft introduction to arithmetic that stops at the boundary.
The Shot That Survives the Reply
Minimax Decision Rule 🔗 CrokinoleA beautiful crokinole shot can leave an ugly reply. Minimax judges the whole exchange.
Counting the Diamonds Behind Closed Hands
Combinatorial Counting 🔗 Contract BridgeFive diamonds are missing. Counting their possible hiding places puts a number on a declarer's hope.
Choosing One Stone Without Keeping Them All
Reservoir Sampling 🔗 Stone SkippingA pocket holds one skipping stone. Reservoir sampling gives every suitable stone along the shore an equal chance of filling it.
Every Wobble Deserves a Clean Exit
Deterministic Resource Cleanup 🔗 UnicyclingA supported unicycle start suggests a useful programming habit: arrange the exit before attempting the interesting part.
What State Is the Marble In Right Now?
Finite State Automata 🔗 Marble Run ConstructionA marble run is just a physical state machine—at every moment, the marble is exactly one state, and gravity dictates which states it can reach next.
Sorting Photons by Wavelength: The Histogram Inside a Flame
Histogram binning and data aggregation 🔗 Flame Spectroscopy — Elemental Emission AnalysisInside every spectrometer is a deceptively simple algorithm: collect photons, sort them by wavelength, count.
One Rule, and the Whole Row Falls
Elementary Cellular Automata 🔗 Domino Toppling (Chain-Reaction Building)A line of dominoes only knows its neighbour, yet builds a whole pattern as it falls — the same trick behind Wolfram's cellular automata.
The Flytrap Counts to Two
Finite State Machine 🔗 Carnivorous Plant CultivationA Venus flytrap won't snap on the first touch — it waits for a second within about twenty seconds. That's a state machine with a fading memory.
The Knife-Edge Is a Derivative
Discrete gradient kernel 🔗 Single-Mirror Schlieren Imaging of Heat and ShockwavesA razor blade at a mirror's focus doesn't photograph air — it computes the derivative of it, one convolution kernel made of light.
How a Chip Computes Sine With Only Shifts and Adds
CORDIC algorithm 🔗 Foucault Pendulum Building and Latitude MeasurementA Foucault pendulum's drift rate is 15°·sin(latitude) per hour — so I needed a sine. CORDIC gets one with no multiplier at all.
Releasing a Smoke Streak Made of Numbers
Particle advection (Euler integration) 🔗 Smoke-Streak Wind Tunnel Flow VisualizationA wind-tunnel smoke streak is just a particle stepped through a velocity field — here it is in six lines, drifting outward from its own error.
The Loop That Keeps a Unicycle Upright
PID Control Loop 🔗 UnicyclingA unicycle is an inverted pendulum you sit on. The math that keeps it up fits in eleven lines — and my body still can't run it.
The Pendulum That Rotates by Multiplying
Incremental rotation by complex multiplication 🔗 Foucault Pendulum Building and Latitude MeasurementA Foucault pendulum advances its swing plane by the same tiny angle every hour — which is exactly how you rotate a vector without calling sin() in the loop.
The Byte That Makes a ROM Add Up to Zero
Checksum verification 🔗 Retrocomputing Hardware RestorationThe simplest way an old ROM tells you it's still honest: add up every byte and see if the total lands on zero.
One Bin at a Time: The Goertzel Resonator
Goertzel algorithm 🔗 Heterodyne Bat Detecting and Call IdentificationThe bat detector's resonant piezo only rings near 40 kHz. The Goertzel algorithm is that same tuned resonator, written as ten lines of code.
The Problem That Stole Its Name From a Sport
The Orienteering Problem (greedy heuristic) 🔗 Foot OrienteeringA greedy solver for score orienteering — grab the best points-per-metre control until the time budget runs dry.
The Eye Is the Centre of Projection
Perspective Projection 🔗 Camera Lucida Drawing (Prism Optical Tracing)A camera lucida is a pinhole camera model made of glass — and the perspective divide is the exact trick your eye pays for.
The Magnet Is a Predicate You Drag Through a River
Higher-order predicate filtering 🔗 Magnet FishingA magnet doesn't know where the iron is. It just attracts what matches — which is exactly what a predicate does to a sequence.
Rotating a Vector to Find a Star's Angle
CORDIC algorithm 🔗 Planispheric Astrolabe Construction and Star-TimekeepingThe astrolabe finds a star by turning a metal disc. CORDIC finds a sine by turning a vector — no multiplier required.
The Straightedge Computes a Determinant
The orientation predicate 🔗 Nomography (Nomogram Design and Construction)A nomogram's straightedge asks one question — are these three points collinear? — which is precisely computational geometry's orientation determinant.
Rounding With a Debt to Pay Forward
Error diffusion dithering 🔗 MarquetryA marquetry drawer holds four wood tones and a photo's worth of gradient — the same shortage that gave computing error diffusion.
Fair Dice on a Machine That Can't Roll Them
Linear Congruential Generator 🔗 BackgammonBackgammon lives or dies on two honest dice — but a computer is deterministic to the bone. Here's the recurrence that fakes chance.
The Bell Ringers Who Ran an Algorithm Since 1668
Steinhaus–Johnson–Trotter permutations 🔗 Change Ringing (Method Bell Ringing)A full peal is every permutation of the bells, each differing from the last by one adjacent swap — an algorithm three centuries early.
A Gaiwan and the Angle Between Teas
Cosine Similarity 🔗 Gongfu Tea BrewingA dot product can compare two cups by the shape of their flavour, even when one is stronger.
Two Balls, Four Events, One Clock
Discrete Event Simulation 🔗 JugglingA two-ball exchange becomes a tiny simulation that jumps from one meaningful moment to the next.
Putting the Curing Room in Order
Insertion Sort 🔗 Charcuterie (Dry-Curing)A handful of curing-room readings makes a tidy introduction to insertion sort.
The Signal Arm Dijkstra Borrowed
Semaphores 🔗 Model RailroadingRailway block signalling gave concurrency its vocabulary — a single-occupant track block, rebuilt as a mutex in Rust and an MVar in Haskell.
Draining the Leaf, One Steep at a Time
Discrete recurrence relations 🔗 Gongfu Tea BrewingEight infusions from one pinch of leaf is a difference equation you can drink — each cup pulls a fixed fraction of whatever's left.
Probing One Skate-Length Ahead with Lazy Streams
Lazy Evaluation 🔗 Nordic Tour SkatingReading ice with an ispik pole — probe one strike ahead, commit only to what holds — is lazy evaluation, in Scheme streams and Java's takeWhile.
Lindenmayer's Algae and the Three-Line Cut
L-systems (string rewriting) 🔗 Ikebana (Japanese Flower Arranging)A biologist's rule for growing algae turns out to count in Fibonacci — and points the exact opposite way from a pair of ikebana shears.
Chasing the Wind You Made: Fixed-Point Iteration
Fixed-point iteration 🔗 DN Iceboat SailingAn iceboat's terminal speed is the value that feeds back into its own equation — the same trick numerical methods use to pin down a moving target.
Sweeping a Rock You Can No Longer Touch
Bang-bang control 🔗 CurlingThe throw is over the instant the handle leaves your hand, so sweeping is the only control input left — and it's a one-directional on/off switch.
The Trap Is a Mailbox
Message-passing concurrency (mailbox) 🔗 Moth Trapping (Mothing)A light trap emits, waits, and buffers whatever wanders in until dawn — which is exactly what an Erlang process mailbox does.
The Nine-Dart Leg Is a Coin-Change Problem
Dynamic programming 🔗 Darts (501)A dartboard is a set of 62 coins and 501 is the change you owe — the fewest darts to pay it is bottom-up DP.
Both Lamps Lit: Right-of-Way as a Priority Encoder
Priority arbitration 🔗 Foil FencingIn foil both lamps can light at once — and the referee resolves the tie exactly like a hardware priority encoder deciding who wins the bus.
A Wick Is a Lazy Generator
Lazy evaluation 🔗 Beeswax Candle MakingA candle wick doesn't push wax—the flame pulls it, exactly as fast as it burns. That's demand-driven evaluation, in cotton and beeswax.
Waiting for a Wet Blade to Reach Equilibrium
Iterative relaxation 🔗 Green-Wood Canoe Paddle CarvingA green paddle blank dries the same way a relaxation solver settles a grid: neighbours averaging with neighbours until nobody moves.
Three Balls, Two Hands, One Core
Cooperative multitasking 🔗 JugglingThree balls, two hands, one CPU core: juggling and cooperative multitasking solve the same problem — attend to one thing, trust the rest to wait.
The String That Solves Its Own Equation
Fixed-Point Iteration 🔗 Kite Aerial Photography with a Picavet RigA Picavet rig levels a kite camera with no sensor and no servo — it just keeps sliding back to the one configuration that doesn't move.
Why the Cue Ball Always Leaves at a Right Angle
Vector projection (elastic collision) 🔗 Pool (Cue Sports)Two equal masses, one clean hit, and the balls part at exactly 90° — the same projection a physics engine does every frame.
When a Bag of Rings Becomes One Object
Union-Find (Disjoint Sets) 🔗 Chainmaille WeavingA chainmaille sheet is only an object if every ring connects to every other — the same question disjoint-set forests were built to answer.
The Wash Stops Where the Ink Says
Flood Fill 🔗 Urban SketchingInk the boundary, drop in colour, and let it spread until it hits a line — the same rule paint programs used in 1984.
The Ball Rattles in the Cup Before It Counts
Switch Debouncing 🔗 KendamaA kendama ball bounces twice in the cup before it settles. So does every button you've ever pressed — which is why we debounce.
Eight Perfect Shuffles and the Deck Comes Home
Permutation order (perfect shuffle) 🔗 Close-Up Card Magic (Sleight of Hand)A magician's faro weave and a parallel-computing network are the same permutation — and both loop back to the start after eight moves.
One Cloud from a Day's Sky
Reservoir Sampling 🔗 Cloud SpottingChoose one cloud from a day's observations without knowing how many will drift past.
Meeting in the Middle Like a Cryptic Clue
Bidirectional Search 🔗 Cryptic Crossword SolvingA cryptic clue is two searches racing toward the same word from opposite ends — which is exactly how bidirectional search works.
The Go Program That Taught Chess Engines to Remember
Zobrist hashing 🔗 Go (Weiqi/Baduk)The 64-bit fingerprint every board-game engine uses was invented in 1970 to stop a Go program replaying the same position.
The Diabolo Is a Leaky Accumulator
Leaky integrator (EMA) 🔗 Diabolo Gyroscopic String AccelerationA diabolo's spin never adds up cleanly — friction bleeds it while every string stroke tops it up. That's an exponential moving average, in your hands.
The Riverbed That Only Appends
Immutable append-only logs 🔗 Fossil Hunting and PreparationSediment never rewrites what's underneath — it only adds to the top. That's an append-only log, written by a riverbed.
The Grid That Boxes In a Tear
Two-Dimensional Parity 🔗 Ripstop Sport Kite Building and Precision FlyingRipstop nylon boxes a tear inside one grid cell — which is exactly what two-dimensional parity does to a single flipped bit.
Tuning a Bare Shaft With Binary Search
Binary search (bisection) 🔗 Barebow Recurve ArcheryA bare shaft prints its own spine error into the target, and finding the plunger tension that zeroes it is just bisection.
How Many Times Until the Cube Comes Home
Order of a Permutation 🔗 SpeedcubingDo R U R' U' six times and the cube snaps back to solved. That number isn't luck — it's the order of a permutation, and you can count it in code.
The Sleeping Top and the Number That Won't Move
Fixed-point iteration 🔗 Precision Spinning Top Turning and Gyroscopic BalancingA top spun fast enough stands dead upright and looks frozen. Feed a function its own output long enough and a number does the same thing.
Pressing Cos Until the Stick Comes Home
Fixed-point iteration 🔗 Returning Boomerang Carving and TuningPress cos on a calculator until it stops moving, and you've found the same thing a tuned boomerang has: a point its own flight refuses to change.
The Four in B6-4
Euler's method (numerical integration) 🔗 Model RocketryA model rocket motor's ejection delay has to match time-to-apogee. Euler's method predicts it in ten-millisecond steps, no calculus required.
The Disc's Rim Speaks Only in Integers
Fixed-point arithmetic 🔗 Disc GolfThe four numbers moulded into a disc's rim are all integers — so you can predict where it lands using the same decimal-free math a 1983 flight computer would.
You Will Fall: Restart From the Ground
Let It Crash / Supervision 🔗 BoulderingBouldering has no ropes — you fall, land, and restart from a known-good state. Erlang built a whole philosophy on that move.
The Rock Never Overwrites, It Only Deposits
Persistent data structures 🔗 Fossil Hunting and PreparationSediment is append-only storage: a stratum, once laid down, is never edited — and that is exactly how a persistent data structure remembers its past.
The Deadband That Keeps My SCOBY Warm
Hysteresis control 🔗 Kombucha BrewingA kombucha heater that switches on the instant the temperature dips will chatter itself to death. The fix is a band of deliberate indecision.
Watching One Frequency Without an FFT
Goertzel Algorithm 🔗 VLF Sudden Ionospheric Disturbance MonitoringMy VLF rig only cares about one number: how much 24.8 kHz is arriving right now. That's a job for Goertzel, not a full spectrum.
One Wavelength at a Time: Pipelines That Filter Light
Message-passing pipelines 🔗 SpectroheliographyA spectroheliograph builds a photo of the sun in a single colour by scanning it strip by strip — which is just a filtering pipeline made of brass and gears.
Growing New Trees Without Copying the Old
Structural Sharing in Persistent Data Structures 🔗 Succulent PropagationWhen you propagate a succulent, you don't photocopy every cell—you share the blueprint and grow from there.
I/Q Quadrature and the Two-Channel Phase Detector
Quadrature Signal Processing 🔗 Microwave InterferometryMicrowave interferometers need phase, not just amplitude—so they split the signal into two channels 90° apart.
Fixed-Point Arithmetic and the Problem of Scale
Fixed-Point Arithmetic 🔗 Thermal Expansion InterferometryWhen your reference frame is the unit of measurement itself, you avoid drift entirely.
Folding Through Layers of Glass
Fold (Catamorphism) 🔗 Optical Thin-Film Coating DepositionEach coating layer transforms what came before—a fold operation at nanometer scale.
Ruling Ten Thousand Lines Without Drifting
Compensated Summation 🔗 Diffraction Grating RulingKahan summation keeps your accumulated positions honest when floating-point wants to drift.
Compositing Colored Light with Alpha Blending
Alpha Blending 🔗 Stained GlassThe mathematics of layering translucent color—Porter and Duff's 1984 paper made stained glass computable.
Wavelength Keys, Element Values
Hash Tables 🔗 Flame Emission SpectroscopyFlame spectroscopy identifies elements by wavelength—a lookup problem hash tables were born to solve.
Decomposing Signals with the Discrete Fourier Transform
Discrete Fourier Transform 🔗 Prism SpectroscopyA prism for waveforms: splitting composite signals into their frequency components through complex exponential arithmetic.
Linear Interpolation Between Calibration Points
Linear Interpolation 🔗 Optical PyrometryWhen your sensor gives you data between the points you measured, draw a straight line and call it close enough.
Selective Revelation Through Bit Masking
Bit Masking 🔗 Microscope Slide PreparationStains bind to specific structures; masks reveal specific bits. Both filter by affinity.
Annealing Code Like Steel
Simulated Annealing 🔗 BlacksmithingAn optimization algorithm that borrows the blacksmith's technique of heating and slow cooling to escape local minima.
Computing Derivatives When You Only Have Two Points
Finite Difference Approximation 🔗 Magnetic Gradient SurveyingHow magnetometers separated by 50 centimetres taught me that calculus is mostly subtraction and division.
Convolution: What the Radar Actually Hears
Discrete Convolution 🔗 Ground Penetrating RadarGPR data isn't raw reflections—it's your transmitted pulse smeared across every boundary in the ground.
Finding the Breakpoint in Travel Time Data
Segmented Linear Regression 🔗 Seismic Refraction MappingWhen your data has two slopes, you need to find where one line becomes another—automatically.
Iterative Relaxation: Solving by Gradual Adjustment
Iterative Relaxation Methods 🔗 Bonsai Wire TrainingWire guides a branch toward its final shape; relaxation methods guide values toward equilibrium through repeated adjustment.
Accumulating Copper, One Ion at a Time
Monoids and Folds 🔗 Copper ElectroformingElectroforming deposits metal atom by atom. Folds accumulate results element by element. Both rely on associativity.
Threshold Detection and the Voltage Window of Oxidation
Threshold Detection 🔗 Electrolytic Fountain Pen Ink SynthesisBetween 0.77V and 1.2V, iron oxidizes to ink. Outside that window, nothing useful happens.
When the Waterfall Lets Go
Reference Counting 🔗 Paludarium ConstructionA pump shared by two waterfall channels offers a small lesson in knowing when a resource can be released.
Irreversible Transformations: Hash Functions and Iron Gall Ink
Cryptographic Hash Functions 🔗 Natural Ink MakingYou can't un-mix iron and tannin any more than you can reverse SHA-256.
Structural Sharing: Cloning Without Copying Everything
Structural Sharing 🔗 Coral Fragment MicropropagationWhen you fragment a coral, the new polyp shares most of its biology with the parent. Same idea in persistent data structures.
Sorting Spores at the Slide
Two-Pointer Partitioning 🔗 Lichen MicroscopyTwo pointers organize a tray of microscope observations without asking for a second tray.
Growing Compilers from Seed Code
Bootstrapping Self-Hosting Compilers 🔗 Aquatic Plant Tissue CultureStarting with minimal viable code and using it to compile itself—same discipline as growing plants from single cells.
Message Passing Between Sealed Environments
Communicating Sequential Processes 🔗 Paludarium ConstructionWhen two environments can't share memory, they talk through boundaries instead.
Simulated Annealing: Teaching Metal to Forget
Simulated Annealing 🔗 Bonsai Wire TrainingFinding optimal configurations by cooling slowly, accepting worse states early, converging as temperature drops.
Measuring Concentration by Adding Up Trapezoids
Trapezoidal Integration 🔗 LED Absorption SpectroscopyWhen you measure how much dye is in solution, you're really just counting trapezoids under an absorption curve.
Stepping Through the Nitrogen Cycle, 0.1 Hours at a Time
Runge-Kutta Numerical Integration 🔗 Reef Aquarium KeepingWhen your reef tank is a continuous differential equation, you need a way to step through time without lying about the math.
Capturing the Echo Before You Heard It
Circular Buffer 🔗 Radio Occultation Meteor DetectionRing buffers let you record audio from before a meteor was detected—because the past is always in memory, waiting.
A Calibration That Remembers Its Station
Lexical Closures 🔗 Geophone SeismographyGive each geophone its own remembered baseline, then compare what the ground has to say.
Lookup Tables and the Mordant Problem
Hash Tables 🔗 Mushroom DyeingWhen the vessel matters as much as the ingredient, you need a map from keys to colours.
Smoothing Out the Noise in Your Fermentation Data
Exponential Moving Average 🔗 Kombucha BrewingWhen your pH sensor jitters between 3.2 and 3.4 every second, you need a filter that remembers the past without drowning in it.
Selective Exposure: Bitmasking as Pattern Protection
Bitwise Masking 🔗 Shibori Resist DyeingProtecting bits with patterns, one AND operation at a time.
A Dye Print Meets Exclusive OR
Bitwise Exclusive OR 🔗 Natural Dye Textile PrintingTwo printed swatches look almost alike. A little XOR shows exactly where they disagree.
How Semi-Transparent Layers Combine: Porter-Duff Compositing
Porter-Duff Compositing 🔗 Natural Dye Textile PrintingThe math behind layering transparent colors—whether in pixels or dye-soaked fabric.
Weaving Two Bitstreams Into One Address
Bit Interleaving 🔗 Loom WeavingMorton encoding interleaves x and y coordinates bit-by-bit, turning 2D space into a single woven index.
Filling the Gaps Between Eight Buried Detectors
Inverse Distance Weighting 🔗 Atmospheric Radon MappingWhen you have sparse measurements, you need to guess what's between them. Here's the 1970s algorithm that makes radon maps from point samples.
Topological Sorting: When Order Matters
Topological Sorting 🔗 Macramé Plant HangersMacramé cords have dependencies—you can't tie the next row until the previous one's done. So do software builds.
Averaging Compass Bearings Without Breaking Geometry
Circular Mean 🔗 Radio Telemetry Wildlife TrackingWhy you can't average 350° and 10° the normal way, and the trigonometric fix that saves your triangulation.
Bloom Filters and the Life List Problem
Bloom Filters 🔗 BirdwatchingWhen your life list has 8,000 species, checking for duplicates needs something faster than linear search.
Linear Interpolation Between Known Points
Linear Interpolation 🔗 Celestial Navigation by SextantWhen your almanac gives you hourly data but you need the sun's position at 14:37:42, you interpolate between the known points.
Closing the Loop on Floating-Point Error
Kahan Compensated Summation 🔗 Precision Surveying Theodolite OperationLike theodolite traverses that must close, floating-point sums accumulate error that Kahan summation tracks and corrects.
Geohash: When Coordinates Need Neighbourhoods
Geohash Encoding 🔗 Benchmark HuntingConverting latitude and longitude into strings that know when they're standing next to each other.
Turning GPS Coordinates Into Postal Codes
Geohashing 🔗 GeocachingHow a recursive grid system turns lat/long pairs into proximity-aware strings that share prefixes when caches are close.
Brazing Order and the Topology of Dependencies
Topological Sort 🔗 Bicycle Frame BrazingWhen you can't do joints in any order — and when you can't compile modules in any order — you need a topological sort.
Arranging Pattern Pieces on an Irregular Hide
2D Irregular Bin Packing 🔗 LeatherworkingLeather hides are expensive and irregular—so you arrange pattern pieces like a geometric puzzle to minimize waste.
Ring Buffers and the Rotating Surface
Ring Buffer 🔗 Pottery Wheel ThrowingA fixed-size workspace that wraps around—on a wheel, or in memory.
Smoothing Wobbles with Exponential Weights
Exponential Smoothing 🔗 Pottery Wheel ThrowingWhen your pottery wheel wobbles, you don't chase every vibration—you feel the trend. Same principle filters noisy sensor streams.
Persistent Data Structures: Structural Sharing Across Versions
Persistent Data Structures 🔗 Glass BlowingOnce glass cools, you can't reshape it. You make a new piece. Same with persistent data structures.
Backpressure: When the Stream Tells You to Wait
Backpressure in Stream Processing 🔗 Fly FishingFly fishing taught me about bounded buffers: you can't cast more line until the last loop unfurls.
You Can't Uncurdle Milk: Linear Types
Linear Types 🔗 Cheese MakingWhen transformations are irreversible, the type system should enforce it.
Finding the Fall Point with Imperfect Bearings
Least Squares Bearing Intersection 🔗 Meteorite Recovery by Radio Direction FindingWhen three radio stations hear a meteorite's plasma trail, their bearings won't quite agree—so you solve for the most likely position.
Property Lists: When Metadata Outweighs the Specimen
Property Lists 🔗 Mineral Specimen CollectingStoring mineral properties as key-value pairs—because a Bisbee malachite without provenance is just green copper.
How Much Surprise Is in the Ground?
Shannon Entropy 🔗 Geophone SeismographyA geophone trace can be turned into a small alphabet, then measured for how surprising its symbols are.
Debouncing the Strike: Filtering Noise from Signal
Signal Debouncing 🔗 Praying Mantis RearingA mantis won't strike at every shadow—it waits for the signal to stabilize. Same principle as switch debouncing.
When the Probe Changes the Reading
Observer Effect in Computing 🔗 Fungal Resonance MappingMeasuring a system changes it — contact mics and debuggers share the same problem.
Ring Buffers for Continuous Event Detection
Ring Buffers 🔗 Bioacoustic Spore Discharge RecordingWhen you're recording mushrooms for 11 hours, you need a data structure that remembers the last N samples without caring how many you've seen.
Exponential Smoothing for Noisy Growth Measurements
Exponential Smoothing 🔗 Lichen Growth Rate CalibrationWhen growth happens in micrometres per month, every measurement is mostly noise. Here's how to extract the signal.
Growing Toward the Gradient
Gradient Descent 🔗 Phototropic Sculpture GardensPlants climb light gradients the same way algorithms find minima: one small step at a time, feeling for the slope.
Floyd-Steinberg Dithering: Organized Chaos in Black and White
Error Diffusion Dithering 🔗 Spore Print Cyanotype DarkroomHow do you print a photograph using only black ink? Push the mistakes forward until they look like gradients.
Listening to the Ground with RMS
Root Mean Square 🔗 Geophone SeismographyTwo geophones hear the same footsteps, but which one is getting a stronger signal?
Ring Buffers and Closed-Loop Systems
Ring Buffers 🔗 Terrarium BuildingFixed-size circular buffers that overwrite old data, just like a terrarium cycles its water endlessly through the same space.
Fountain Codes for When Half Your Packets Vanish
Rateless Erasure Codes 🔗 Stratospheric Balloon TelemetryWhen you're transmitting from 30 km up and can't ask for retransmits, send more math than data.
Temperature Gradients from a Woven Grid
Finite Difference Approximation 🔗 Thermocouple Lace MakingWhen your sensor array is a lace of thermocouples, you stop measuring temperature and start measuring heat flow across space.
Sorting Bubbles Before They Burst
Stable Sorting 🔗 Soap Bubble PhotographyWhen several bubble photographs share a score, a stable sort remembers which one came first.
Sixteen Thresholds and the Illusion of Smooth
Ordered Dithering 🔗 Fipple Harmonic Lithophane TilesWhen plastic only comes in eight thicknesses, how do you fake sixty-four?
Finding Notes Between the Samples
Table Lookup with Interpolation 🔗 Slide Whistle TuningA slide whistle knows every frequency; a lookup table knows only some of them.
Spinning Until the Lock Gives
Spinlocks 🔗 Bronze Wool SpinningThe CPU keeps checking, burning cycles, waiting for permission that may never come.
Finding the Perfect Temperature: Gradient Descent
Gradient Descent 🔗 Tuning Fork MetallurgyJust like annealing steel to perfect resonance, algorithms descend gradients to find optimal solutions.
Tap, Rotate, Tap: Bits That Circle Home
Circular Bit Rotation 🔗 Coin Ring ForgingEverything stays. Everything moves. After enough rotations, you're back where you started.
Waiting for the Rattle to Settle
Debouncing 🔗 Piezoelectric Contact Mic BuildingA piezo disc screams for 50 milliseconds after every tap, and only patience makes it useful.
Reading That Leaves Nothing Behind
Destructive Reads 🔗 Gel Plate MonoprintingWhen receiving a message empties the mailbox, every read is a kind of print.
The Pitch Only Goes Down
Monotonic Sequences 🔗 Tongue Drum TuningFiling a tongue can only flatten the note. Some processes only move in one direction.
When the Function Returns Itself
Fixed-Point Computation 🔗 Kalimba MakingTuning a kalimba tine is fixed-point iteration: adjust until the pitch stops changing.
Computing the Flare Before the FPU Existed
Taylor Series Approximation 🔗 Acoustic Phonograph Horn CarvingBefore floating-point units, exponential horn curves required summing infinite series by hand.
Quantizing the Wind into Eight Buckets
Discretization / Quantization 🔗 Weather Vane WhittlingA weather vane points anywhere; a compass rose has eight slots. The gap between them is where digital computing lives.
Carving Down to the Essential Value
Reduce / Fold 🔗 Spoon CarvingSpoon carving removes everything that isn't spoon. Reduce removes everything that isn't answer.
The Over Operator and Forty Grams of Foam
Alpha Compositing 🔗 Latte ArtPorter and Duff gave us twelve ways to layer pixels. Milk through crema uses exactly one.
The Drum Forgets Last Week at Midnight
Circular Buffers 🔗 Barograph Chart ArtA barograph drum is a ring buffer made of brass — it just forgets slower.
When Circular Dependencies Are the Point
Cycle Detection in Graphs 🔗 Kumiko WoodworkingKumiko's closed-loop constraints would crash a dependency resolver. That's what makes it beautiful.
Rotating Vectors Without Floating Point
CORDIC Algorithm 🔗 Sundial MakingSundials need sine and cosine. Early calculators had no multiplier. CORDIC solved both.
Invisible Geometry You Can Only Touch
Potential Fields 🔗 Theremin Antenna Pattern TuningShaping the invisible: how robots learned to feel their way through space.
Where Copper Stays and Where It Goes
Bitwise Masking 🔗 Verdigris Electroetched PCB ArtPCB resist masks and bitwise AND are the same operation: where the mask is set, the thing survives.
Diffusion Across a Grid of Copper Atoms
Cellular Automata Diffusion 🔗 Vinegar Patina Etching on BronzePatina spreads from wet to dry cells the same way messages spread through a grid of processes.
Short Pieces, Efficiently Joined
Rope Data Structures 🔗 NalbindingNalbinding uses 50cm yarn segments; ropes use short string leaves. Same problem, same trick.
Moving Forward, Turning, Leaving a Trail
Turtle Graphics 🔗 Sashiko StitchingSashiko patterns are turtle walks on fabric — forward, turn, stab, repeat.
A Fingerprint Pressed Into Every Packet
Cyclic Redundancy Check 🔗 Wax Seal MakingWax seals and CRC polynomials both answer the same question: did this arrive intact?
Lookup Tables and the Language of Clicks
Symbol Tables 🔗 Telegraph Sounder RestorationA telegraph sounder speaks in dots and dashes, and every decoding is just a table lookup.
Removing Branches That Cannot Change the Answer
Alpha-Beta Pruning 🔗 BonsaiThe algorithm that taught computers to ignore the branches that don't matter.
Filling the Silence Between Two Good Samples
Linear Interpolation 🔗 Reel-to-Reel Tape RestorationWhen magnetic oxide flakes away, interpolation draws a straight line through the gap.
The Escapement Steps One Character at a Time
Lazy Sequences and Generators 🔗 Typewriter RestorationA typewriter's escapement mechanism is a mechanical generator — yielding one character, then waiting.
Let It Crash, Then Start Fresh
Supervision Trees 🔗 Oyster Mushroom CultivationFour contaminated bags taught me what Ericsson learned in 1986: isolate, discard, restart.
Cloning from the Master Mould
Prototype Pattern 🔗 Pewter CastingMedieval pewterers reused moulds for centuries. Software prototypes work the same way.
Four Bits per Digit, No More, No Less
Binary-Coded Decimal (BCD) 🔗 Nixie Tube Clock BuildingNixie tube drivers speak BCD — a Cold War encoding that trades efficiency for human readability.
The Grid Curve Lives in 256 Bytes
Lookup Tables 🔗 Vacuum Tube Audio Amplifier BuildingEvery tube has a transfer curve. Every computer has RAM. Put the curve in the RAM.
The Supervisor That Does Almost Nothing
Process Supervision 🔗 Marimo Moss Ball CultivationMarimo survive by needing almost nothing. The best process supervisors work the same way.
The Temperature That Remembers Which Way It Came
Hysteresis 🔗 Espresso Machine RestorationA thermostat that switches at exactly 93°C will chatter itself to death. The solution predates digital control.
The Compiler Won't Let You Burn Yourself
Phantom Types 🔗 Cold Process Soap MakingLye calculations demand precision; phantom types demand correct units at compile time.
Glazing in Floating Point
Alpha Compositing 🔗 Miniature PaintingMiniature painters build depth through translucent layers; Porter and Duff found the algebra.
Eleven Thousand Steps Before the Highway Appears
Cellular Automata 🔗 Ant KeepingA virtual ant following two rules produces chaos, then suddenly builds a highway to infinity.
Infinite Slides, Finite Patience
Lazy Evaluation 🔗 MicroscopyMicroscopy examines only the field of view. Lazy evaluation computes only what you ask for.
The Carpet Spreads One Cell at a Time
Cellular Automata 🔗 AquascapingDwarf baby tears and bacterial colonies both obey rules about neighbours.
Thread Wraps and Stack Frames
Stack-Based Computation 🔗 Fly TyingFly tying builds outward from the hook shank; Forth builds upward from an empty stack.
Grinding Toward Convergence, One Pass at a Time
Fixed-Point Iteration 🔗 Telescope Mirror GrindingMirror grinding and fixed-point iteration share the same faith: repeat the same operation until the result stops changing.
Remembering What Just Happened
Ring Buffers 🔗 Geophone SeismographySeismometers need to record what happened before the earthquake started.
Finding Treasure in Signal Peaks
Peak Detection Algorithm 🔗 Metal DetectingEvery beep from a metal detector represents a peak in an electromagnetic field—here's how algorithms spot them.
The Crystal Knew About Smoothing Before We Did
Exponential Moving Average 🔗 Crystal Radio RestorationA chunk of galena and a leaky capacitor taught engineers about smoothing decades before DSP existed.
Smoothing What the Sensor Actually Said
Exponential Smoothing 🔗 Weather Station BuildingOne reading is noise. A thousand readings is weather. Exponential smoothing finds the signal in between.
Reducing Tones to Sun and Shadow
Ordered Dithering 🔗 Cyanotype PrintingCyanotype chemistry only knows blue or not-blue — so how do you fake grey?
The Art of Forgetting Most of What You Hear
Exponential Moving Average 🔗 Shortwave ListeningYour radio's S-meter doesn't panic because it's doing math you learned to forget.
Threading Signatures Forward with Pointers
Linked Lists 🔗 Coptic Stitch Flight Logbook BindingThe Coptic stitch loops thread through each signature to the one before it—exactly how a linked list works.
Tap, Hold, or Something Else Entirely
Finite State Machines 🔗 Mechanical Keyboard BuildingA keypress isn't an event. It's the start of a timeline that the firmware must interpret.
Every Edit Keeps the Old Tree Intact
Persistent Data Structures 🔗 BonsaiPruning a branch doesn't destroy the tree that was — it creates a new tree that shares the unchanged parts.
The Pin That Binds First Tells You Everything
Constant-Time Comparison 🔗 LockpickingManufacturing tolerance betrays the lock. Early-exit comparison betrays the password.
Developing the Perfect Curve
Gamma Correction 🔗 Analog Film Photography DevelopmentFilm's response to light isn't linear—and neither should your pixels be.
Finding the Perfect Curve: Newton-Raphson and Pen Turning
Newton-Raphson Method 🔗 Pen TurningLike shaping wood on a lathe, Newton-Raphson iteratively refines guesses until mathematical perfection emerges.
When Enough Waggle Means Go
Quorum / Threshold Logic 🔗 BeekeepingSixty thousand bees make collective decisions the same way distributed systems reach consensus.
The Count That Makes Paper Lie Flat
Constraint Validation 🔗 Origami EngineeringBefore paper folds flat, the creases must satisfy a deceptively simple arithmetic rule.
Accepting Worse Before Better
Simulated Annealing 🔗 Rock TumblingA hot algorithm cools toward order, just like four weeks of grit progression.
Carve the Ones, Print the Zeros
Bitwise Complement (NOT) 🔗 Linocut PrintmakingIn linocut, what you carve away is what stays white. In binary, NOT does the same job.
Every Shade Is a Lie Made of Dots
Error Diffusion Dithering 🔗 PyrographyFloyd and Steinberg figured out what pyrographers already knew: gradients are just distributed mistakes.
Where the Gradient Changes, There Lives the Edge
Edge Detection (Gradient Magnitude) 🔗 Knife SharpeningA blade is just a gradient so steep light gives up trying to cross it.
Vectors Dragged Through Floating Colour
Vector Fields 🔗 Paper Marbling (Ebru)Every marbling comb is just a physical implementation of a vector field.
The Escapement Ticks in Discrete States
Finite State Machines 🔗 Mechanical Watch DisassemblyA Swiss lever escapement cycles through lock, impulse, and drop — a state machine in brass.
Signatures Stitched in Structure
Persistent Data Structures 🔗 BookbindingA bound book cannot be unwritten. Neither can a persistent vector.
Golden Seams in Broken Code
Graceful Degradation 🔗 KintsugiWhen systems break, the most beautiful solutions don't hide the cracks—they highlight them with gold.
False Positives Won't Kill You, But Mushrooms Might
Bloom Filters 🔗 Mushroom Foraging & Spore PrintingWhen foraging, a false negative means missing dinner. A false positive means missing tomorrow.
The Wire That Learned to Listen Selectively
Bandpass Filtering 🔗 Harmonic Telegraph Key RestorationBell's harmonic telegraph worked because tuned reeds ignored every frequency but their own.
Two Oscillators Walk Into a Process
Concurrent Message Passing 🔗 Theremin Circuit VoicingA theremin works because two processes disagree about frequency — and their argument is audible.
Matching Pickup Tones with Cross-Correlation
Cross-Correlation 🔗 Guitar Pickup WindingWhen winding pickups, how do you know if your coil matches the legendary PAF sound? Mathematics has an answer.
Smoothing the Noise in Fermentation Data
Exponential Smoothing 🔗 Fermentation Sensor LoggingWhen fermentation sensors jitter, exponential smoothing turns chaos into trends.
From Temperature Curves to Ceramic Dots
Bresenham's Line Algorithm 🔗 Roasting Profile Curve EngravingWhen your engraving tool can only make dots, how do you draw smooth roasting curves?
Temperature Dance: PID Controllers for Perfect Fermentation
PID Controllers 🔗 Sourdough Bread BakingHow industrial control systems learned from bakers to maintain perfect temperature through mathematical feedback loops.
Four Bits Per Digit, One Glow Per Tube
Binary Coded Decimal 🔗 Nixie Tube Flight Instrument ClocksNixie tubes don't think in binary — they think in BCD, and so did half the computers of 1965.
The Cylinder Knows Where It Left Off
Circular Buffers 🔗 Cylinder Music Box Transcription PunchingA brass cylinder and a ring buffer both solve the same problem: what happens when you reach the end?
The Wind Has to Mean It
Hysteresis Thresholds 🔗 Mechanical Weather Vane InstrumentsWeather vanes ignore gusts for the same reason good code ignores noise: hysteresis.
When Clockwork Meets Logical Time
Lamport Timestamps 🔗 Orrery Clockwork Escapement PrintingEscapement precision in orrery gears mirrors the logical clock synchronisation that keeps distributed systems in harmony.
The Algorithm That Knows When to Walk Away
Backtracking 🔗 Puzzle Box Mechanism DesignPuzzle boxes and backtracking share a philosophy: commit until you can't, then gracefully retreat.
Parity Bites Back at Thirty Kilometres
Checksums and CRCs 🔗 Stratospheric Balloon TelemetryWhen your payload is tumbling through the stratosphere, every bit of redundancy counts.
Every Lunation Ends Where It Began
Modular Arithmetic 🔗 Lithophane Lunar Phase CalendarsThe moon doesn't count to 29.53 and reset — it just keeps going. We're the ones who need the modulo.
Picking Through Possibilities One Pin at a Time
Backtracking 🔗 LockpickingA lock cylinder and a recursive algorithm share the same dirty secret: sometimes you have to undo progress to make any.
The Sine Wave That Never Needed Trigonometry
Lookup Tables (LUTs) 🔗 Oscilloscope Art PortraitureWhen CPUs couldn't afford trig, we memorized the answers in advance.
When the Glider Never Stops Whispering Pressure
Lazy Stream Processing 🔗 Wind-Gradient Glider SonificationA glider's barometer never pauses. Neither should your code — lazy streams process infinity one sample at a time.
Finding the Perfect Nib: A Binary Search
Binary Search 🔗 Fountain Pen RestorationAdjusting a fountain pen nib teaches the elegance of binary search—halving the search space with each careful test.
Predicting the Next Beat in Motion
Frame Prediction 🔗 Flightpath Zoetrope DrumsLike a zoetrope anticipating its next frame, algorithms can predict future states from motion patterns.
Heaping Up the Sky's Appointment Book
Priority Queues 🔗 Orbital Decay Audio NotificationsWhen dozens of satellites jostle for your attention, a heap decides who rings first.
When Meteors Interrupt Your Code
Interrupt Handling 🔗 Meteor-Scatter Shutter TriggersMeteor-scatter detection mirrors how early microprocessors handled sudden, unpredictable events that demanded immediate attention.
Circular Echoes: Ring Buffers in Sound
Ring Buffers 🔗 Generative Soundscape CompositionHow a simple circular data structure became the heartbeat of real-time audio processing.
Watching Chess Moves Flow Like Light
Message Passing 🔗 Chess Move Lighttrail JournalingChess moves traced as light streams reveal the elegant flow of messages between processes.
Once Visited, Never Forgotten
Memoization 🔗 Knight's Tour Choral CanonsHow remembering the past prevents computational mistakes, whether touring chess boards or timing choral entries.
Smooth Curves from Sharp Points
Cubic Spline Interpolation 🔗 Choir Pitch LightpaintingHow discrete choir positions and LED waypoints become fluid curves through mathematical elegance.
Every Square Once: Hamiltonian Paths in Flight Planning
Hamiltonian Path 🔗 VFR Knight's Tour Grid FlightsFinding routes that visit every waypoint exactly once mirrors the mathematical elegance of Hamiltonian paths.
Weather Patterns Make Musical Patterns
Pattern Matching 🔗 METAR Chord BriefingsHow METAR weather codes become musical chords through elegant pattern matching.
When Atmospheric Data Meets Musical Logic
Unification 🔗 Stratospheric Telemetry Chord MapsHigh-altitude balloon telemetry becomes music through pattern matching—the art of making different structures fit together perfectly.
Radials to Rectangles: Navigation Math on Coasters
Polar Coordinate Transformation 🔗 QSO Radial VOR Dial CoastersEvery VOR radial tells a story in degrees, but your 3D printer thinks in millimetres.
When Starlight Becomes Symphony: Harmonic Analysis
Discrete Fourier Transform 🔗 Stellar Spectrum Music Box DiscsConverting stellar absorption lines into music box frequencies reveals the mathematical harmony between light and sound.
Fixed Stars Need Fixed Points
Fixed-Point Arithmetic 🔗 Star-Drift Compass Calibration CardsWhen navigating by starlight, every decimal place counts—and floating-point math wasn't precise enough for Apollo.
Casting Rays Through Chess and Radio Waves
Raycasting 🔗 Antenna Pattern Chess SetHow antenna patterns and chess moves both trace invisible lines through space.
Warping Stratospheric Views Into Perfect Panoramas
Homographic Transformations 🔗 Stratospheric Telemetry Panorama StitchingWhen balloon cameras drift, homographic matrices bring overlapping images into perfect alignment.
Wind-Driven State Machines Parse the Breeze
Finite State Machines 🔗 Callsign Morse Windchime MobileLike morse windchimes swaying between notes, finite state machines elegantly parse sequences one symbol at a time.
Stitching Signals: State Machines in Code
State Machines 🔗 Morse Waypoint Flightpath EmbroideryEvery embroidery stitch and Morse signal follows the same computational pattern: elegant state transitions.
Counting Crossings: The Conductor's Secret Frequency Detector
Zero-Crossing Detection 🔗 Pitch-Tracking Conductor BatonThe simplest pitch detector counts how often sound waves cross silence—elegant math for a conductor's digital baton.
When Propellers Meet Musical Mathematics
Beat Frequency Detection 🔗 Propeller Doppler ArpeggiatorHow detecting the mathematical beating between frequencies turns propeller noise into musical synchronization magic.
Digital Orbits: Phase Accumulation in Polyrhythmic Space
Phase Accumulation 🔗 Holding-Pattern Polyrhythm LoopsHow digital synthesizers learned to juggle multiple rhythms through the elegant simplicity of phase accumulation.
When Pilots Vote: Consensus in the Pattern
Byzantine Consensus 🔗 ATIS Choir HarmonizationATIS broadcasts and choir harmonies both need agreement—but what happens when some voices lie?
Building Solutions One Star at a Time
Lazy Evaluation 🔗 Knight's Tour Starfield MosaicLike long-exposure astrophotography, lazy evaluation reveals computational beauty only when the moment is right.
Mapping Ham Radio Contacts to the Stars
Spatial Indexing with Quadtrees 🔗 QSO Constellation OverlaysHow amateur radio operators efficiently overlay QSO locations on constellation maps using recursive space subdivision.
Echoes in Digital Memory: Ring Buffers
Circular Buffers 🔗 Generative Soundscape CompositionThe elegant data structure that makes real-time audio possible, one sample at a time.
Conducting Digital Orchestras with Actors
Actor Model 🔗 Generative Soundscape CompositionIndependent sound generators coordinate through message passing, just like musicians in an orchestra.
When Voices Overlap: Digital Convolution
Convolution 🔗 Morse Canon Choir LoopsCanon voices weaving together mirror how convolution combines overlapping signals in digital processing.
Turning Radio Coordinates Into Sky Art
Coordinate Transformation 🔗 APRS Skytrace SculpturesAPRS reports positions in degrees, but your sky sculpture lives in metres—here's the mathematical bridge between worlds.
Smoothing the Glow: Interpolating Antenna Patterns
Linear Interpolation 🔗 Antenna Lobe LanternsWhen antenna measurements meet artistic lanterns, smooth curves emerge from scattered data points.
Tactical Frequencies: Huffman's Efficient Chess Beacon
Huffman Coding 🔗 Morse Chess Tactics BeaconWhen every dot and dash counts in tactical transmission, frequency-based encoding saves precious bandwidth.
When Routes Fail: Backtracking Through Sky and Code
Backtracking Search 🔗 VFR Track Relief PrintingSometimes the best way forward is to go back—whether dodging weather in a Cessna or finding valid paths in code.
Smooth Curves for Light-Painting Drones
Bezier Curves 🔗 RC Light-Trace CalligraphyHow mathematical curves turn jerky RC movements into flowing calligraphy strokes.
Building Weather Symphonies with Parser Combinators
Parser Combinators 🔗 METAR Chord BriefingsWeather reports and chord progressions share a secret: both emerge from combining simple patterns into complex, meaningful structures.
Dots, Dashes, and State Machines
Finite State Automata 🔗 Morse Beacon Star-Trail LightpaintingHow Morse beacon timing reveals the elegant mathematics of state transitions.
Mapping Radio Shadows with Flood Fill
Flood Fill Algorithm 🔗 Airborne RF Shadow CartographyWhen your drone finds a signal dead zone, how do you map the entire shadow? The same algorithm that colours pixels.
Dividing the Sky: How Quadtrees Organize Aerial Photos
Quadtrees 🔗 Foam-Wing Orthomosaic MappingWhen your foam-wing RC plane captures 800 overlapping photos, you need quadtrees to make sense of the spatial chaos.
Sliding Through Signal Streams and Stone
Sliding Window Algorithms 🔗 RF Waterfall LithophanesHow radio waterfalls and lithophone depths both rely on the elegant dance of sliding windows through endless streams.
Musical Memory: Teaching Machines to Dream in Sound
Markov Chains 🔗 Generative Soundscape CompositionHow probability and memory create endless, evolving soundscapes that feel both random and inevitable.
Shift Registers Shape Sound Worlds
Linear Feedback Shift Register 🔗 Generative Soundscape CompositionHow 1980s sound chips used mathematical feedback to generate endless musical sequences from just a few bits.
The Gentle Fade of Memory and Light
Leaky Integrator 🔗 Aurora Chorus Sonified TimelapseIn aurora photography and audio synthesis, some signals need to remember the past while gracefully forgetting it.
When Code Grows Like Sound Waves
Cellular Automata 🔗 Generative Soundscape CompositionSimple rules create complex soundscapes—just like Conway's neighbours create emergent life.
Catching Data from the Edge of Space
Ring Buffers 🔗 Stratospheric Balloon TelemetryWhen your balloon transmits telemetry faster than you can process it, circular buffers keep the most recent data alive.