WEBVTT

00:00:00.000 --> 00:00:24.000
<v George Carlin>You're listening to D T F H N for August ninth, two thousand and twenty-six. I'm your unlicensed-and-uncertified host, Jack Hacksman. We are your daily tech feed for Hacker News, a website wform of love is refusing to let something die. Today is about old ideas that were never actually finished, and the people stubborn enough to keep the receipts. Grab whatever's nearest and let's dig.

00:00:24.000 --> 00:03:03.636
<v George Carlin>Story one. There Are Magic Hexagons of Every Order.

[pause]

In nineteen seventy-nine, Dan Bricklin and Bob Frankston shipped VisiCalc. It didn't invent arithmetic. It just made a certain kind of arithmetic cheap enough that ordinary people started doing experiments nobody had bothered to run before. The math was old. The search became affordable. That's the pattern here.

Sergei Gukov [pause] writing at gukov dot dev [pause] went looking at magic hexagons. Quick primer: a magic square makes every row, column, and diagonal add to the same number. A magic hexagon does it for lines in three directions across a honeycomb grid. And there's exactly one non-trivial normal magic hexagon. One. Order three, nineteen cells, numbers one through nineteen. Discovered, rediscovered, and proven unique [pause] because for any larger hexagon, the sum of one through however-many simply refuses to divide by the number of lines. The arithmetic slams the door.

Relax one screw [pause] let the consecutive numbers start somewhere other than one [pause] and the door reopens. These are abnormal magic hexagons, and until very recently finding them was pure brute expedition. The record, set by Klaus Meffert in twenty twenty-four, was order nine. Nine.

Here's the move that changed it. Gukov didn't build a faster searcher. He shrank the thing being searched. Center the numbers on zero instead of one, so every line has to sum to zero. Then demand antisymmetry: put zero in the middle, and make every cell the exact negative of the cell opposite it through the center. Suddenly every line through the center cancels itself out for free. Every other line gets a mirror twin that's automatically solved the moment its partner is.

Think of it the way a cathedral architect thinks about a flying buttress. You are not adding strength to the wall. You are redirecting the load into a shape that doesn't need the strength. The constraint stops being something you fight and becomes something you build with. Half the equations don't get solved [pause] they get structurally obviated.

And the result in the title is every order. Not order ten. Every one.

The comedy of it is that the whole thing runs on symmetry, which is the oldest trick mathematics has. The AI-assisted part isn't a black box announcing a theorem. Gukov wrote the process down [pause] the observations, the dead ends, the reframing [pause] so you can follow it and disagree with it.

That's the difference between a result and a method. A result you cite. A method you can pick up. One of the comments on the thread just says: hexagons are the bestagons. Correct on the merits.

00:03:03.636 --> 00:03:10.182
<v George Carlin>Hexagons earned their moment. Now here's another kind of beautiful old thing getting new life [pause] story two.

00:03:10.182 --> 00:05:35.636
<v George Carlin>Story two. Microsoft Word for Windows 1.1a, Native X64 Port.

[pause]

What if the most subversive thing you can do with software is refuse to let it die?

Someone named jmarshall23 took the leaked source to Microsoft Word for Windows one point one A [pause] codename Opus, shipped in nineteen ninety [pause] and ported it to native sixty-four-bit Windows. Not emulation. Not a virtual machine pretending to be a 386. The original C source, compiled, linked, running as a modern x64 executable on Windows eleven.

Consider what that requires. Word one point one A was written for segmented memory [pause] that grotesque architecture where a pointer is a sixteen-bit selector plus a sixteen-bit offset, and dereferencing it means asking the hardware where the segment currently lives. There's hand-written sixteen-bit assembly at the entry points. Double-indirect memory handles because you couldn't trust an address to stay put. Every one of those assumptions is a load-bearing wall, and every one of them is false on x64. So the port translates the assembly into fixed-width C, maps the handle system onto a native runtime, rebuilds the original cursors and bitmaps and command tables with new host tools, and then [pause] this is the part I admire [pause] ships a test suite that drives the actual UI. Typing. Selection. Formatting. Dialogs. Saving. Automated proof that the thing still behaves like Word.

