Cool People Stories
Pixel-art portrait of Sam Rose

Design Engineer · United Kingdom

Sam Rose spends up to three months on each essay about load balancing, hashing or memory allocation, and every one of them lets you run the algorithm with your own hands

Sam Rose

Turns the computer science you nodded along to into something you can poke

Every programmer has been taught load balancing. Most of us got a diagram with three boxes and an arrow, the phrase "round robin", and a quiet hope that nobody would ask a follow-up. Sam Rose gives you the servers instead. Requests arrive as little moving dots, servers fill up, queues grow, dots get dropped, and you can change the rate yourself and watch the whole thing fall over. By the time the essay reaches the clever algorithm at the end, you already know why it has to exist, because you have seen the simpler ones fail in front of you.

That is the trick of samwho.dev, and he does it every time. Memory allocation becomes a slider you drag through a sequence of mallocs and frees. Hashing, bloom filters, reservoir sampling and big O each get the same treatment. Turing Machines ends with a machine you can step through, one instruction at a time, adding two numbers the long way.

Why there are so few of them

Each essay takes him one to three months, and the reason is that he has to understand the topic well enough to simulate it honestly. A load balancer you can play with has to behave like a load balancer, with request costs that vary and servers of different power, or the lesson it teaches is wrong. Then every widget has to be designed so a beginner gets something out of the first one, and every later one builds on the last. Most explainers pick either accuracy or approachability. His essays refuse to give up either, and that is the hard part, done again from scratch for every subject.

He also built a cast. Haskie, a husky puppy, interrupts with the question you were about to ask. Sage, his dad, answers it the way the source material would. Doe, the older sister, joined in 2024 when Sam worked with the illustrator Andy Carolan to redraw the family as proper SVGs. It sounds like decoration until you notice how much easier a scary topic gets when a dog asks the obvious question first.

The essay that changed the job

He had been blogging since 2011 when Load Balancing went out in 2023. Josh Comeau retweeted it, and Sam has said his phone did not stop vibrating for two days. Memory Allocation landed the same way. He had found something that was fun, hard, rarely done, and loved by the people who read it.

Companies noticed early. Encore commissioned two essays, Retries in 2023 and Queueing in 2024. Then in 2025 he made real room for it: he dropped to four days a week at his day job, set up a company and landed a sponsor. In July an email arrived from ngrok with the subject "What if you worked at ngrok?", and in September he started there as a developer educator, his first role outside an engineering department.

The first big ngrok piece, Prompt Caching, took five to six weeks of full-time work and explains how a large language model reads your prompt, down to the attention grid, with buttons. Simon Willison called it one of the clearest and most accessible introductions to LLM internals he had seen anywhere. Quantization followed in March 2026, and Willison singled out its section on floating point as the best visual explanation of it he had ever seen. A company paid a programmer to make the best explainers in his field, and he did exactly that.

I don't think I'm being dramatic when I say that writing on this blog has changed my life.

Sam Rose, looking back on 2025

The Rundown

The things Sam has actually shipped.

  • Load Balancing

    The 2023 essay that took off. You set the request rate and watch the servers cope, or not.

  • Prompt Caching

    Written at ngrok. The attention grid fills in one token at a time while you watch.

  • Memory Allocation

    Drag a slider through malloc and free until the gaps in the heap explain themselves.

Common questions about Sam Rose

Who is Sam Rose?
Sam Rose, known online as samwho, is a UK-based programmer and writer who makes visual, interactive essays about software at samwho.dev. His essays cover topics including load balancing, memory allocation, hashing, bloom filters, Turing machines, reservoir sampling and big O notation. In September 2025 he joined ngrok as a developer educator, where he wrote interactive essays on prompt caching and quantization.
What are Sam Rose's best-known essays?
Load Balancing (2023) is the essay that brought his work to a wide audience, followed by Memory Allocation, Hashing and Bloom Filters. At ngrok he wrote Prompt Caching, an interactive introduction to how large language models process prompts, and Quantization, both widely shared by programmers.
How long does a samwho.dev essay take to make?
Sam Rose says each post takes between one and three months to create. Every essay is built bottom-up, starting from the simplest example and adding interactive simulations step by step until the reader reaches the full algorithm.
Who are the dogs in Sam Rose's essays?
The essays feature three huskies. Haskie asks the questions a reader might have, Sage stands in for the source material, and Doe, Haskie's older sister, was added in 2024 when Sam Rose worked with illustrator Andy Carolan to redesign the characters.