The story and the devices
The story
A pebble. Calculus is Latin for a small stone, the kind people once counted with. In 1928 Hilbert asked whether a mechanical procedure, something like moving pebbles by rule, could decide every mathematical question. In 1936 Turing answered him. He defined the machine that would have to do it, and proved that no such machine can. The machine outlived the question it was built to answer. This series follows it from paper to planet. Each part adds a layer to the tower of abstractions, resting on the layers below, and each act puts a new question to the tower:
- Act I, The Machine (1–6). What does it take to build Turing's machine? The language of proof and counting, logic from switches, arithmetic, memory and time, and the stored-program computer. By the end, Pebble, the computer we build from NAND gates, runs its first program. It works, and it is slow.
- Act II, Making It Fast (7–10). Why is the same machine a thousand times faster today? Pipelines, out-of-order execution and speculation, the memory hierarchy, and parallel machines. Then physics stops the clock, and the free speedups end.
- Act III, Speaking to the Machine (11–15). How does a sentence a person writes become bits a machine runs? The running program, languages and automata, the compiler, the λ-calculus and types, and runtimes.
- Act IV, Algorithms (16–24). How do you think efficiently? Counting steps, data structures, graphs, the great paradigms (greedy, divide and conquer with the FFT, dynamic programming), randomness, strings, geometry and optimization. The act ends with algorithm engineering, where theory meets the machine. Here the Job's cost drops further than all of Act II's hardware made it drop.
- Act V, Limits and Secrets (25–30). What can't be computed, what can't be computed fast, and how can hardness be put to use? Undecidability, P versus NP, randomness and interactive proof. Then Shannon's two papers: codes that beat noise (1948) and ciphers that beat adversaries (1949), and the public-key cryptography built on hardness.
- Act VI, One Machine, Many Programs (31–35). How do many programs share one machine, and how does data outlast power failures? The kernel, virtual memory, concurrency, storage and databases.
- Act VII, Many Machines (36–39). How do machines talk, and how do they agree when anything can fail? Two parts on networks and two on distributed systems. The Job runs on a cluster that loses a node partway through.
- Act VIII, Building Software (40–44). How do teams build software that lasts and that people can use? Software engineering; version control, builds and dependencies; the browser and the web; APIs and services; people and products (HCI and controlled experiments).
- Act IX, Systems at Scale (45–50). How does industry run systems for a billion users? The cloud; logs, streams and warehouses; search engines; two parts of system design (building blocks, then eight case studies); and keeping it running (reliability, observability, performance).
- Act X, Horizons and Trust (51–55). What other kinds of computation are there, and can we trust what we built? Graphics, numerical computing, quantum computation and proving programs correct. The finale is Ken Thompson's "Reflections on Trusting Trust", carried out against our own compiler. That ends the degree.
- Act XI, The Research Frontier (56–61). Where does the field stop knowing, and how do you push it? Spectral graphs and expanders, learning theory, semantics, distributed-computing theory and domain-specific hardware, each at graduate depth; then a part on doing research (measurement without self-deception, reading and writing papers, finding problems), ending on the map of open problems the series has met.
Every part ends on the question the next part answers. Every act ends on the limit the next act gets past.
Three devices hold the series together.
-
Pebble (
explainer/cs/pebble/): the computer the series builds, in code. Each part adds the layer it teaches:- the machine: a gate-level simulator, an ALU, a 32-bit CPU and its assembler, pipelines and caches;
- the software stack: a compiler, a type checker and a garbage collector, an operating system, a file system, a database;
- the network: a network stack, Raft, MapReduce;
- the industry acts: a git-style object store, a build engine, a toy browser, services with idempotency keys and sagas, a stream processor, a search engine, and a cluster substrate with load balancers, caches, rate limiters, autoscaling and fault injection;
- beyond: a path tracer, a quantum simulator, and a verifier.
Each piece is checked against an independent reference: exhaustive truth tables, co-simulation, real git hashes,
sqlite3,hashlib, published test vectors, or invariants over thousands of seeded fault schedules. -
The Job and its ledger (
explainer.cs.ledger): one fixed task carried through every layer. The task is to count the words in the thirty Project Gutenberg novels that AI, Built reads (its Part 1'sBOOKS) and list the twenty most common. Part 6 runs it on Pebble at gate level. Later parts add rows to the ledger as they change the cost:- the hardware: pipelining, caches, multicore;
- the software: an optimizing compiler, a better algorithm, a hash table, a sketch that uses kilobytes, an engineered SIMD version;
- the systems: a SQL query on our own database, a fetch over our own TCP, MapReduce on a sixteen-node cluster that loses a node;
- at scale: a live streaming top-20; then the Job as a service at a million books a day, with its p99 latency, its availability under failure, and its bill in dollars.
The ledger follows the data. If an algorithm beats a decade of hardware, it shows that. If it doesn't, it shows that.
-
The tower (
explainer.cs.tower): the stack of abstractions, drawn on every chapter card next to the timeline strip (1800–2030). The current layer is lit. Two side columns sit beside it: the limits (computability, complexity, information) and the practice (engineering, tooling, operations). Payoff cards ("where this comes back") link ideas forward. Each part closes with an In practice card naming the systems, roles and interview topics it serves. Callbacks link to AI, Built and Analysis, Built instead of repeating them.