code-a-day
One program a day — fundamental computing concepts from the 80s to now, in 5–15 lines.
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.
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.
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.
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.
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.
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.
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.
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.
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.