Byte Pair Encoding: How a Compression Trick From the 1990s Became Every LLM’s Tokenizer
Language models never see words, letters, or sentences. They see integers. Everything you type gets mapped to a sequence of
Language models never see words, letters, or sentences. They see integers. Everything you type gets mapped to a sequence of
Every RAG pipeline, semantic search feature, and recommendation feed eventually hits the same wall: a few million embedding vectors, a
Continue readingHNSW From the Ground Up: How Vector Search Actually Finds Your Nearest Neighbor
Suppose you run a cache cluster of 24 nodes and each application server picks a node with the simplest rule
Continue readingConsistent Hashing: Why mod-N Breaks Your Cache and How the Ring Fixes It
Ask most Go developers how the garbage collector works and you’ll get one of two answers: “it’s concurrent and low-pause”
Some code teaches you an algorithm. Some code teaches you a way of thinking. The snippets below are in the
Continue readingFive Code Gems From Quake, Redis, Linux, Python, and SQLite — and What They Teach
Most developers treat the garbage collector as weather: it happens to them, and occasionally it ruins their day. But the
Every language you have ever used has a hash table hiding somewhere in it. Python calls it dict, Go calls
Continue readingHow Hash Tables Actually Work: Collisions, Load Factors, and the Resize Dance
Reinforcement Learning with Verifiable Rewards (RLVR) has become the engine behind modern reasoning models. The recipe is straightforward: let a
Most production performance problems in database-backed applications trace back to the same root cause: missing or misused indexes. Not slow
Continue readingPostgreSQL Indexing Strategies: Choosing the Right Index for Every Query