Run this forward. If a thirty-six-year-old word processor can be lifted across a fundamental architecture change by one person with CMake and patience, what's the actual argument that any software must be abandoned? The binary rots. The source doesn't. The only thing standing between us and every piece of software ever written remaining alive is whether the source is reachable.

Which is where the irony gets thick enough to spread. This is possible only because Word's source escaped. Microsoft did not publish it. Someone else made it reachable, and thirty-six years later that reachability is why the work exists at all. Every year of proprietary lockup was a year this couldn't happen.

A commenter asks how hard a Linux port would be. Another asks for screenshots. Someone notes the codename collision [pause] Opus was Word before it was a language model. Both of them named after a work.

And somebody just tried to build it and found a missing CMake file. Which is, honestly, the most authentic possible tribute to nineteen ninety software.

00:05:35.636 --> 00:05:47.636
<v George Carlin>Thirty-six years of preserved code on one end, and on the other, a phone doing the job of a rack [pause] hardware keeps getting smaller while what we can save keeps getting bigger.

00:05:47.636 --> 00:08:25.091
<v George Carlin>Story three. My server is a phone now.

[pause]

Start with the constraint, because that's where this story actually begins. A general purpose computer needs four things: cores, memory, persistent storage, and a network path in. The market has decided each of those has a monthly price. DRAM in particular has gone absolutely feral this year, which means the classic escape hatch [pause] just build a box [pause] is closed for a lot of people right now.

So the author of this piece looks around and notices something sitting in a drawer. A CMF Phone One. Eight ARM cores. Eight gigs of RAM. A hundred twenty-eight gigs of flash. Wi-Fi six, a 5G modem, and [pause] this is the part I love [pause] a built-in battery backup. Every server rack in the world pays extra for a UPS. This thing shipped with one.

The first attempt was the obvious one, and it was wrong. Flash postmarketOS, get a real Linux userspace, done. The device port exists. It boots. There are green boxes on the compatibility page. There are also red ones, next to Wi-Fi, Bluetooth, and hardware acceleration [pause] the exact three things a server needs. Splash screen, then black display. Then a soft-bricked phone, a Windows VM in QEMU fighting MediaTek drivers over USB passthrough, and a genuine moment of believing you have manufactured a paperweight.

The insight that came out of that failure is the whole article. Android already has working drivers for every strange vendor-specific corner of this hardware. Power management, the modem, the GPU, the battery controller. Vendors are terrible about upstreaming that work, so throwing away the one userspace that actually knows how to talk to the silicon, in pursuit of a more familiar shell prompt, is a bad trade. The goal was never to run Linux. The goal was to run Linux applications.

So attempt two keeps stock Android and treats Termux as the host operating system. OpenSSH, runit as the supervisor, Caddy in front, Cloudflared and Tailscale for reachability. Termux Boot brings the supervisor and SSH back after a reboot. Termux isn't a VM [pause] those processes hit Android's own kernel directly [pause] but its Bionic userspace is different enough that each app has to bring its own Linux filesystem along. That constraint turns into the architecture: tiny control plane on the host, applications carrying their own world.

The result is a personal cloud running a remote browser, a finance tracker, screen sharing. Deploys from Git. Survives network changes. Costs zero dollars a month.

That's a data center in your pocket, and you already own it.

00:08:25.091 --> 00:08:33.091
<v George Carlin>Now here's the same instinct pointed backwards in time [pause] someone decided a 1981 IBM XT deserved a real graphical operating system.

00:08:33.091 --> 00:11:05.455
<v George Carlin>Story four. Os8088: A powerful Mac-like OS for the IBM XT, 286, 386.

