How a transformer reads
A walk through the parts of a transformer, from tokens to sampling, with a working figure for each step.
read it βA walk through the parts of a transformer, from tokens to sampling, with a working figure for each step.
read it βA Claude Code session is a file of JSON records, one per line. This lesson reads that file on my laptop, then uses it to explain resume, compaction, rewind and subagents, with the key terms defined as they come up.
Claude Code's memory is a folder of Markdown files per project, with a one-line index that loads into every session. I had Claude inspect its own files and transcripts on my laptop to see where memories live, what gets loaded, how they change and how to undo a change.
How Dijkstra's algorithm finds shortest paths and why it's right, what breaks it, and its relatives, from breadth-first search and Bellman-Ford to A*, searching from both ends, landmarks, Floyd-Warshall, many starts at once and other path problems, with ten figures to play with and exercises.
How games find paths on big maps. Dijkstra and A* on a grid of cells, why they slow down, what Age of Empires, StarCraft, Supreme Commander, 0 A.D., Factorio and the Spring engine do instead, and the planner I built for large maps with costly ground and thin walls.
How a B-tree keeps a huge sorted index a few page reads deep, how splits, borrows and merges keep it balanced, B+ trees and page fill, the variants from B-link trees to LSM-trees, how PostgreSQL, InnoDB, SQLite, LMDB, Btrfs and the Linux kernel use them, and fifteen exercises, from proofs to building a small database.
How a segment tree answers range queries and updates in O(log n), starting from buckets, with lazy propagation, searching inside the tree, the variants worth knowing, the sum tree inside prioritized experience replay, and three proofs and sixteen judge problems to practise on.
How a red-black tree keeps a binary search tree balanced with one colour bit, why that bounds its height, how insertion and deletion repair it, how it compares with AVL trees and B-trees, where Linux, Java, nginx and VS Code use it, and four proofs and ten judge problems to practise on.
HNSW is the default vector index in almost every database. This post explains the graph and why a search touches so few vectors, then why building it costs so much, what that does to databases that take writes all day, and how Elasticsearch, Qdrant, Milvus, Weaviate, pgvector, ClickHouse and newer designs deal with it.
How the ClickHouse vector index works, how to set it up, where it stands on BM25 and hybrid search, and how it compares with pgvector, Qdrant, Elasticsearch, Milvus and Weaviate. The last section compares what coding and research agents get from grep and from vector search.
3-SAT asks whether a list of three-variable rules can all be true at once. This post covers why it is hard, the algorithms people built for it over forty years, the hypothesis that said they could never get much better, and the two AI-found algorithms that broke it in October 2026.
Claude writes about 90% of Claude Code's own code, so its team rebuilt code review around scarce human attention. A summary of their seven review layers, risk tiers and reviewer tuning, plus how one person can automate the same layers.
Anthropic's report on its own workforce shows 5x the commits per engineer. In this article I look at whether the rest of the industry sees the same, and whether more code really turns into more productivity. So far the picture is less epic and a lot dimmer.
REA, "Reverse Engineer Anything", went from about 4,200 to 148,000 GitHub stars in a week. It connects coding agents to Ghidra, JADX and other reverse-engineering tools. Across 51 public attempts and three benchmarks, agents rebuild small features they can check, and nobody has shown a full rebuild of an app of real size.
Every coding agent is a model inside a harness, the program that runs the loop, the tools and the context. This post measures how much a harness adds on Terminal-Bench, which ones lead in October 2026, what the top ones share inside and what they are built on. Claude Code and Codex lead every current board, and mini-swe-agent, a 190-line harness, comes within a few points of them.
Mistral Large 4 is the best model built outside the US and China and a big jump from Large 3. Independent tests put it about seven months behind the US labs and behind five Chinese open models, and a task on it costs about fifteen times more than on the small US models with the same score.
Lionel Messi made football look like art, and no spreadsheet can hold that. But the spreadsheet still says it, plainly. The best forward who ever played and the best playmaker who ever played are the same person.
Lean is a programming language in which a theorem is a type and a proof is a program, checked by a small kernel. This post covers how that works, where it can still go wrong, and why it lets language models write proofs nobody has to read.
On 6 October OpenAI published 722 machine-written math papers with claims on the Unique Games Conjecture, the colouring of the plane, a $5,000 ErdΕs problem and dozens of other open problems. This post goes through the claims, the parts that come with Lean proofs, and the first day of reactions.
DeepSeek V4.1 and GLM-5.3 compared on agentic work and coding in two weight classes, next to the closed models behind Claude Code and Codex, with benchmark scores by task type, speed, cost per solved task and reports from daily use.
A walk through the parts of a transformer, from tokens to sampling, with a working figure for each step.
A hard DP that's worth knowing, because it stacks three classics in one problem. Partition DP, prefix sums and an LCP table take it from O(nΒ³) to O(nΒ²).
What actually happens when a provider says your prompt is cached. The trick underneath is called KV caching, and it's a small idea with a big memory bill.
Agents loop, and every loop resends everything. Where the tokens actually go, how prefix caching claws most of it back, which benchmarks matter when you pick a model, and a router you write yourself.
What I check first when an Elasticsearch cluster gets slow. Shards, segments, refreshes, and the profiling result that changed how we fetch ids.
The site, twice. A one-font page I shipped in april, then a rebuild with figures you can poke, a small green critter and a status bar.
A thinking canvas. Notes, mini-apps and agents on one infinite board, and the AI reads the board before it acts.
A terminal for agentic coding. Tabs, splits and real shells, plus the panels that show what your agents actually did.
An agent that turns a written scenario into a product demo video: it drives a real browser, moves like a person, and cuts the footage.