Every language says 0.30000000000000004. Here is why binary can't store tenths, what it costs, and how to dodge it.
Read it21 Nov · 3 minSimple articles on how databases, servers and the internet work under the hood, and how big systems grow. Each one starts from a question you have probably wondered about.
Every language says 0.30000000000000004. Here is why binary can't store tenths, what it costs, and how to dodge it.
Read it21 Nov · 3 minA real deploy gone wrong: an old flag, one forgotten server and no off button. What the SEC report says, and what to do differently.
13 Nov · 5 minRead →Three people edit the same document offline, then reconnect. A CRDT makes every copy end up identical with no referee. We start with a counter, then text.
12 Nov · 4 minRead →You hit delete and the file is gone. Except it is not. Here is what really happens on disks, SSDs and databases, and why GDPR erasure is hard.
10 Nov · 4 minRead →Bad Wi-Fi drops data all day, yet downloads still finish. Here is how TCP pulls that off.
9 Nov · 4 minRead →Fast code is usually good. For passwords, it's a gift to attackers. Here's why slow hashing, salts and Argon2 keep a leaked database from hurting you.
8 Nov · 5 minRead →Dijkstra, A* and shortcut tricks: how a computer picks the best route out of millions of roads in a blink.
5 Nov · 5 minRead →One facepalm emoji has length 5 in Python, 7 in JavaScript and 17 bytes on disk. Here is why, plus the Turkish I bug.
4 Nov · 4 minRead →A container is not a tiny VM. It is a normal process with limited sight (namespaces) and limited resources (cgroups), started from read-only layers.
2 Nov · 5 minRead →Kubernetes is not a command runner. It keeps comparing what you asked for with what exists, and fixes the gap. Here is the loop, piece by piece.
30 Oct · 4 minRead →You type a name, a number comes back. Here is the chain of small servers behind it, and why DNS changes take time.
27 Oct · 4 minRead →The padlock is three promises, not one. Here is how certificates, a quick handshake and fast encryption keep you safe on public Wi-Fi.
24 Oct · 4 minRead →Your browser shows the same ID card on every request. Here is how cookies, sessions and tokens work, and why logout is the hard part.
21 Oct · 4 minRead →It does not run them at once. It swaps them super fast. Processes, the scheduler, context switches, virtual memory and system calls, explained simply.
18 Oct · 5 minRead →A cache is a bet that you will ask for the same thing twice. Here is what happens when the bet wins, loses, or goes stale.
15 Oct · 5 minRead →Every database picks a side: sort now or sort later. Most performance surprises you've hit come from which side it picked.
15 Oct · 4 minRead →Python turns your code into bytecode first, then a tiny virtual machine runs it. See it with dis, meet .pyc files, and find out what the GIL is.
12 Oct · 5 minRead →Video is not one big file. It is tiny chunks, a menu of qualities, and a player that picks each piece. Here is how.
9 Oct · 4 minRead →A phone is a copy of your data that goes offline without warning and comes back disagreeing. Most mobile bugs are exactly that.
8 Oct · 3 minRead →Google does not search the web when you do. It built a cheat sheet first. Here is how that list works, how pages get ranked, and how it scales.
6 Oct · 5 minRead →A home router copes with 10 devices, not 200. Websites too. Here is how one server grows into a million-user site, one bottleneck at a time.
3 Oct · 5 minRead →You press save and the power cuts out. Your data is still there. The trick is a plain diary called the write-ahead log.
30 Sept · 5 minRead →Queues let services hand off work and walk away. Kafka goes further with an append-only log. Here is how it scales, step by step.
27 Sept · 5 minRead →Retrying a failed request is an obvious safety net, and easy to build backwards. It hinges on one question: did the first attempt actually fail?
24 Sept · 3 minRead →Add one server and a naive database moves most of its data. Here is the ring trick that moves only a small slice instead.
24 Sept · 5 minRead →A short link is just a lookup. Build one on a single machine, then watch each bottleneck show up and get fixed.
21 Sept · 5 minRead →Why you can't just index latitude and longitude, and how geohash, H3 hexagons and quadtrees chop the map into boxes.
18 Sept · 4 minRead →When an AI answers badly from your own documents, people blame the search. Every time I've debugged it, the search was fine. The documents were the problem.
27 Aug · 4 minRead →Anthropic found a tiny, editable workspace inside Claude that carries silent thoughts. What the J-lens shows, why it matters, and what it doesn't prove.
10 Jul · 7 minRead →
LLMs answer fast because they save work they already did. Here's the KV cache: what it fixes, what it costs, and how people shrink the cost.
27 Mar · 4 minRead →