[pause]

Twelve task slots. Fifteen hundred thirty-six bytes of stack each. A timer interrupt that takes the CPU away from whatever is running, whether or not that program consents. That is pre-emptive multitasking, and it's running on an Intel 8086 [pause] a chip from 1978 with no memory protection, no privilege rings, and nothing to stop a misbehaving task from writing straight over the kernel.

It's called os8088. Hand-written real-mode assembly. No C, no linker, no runtime library. A five-hundred-twelve-byte boot sector loads the kernel and jumps to it, and what comes up is a Macintosh-style desktop [pause] pull-down menus that stay open only while you hold the button, windows you drag by a hollow XOR outline, a dock, a file manager, Minesweeper, a four-channel Amiga MOD player.

Consider the details, because they're where the craft lives. There's no spare copy of the screen to restore from, so when a menu drops down, the pixels underneath get copied into a block claimed off the heap for exactly as long as the menu is up. The drag outline is drawn in XOR, which means erasing it is the identical operation to drawing it. The About box, the Control Panel and the Task Manager all read the scheduler mode from the same kernel byte on every repaint, so they physically cannot disagree with each other. Click Cooperative, and the very next timer tick simply declines to switch tasks. No restart. No handshake.

Now the objection, and it's the one the comments went to first. This was written with Claude. Hand-written assembly, one reader noted, or more like hand-prompted. Which sounds damning until you sit with it. Someone had to know that a 286 has no way to save the screen behind a menu. Someone had to decide the dock tile's position should be its table slot. Someone had to run it on real hardware and watch it not crash. The model didn't hold that architecture. A person did.

And then there's the other comment, the honest one: it's funny how virtually everyone here is using AI to write code and simultaneously dismisses all interesting new software as written by AI.

The whole thing is documented, page by page, on how the multitasking works, how the heap works, how programs load into their own segments at offset zero so nothing needs patching. Forty-eight-year-old silicon, a desktop that shouldn't fit, and every technique written down for whoever wants it next.

00:11:05.455 --> 00:11:14.545
<v George Carlin>Speaking of things that shouldn't work but do [pause] okay, that's story five's whole personality, and honestly it's the theme of today's episode. Story five.

00:11:14.545 --> 00:13:46.545
<v George Carlin>Story five. Shopify replaced Redis with MySQL for inventory reservations–and it scaled.

[pause]

I built a system once that failed only under success. It worked fine in testing, worked fine at ten requests a second, and fell apart the moment enough people wanted the same thing at the same time. That's the shape of this story. Shopify's oversell protection [pause] the thing that decides whether two people can buy the last blue hoodie [pause] ran on Redis for years. Each item had a counter. Reserving decremented it. Releasing incremented it. Redis is very good at that.

The problem wasn't Redis. The problem was that the reservation lived in Redis and the actual inventory ledger lived in MySQL, and there is no transaction that spans both. When payment succeeds and you need to deduct from the ledger and clear the hold, you do one, then the other. If the machine dies in between [pause] and at Black Friday volume, something is always dying in between [pause] you either sold something you never deducted, or deducted something still marked reserved. Overselling or underselling, chosen by whichever order you happened to pick.

So they moved reservations into MySQL, where the ledger already is, and wrapped the whole thing in one transaction. Earlier attempts had failed, because a single row with a quantity column becomes a lock convoy the instant traffic spikes. The new design uses MySQL 8's SKIP LOCKED and stores one row per sellable unit. Ten units, ten rows. Reserving three means grabbing three rows that nobody else has locked and moving them. No contention on a shared counter [pause] the contention just routes around itself.

Black Friday twenty twenty-five: five point one million dollars per minute at peak, eleven percent up year over year. It held.

Here's the question nobody in the comment thread wanted to ask. Everyone argued about whether Redis is bad, or whether MySQL is fast enough, or whether this post was written by a language model. One person cut through it: this is a solution to a specific problem Shopify has. They never said Redis was wrong.

And the honest lesson Shopify buried near the end [pause] the real bottleneck wasn't what they were observing and measuring. That's the part worth carrying. You can rebuild the whole data layer, hit your throughput targets, ship it through the biggest traffic day of the year, and still find that the thing you fixed wasn't the thing you were watching. Your dashboard is a hypothesis, not a map.

00:13:46.545 --> 00:13:52.727
<v George Carlin>Six stories deep and every single one is about who holds the keys. Here's another. Story six.

00:13:52.727 --> 00:16:19.273
<v George Carlin>Story six. Fastmail offers EU data region.

[pause]

Right down to the exact model of disks in each machine.

That's the line in Fastmail's announcement worth stopping on. Not the headline [pause] the headline is that you can now pick the European Union as the home for your email, on servers in Amsterdam. The detail underneath is that they specified the disks. They bought their own hardware, co-located it in a secure facility, and their own engineers racked it. Twenty-five years of doing it that way, in Philadelphia and St Louis, now in the Netherlands.

Compare that to how almost everyone else ships an EU data region. You click a dropdown in a cloud console. You select a region string. Your compliance page updates. What you have actually done is rent a slice of someone else's machine and inherit their assurances as your own [pause] assurances you can't inspect, on hardware you can't name, subject to a corporate parent's legal jurisdiction that no region string changes.

Ask the engineering question. Who holds the off switch? For a rented region, the answer is the landlord [pause] and the landlord's answer changes if the landlord's incentives change. Fastmail's answer is: the company whose name is on the service. Encrypted at rest, inside locked racks, managed by an in-house team. That's a shorter chain of custody, and chain of custody is the whole product when the product is your mail.

And they told on themselves, which is the second thing worth admiring. The post says plainly that your resilient replica still lives in the US, because Amsterdam is their only European site so far. It says apps fail over to US servers if Amsterdam goes dark [pause] they favor availability, and they say so out loud. It says emergency backups sit in Philadelphia. If you need a guarantee your data never leaves the EU, they write, we don't have that, and we'd rather tell you.

The comment thread caught all of it, because the post handed them the ammunition. One reader called it a good start. Another pointed at fully European providers. Both fair. But notice what made that conversation possible: a company publishing the exact shape of its own limitation, in the same post selling you the feature.

Two copies in your primary location, one geographically separate, hardware they specified, honesty about the gap. Working infrastructure, described accurately. Run this forward [pause] that's the standard.

00:16:19.273 --> 00:16:28.727
<v George Carlin>Some days the throughline is transparency. Other days it's just people making things faster. Story seven is the second kind, and honestly, that's a great kind.

00:16:28.727 --> 00:18:55.636
<v George Carlin>Story seven. Improving Heuristics for A* Pathfinding.

[pause]

Make the case against this post first, and make it honestly. A commenter did: the write-up assumes you already know what a heuristic is, what admissibility means, why any of this matters. It drops you into triangle inequalities without a sentence of motivation. That's a real critique. Gatekeeping by omission is still gatekeeping.

Here's why it fails anyway. Amit Patel learned this technique in 2007. Tried to write it up in 2015 and stopped, because [pause] his words [pause] he didn't understand it well enough to explain it. Studied it again in 2016. 2018. 2019. 2022. Published in July. Eleven years of refusing to ship a bad explanation. The critique is that the on-ramp is steep. The counter is that the on-ramp exists at all, in public, with interactive diagrams you can drag with your mouse, because someone spent a decade making sure it was right.

The idea itself is almost embarrassingly clean. A* runs fast when the heuristic points toward the goal and slow when it points into a wall, because straight-line distance doesn't know walls exist. The perfect heuristic does [pause] but you'd have to recompute it for every goal. So instead, precompute exact distances to one landmark. Call it the Eiffel Tower. Now, by the triangle inequality, the cost from you to any point is at least the cost to the tower minus that point's cost to the tower. Subtraction. That's the whole trick.

Now run the principle all the way down, because that's where the comedy lives. If one landmark helps, more landmarks help more [pause] take the maximum, every bound is still valid. Good. Keep going. Add a thousand landmarks. Add one landmark per node. Congratulations: you have precomputed every pairwise distance in the graph. Your heuristic is now perfect. A* explores exactly the optimal path and nothing else. You have also built a table that is quadratic in the size of your map, and you have not written a pathfinding algorithm [pause] you have written a lookup table with extra steps.

The principle didn't break. It just kept going until it walked out the other side of the problem and became a different problem. Ten to twenty landmarks. That's the actual answer. The interesting engineering was never the idea; it was knowing where to stop.

The math is free. The explanation took eleven years. Only one of those was scarce.

00:18:55.636 --> 00:18:56.364
<v George Carlin>Moving on.

00:18:56.364 --> 00:21:23.636
<v George Carlin>Story eight. The Alpha 21264 CPU: NT's Greatest RISC (1998).

[pause]

Two comments on this thread, and together they do more work than the article. The first is pure warmth: it's good to re-read Tom Halfhill. The second is a knife: back when IA-64 was supposed to take Intel to the promised land.

Nineteen ninety-eight. Halfhill is looking at the Alpha 21264 [pause] sixty-four bit, seven hundred megahertz, headed for a gigahertz [pause] and asking a serious question. Whither RISC? Because in his snapshot, everything is collapsing. IBM and Motorola dissolving the PowerPC partnership. Silicon Graphics killing its next-generation MIPS. Sun porting Solaris to IA-64. HP porting HP-UX to IA-64. The industry lining up behind one architecture that did not exist yet, from a company that had never shipped it.

Strip that to first principles. What did IA-64 actually require to work? It required the compiler to find the parallelism ahead of time and bundle it into explicit instruction words. Which means it required knowing, at compile time, what the memory system would do at run time. That's the whole bet. And a cache miss is a fact you cannot schedule around, because it hasn't happened yet. Meanwhile the 21264 was doing out-of-order execution [pause] deciding at run time, with actual information, in actual silicon. One design asked the future to be predictable. The other just handled it.

The 21264 shipped. It hit a gigahertz. Merced slipped to 2001 and arrived slower than the chips it was meant to replace.

Here's the part the retrospective usually gets wrong. Halfhill was asking whether RISC would survive, and the answer turned out to be an emphatic yes [pause] just not through any of the companies on his list. Every one of those architectures was somebody's proprietary asset, defended by patents, licensed at whatever the owner felt like charging. The instruction set was the moat. And when the owner's business model wandered off, the architecture went with it. Alpha got sold to Compaq, then to Intel, then to nothing.

What survived is ARM, which decoupled the design from any single manufacturer, and RISC-V, where the specification itself is free and a graduate student can tape out a core. The idea outlived every corporation that tried to own it [pause] because the ones that made it reachable are still standing.

That's the durable lesson from a canceled BYTE article. Architectures don't die of technical inferiority. They die of ownership.

00:21:23.636 --> 00:21:32.364
<v George Carlin>Now for something completely more fun. Someone figured out how to dither images into QR codes [pause] and yes, they still scan. Story nine.

00:21:32.364 --> 00:24:05.091
<v George Carlin>Story nine. Dithered QR Codes.

[pause]

Nineteen seventy-six. Robert Floyd and Louis Steinberg publish a two-page item in the Proceedings of the Society for Information Display, describing an adaptive algorithm for spatial greyscale. The trick is embarrassingly simple. You walk the image left to right, top to bottom. Each pixel gets rounded to black or white, and whatever error that rounding introduced [pause] the difference between the grey you had and the black you committed to [pause] gets pushed forward onto the neighbors you haven't decided yet. Seven-sixteenths to the right. Three, five, one to the row below. The mistake doesn't vanish. It gets distributed.

Andrew Taylor's dithered QR codes take that fifty-year-old idea and do something I find genuinely delightful with it.

Start with the setup. A QR code has function patterns [pause] the big squares in the corners that tell a scanner where the grid is [pause] and data modules, the rest. There's a known trick where you shrink each data module to the center ninth of its cell, freeing the surrounding eight ninths for a picture. What you get is a photo with one pixel in nine set to an arbitrary value. Salt and pepper. Noise you cannot remove, because that noise is the payload.

Taylor's move is to stop treating it as noise and start treating it as error. Two passes. The first pass walks the image and forces every data module to the color the QR spec demands [pause] and then diffuses that error outward to the eight surrounding pixels, exactly like Floyd and Steinberg. If a module in a dark region has to be pure white, that's a ninety-five percent error, far larger than anything ordinary dithering produces. Doesn't matter. The neighbors absorb it. They go darker to compensate. The constraint becomes part of the picture instead of a defect on top of it.

That's the craft. A hard external requirement, folded into the same accounting the algorithm was already doing.

And the reason anyone can do this at all: Masahiro Hara's team at Denso Wave published the QR specification in 1994 and declined to enforce the patent. It became an ISO standard. No license, no scanner certification, no permission. Which is why the format survived barcodes that were fiercely defended, and why a person on the open web can spend a weekend teaching a fifty-year-old dithering kernel to respect it.

The commenters found color versions. Animated ones. Diffusion models generating scannable art. That's what happens when the spec is yours to poke at.

00:24:05.091 --> 00:24:08.364
<v George Carlin>Now for something with considerably more voltage. Story ten.

00:24:08.364 --> 00:26:17.818
<v George Carlin>Story ten. The Grid That Doubles the Strength of the Ground.

[pause]

What does a container terminal actually need from the ground beneath it? Not strength, exactly. Confinement.

Here's the distinction. Sand in an open pile can hold almost nothing [pause] press down and the grains slide sideways along a shear plane, the soil moves down, then out, then up, and whatever sits on top tips over. That's bearing capacity failure. Now take the same sand, the same grains, no change in material at all, and pour it into a bag. It gets stiff. It carries load. You haven't strengthened anything. You've removed the direction the failure needed to go.

That's a geocell. A honeycomb of plastic strips, unfolded across a site like an accordion, filled with whatever soil is lying around. When a wheel presses into one cell, that cell tries to spread. The walls resist it in tension, and the neighboring cells push back through their own fill. Load applied to one pocket gets distributed sideways across dozens.

Think of a wine cellar's barrel vault. The stone in an arch is doing nothing but sitting in compression [pause] its strength comes from geometry constraining where it can go. Geocells do the same thing in reverse, in three dimensions, using tension instead of thrust.

Port of Long Beach, early two thousands. Pier T terminal, expanding into an old dry dock that sat well below yard grade. The available fill was dredged marine silt [pause] waterlogged, structurally close to worthless. The conventional answer was excavate it all, truck in a mountain of imported aggregate, spend millions, spend years. Instead they laid geocell and filled it with the junk that was already there. The finished platform carries hundred-ton cranes and stacked containers.

Grady built a model in his garage to show it. That's the part worth noting [pause] the whole discipline of geotechnical engineering is people working with materials they didn't specify, can't return, and have to characterize before they can trust. Nobody gets to order better dirt.

One commenter left the entire response: interesting concept, horrible writing. Sometimes the mechanism carries the segment on its own.

00:26:17.818 --> 00:26:39.636
<v George Carlin>This has been your daily tech feed for Hacker News for August ninth, two thousand and twenty-six. This podcast is entirely A I generated. Scripts by Claude Sonnet four point seven. Voice by Qwen three T T S. Not affiliated with Hacker News or Y Combinator.

Now go finish something old you never finished. We'll see you back here tomorrow.
