How things work, all the way down.

Long-form technical dives. Each one starts with why a piece of technology exists, then keeps going through the API, the runtime, the kernel and the bytes on the wire until it reaches the hardware. Most have parts you can run, step through and break.

Dives
34
Levels
299
Topics
7
Reading
24h
How to read thisEvery line is a diveEach tick is one level, drawn at the layer of the stack it explains. Longer lines go further down, from why a thing exists to the silicon that runs it.34 dives · 299 levels

Start here

Three dives that show what this site is about.

AI serving

How an LLM writes the next word

Follow one prompt through a real model: tokenizer, embeddings, attention, sampling and the KV cache, then down to why serving is bound by memory bandwidth and how tensor cores do the actual work.

55 min · 9 levels

Web and networking

HTTPS, before the first GET

One round trip to agree on keys, prove a server’s identity and hide an HTTP request. Follow TLS 1.3 from the first visible byte to the silicon doing the encryption.

42 min · 11 levels

Systems and hardware

Memory, from malloc to a DRAM cell

Follow one malloc(64) all the way down: the allocator's free lists, virtual addresses and page faults, the page-table walk and the TLB, cache lines, DRAM banks, and the leaking capacitor that finally holds your bit.

50 min · 9 levels

Latest

  1. Video streamingWeb and networking
  2. PasskeysWeb and networking
  3. Browser renderingWeb and networking
  4. Inside V8Languages and runtimes
  5. Web PushWeb and networking

Topics

Topics collect dives and practical notes. Dives follow a suggested reading order.

All topics

Browse

Search dives and notes, or narrow by topic.

34 dives, newest first

  1. Web and networking16 Nov 2026

    Video streaming, down to the decoder

    Press play on a ten-minute talk. Follow the first picture, the next segment and a sudden tunnel through HLS, DASH, adaptive bitrate, browser buffers and the silicon that turns bytes into motion.

    Idea to Silicon

    38 min9 levels

  2. Web and networking15 Nov 2026

    A passkey, from the button to the chip

    Ana signs in without sharing a secret. Follow her passkey from a phone to a laptop, through the browser’s origin checks, a real signature, the USB frames and the hardware boundary that protects the key.

    Idea to Silicon

    36 min9 levels

  3. Web and networking14 Nov 2026

    How HTML becomes pixels

    One product card, from arriving bytes to a glowing display. Build its DOM, resolve its CSS, and find out why moving a badge can cost a frame.

    Idea to Silicon

    42 min9 levels

  4. Languages and runtimes14 Nov 2026

    What V8 does with your JavaScript

    One distance function, four execution tiers, and an assumption that breaks. Step through real bytecode, build hidden classes, feed an inline cache, and follow a deoptimization down to the machine instructions that caused it.

    Idea to Machine

    43 min9 levels

  5. Web and networking13 Nov 2026

    How a push reaches your lock screen

    Your chat tab is closed. Ana is running five minutes late. Follow one encrypted message through keys, queues, a sleeping phone and the bytes that wake it.

    Idea to Silicon

    43 min10 levels

  6. Web and networking12 Nov 2026

    WebRTC, from Join call to the wire

    Ana is behind her home router. Ben is behind a carrier NAT. Follow their video call through negotiation, hole punching, encryption and the packets that arrive just in time.

    Idea to Machine

    50 min10 levels

  7. AI serving11 Nov 2026

    MCP, from a tool call to bytes on a pipe

    Follow one issue-tracker lookup through a model, a host, JSON-RPC, authorization and the kernel. Build messages, break a stream and inspect the bytes, with the 2026 and 2025 protocols kept apart.

    Idea to Machine

    38 min7 levels

  8. AI models10 Nov 2026

    How a speech model hears

    Say “We see a cat.” Follow the air pressure through samples, Fourier transforms, mel filters and a Whisper decoder, all the way to the bytes and arithmetic that turn sound into text.

    Idea to Machine

    38 min9 levels

  9. AI models9 Nov 2026

    Vision models, from pixels to an answer

    A receipt says $12.50. Follow its pixels through tensors, patches, attention and a language model to see how an image becomes evidence for an answer.

    Idea to Machine

    38 min9 levels

  10. AI models7 Nov 2026

    Diffusion models, from noise to an image

    Turn noise into structure with a real diffusion sampler, then follow an image through denoising, guidance, latent patches and the GPU arithmetic behind every step.

    Idea to Machine

    42 min9 levels

  11. AI serving6 Nov 2026

    How a GPU runs a kernel, from threadIdx to DRAM

    Follow a CUDA thread into a warp and onto an SM. Make branches diverge, scatter a memory request across sectors, and fix a transpose one bank conflict at a time.

    Idea to Silicon

    42 min9 levels

  12. AI serving4 Nov 2026

    Long context, from a million tokens to a fixed-size state

    A million tokens can hold a codebase. Following one question through them reveals three different limits: attention work, growing caches, and what a compressed state can remember.

    Idea to Machine

    42 min9 levels

  13. AI models3 Nov 2026

    Mixture of experts, from router to all-to-all

    Follow a token into a sparse expert layer: router scores, balance and capacity, expert parallelism, token permutation, and the memory traffic behind conditional computation.

    Idea to Silicon

    42 min8 levels

  14. AI serving1 Nov 2026

    Vector databases, from a question to a dot product

    Follow one search for a laptop that will not charge: learned geometry, graph navigation, compressed codes, filtered retrieval, and the memory traffic behind every similarity score.

    Idea to Machine

    45 min9 levels

  15. AI serving30 Oct 2026

    Quantization, from 16 bits to 4

    Squeeze a 70-billion-weight model into fewer bytes. Explore the floating-point encodings, tame outliers, compensate rounding errors, then unpack four-bit weights inside a GPU kernel.

    Idea to Silicon

    40 min8 levels

  16. AI models29 Oct 2026

    From base model to assistant: post-training

    Follow one coding request through chat templates, supervised fine-tuning, preference learning and reinforcement learning, down to the log-probabilities and memory that make it work.

    Idea to Machine

    40 min9 levels

  17. AI models27 Oct 2026

    How a neural network learns, from loss to all-reduce

    Turn prediction errors into gradients, build a tiny autograd engine, and train a real network in your browser. Then follow one weight update through optimizer memory, GPU collectives, pipeline schedules and the compute budget of a language model.

    Idea to Silicon

    45 min9 levels

  18. AI serving25 Oct 2026

    How an LLM writes the next word

    Follow one prompt through a real model: tokenizer, embeddings, attention, sampling and the KV cache, then down to why serving is bound by memory bandwidth and how tensor cores do the actual work.

    Idea to Silicon

    55 min9 levels

  19. Web and networking23 Oct 2026

    CORS, at the browser’s boundary

    Your app can reach the API. Why can’t it read the reply? Follow one JSON order through origins, preflights, cookies and the browser’s response filter, down to HTTP/2 frames.

    Idea to Machine

    38 min8 levels

  20. Web and networking21 Oct 2026

    HTTP caching, down to the disk

    Open a news article twice. Follow its HTML, JavaScript, logo and comments through freshness checks, validators, service workers and the back/forward cache to see which requests ever reach a server.

    Idea to System

    38 min9 levels

  21. Web and networking19 Oct 2026

    WebSockets, down to the frame

    Why the web needed a full-duplex pipe, how an HTTP request turns into one, and what every bit of a WebSocket frame means on top of a TCP stream.

    Idea to Machine

    40 min8 levels

  22. Web and networking17 Oct 2026

    HTTP/3 and QUIC, from request to datagram

    How HTTP moved off TCP: head-of-line blocking, QUIC streams and packets, a TLS 1.3 handshake folded into the transport, and the UDP datagrams carrying it all.

    Idea to Machine

    45 min10 levels

  23. Web and networking14 Oct 2026

    HTTPS, before the first GET

    One round trip to agree on keys, prove a server’s identity and hide an HTTP request. Follow TLS 1.3 from the first visible byte to the silicon doing the encryption.

    Idea to Silicon

    42 min11 levels

  24. Web and networking12 Oct 2026

    DNS, before there is an address

    Your laptop knows a name. The network needs an address. Follow a café Wi-Fi lookup through delegation, caches, signed answers and encrypted transports, down to every byte on the link.

    Idea to Machine

    43 min10 levels

  25. Web and networking10 Oct 2026

    WebAssembly, top to bottom

    Start with real C zlib compressing your text in this tab. Then go down through the JavaScript boundary, the module format and the stack machine to the guard pages and x86-64 an engine uses to run it fast and safely.

    Idea to Machine

    40 min10 levels

  26. Languages and runtimes8 Oct 2026

    Zig comptime: the compiler runs your code

    Build a tiny binary protocol with types as values, a derived packet codec and a CRC table. Follow ordinary Zig code through compile-time evaluation into the bytes and instructions that survive.

    Idea to Machine

    40 min8 levels

  27. Languages and runtimes5 Oct 2026

    Rust ownership: the checks and the machine

    Follow a batch of log lines through moves, borrow checking, threads and async suspension. See what the compiler proves, what a future stores, and the instructions that remain.

    Idea to Machine

    42 min8 levels

  28. Languages and runtimes2 Oct 2026

    Go’s garbage collector, from GOGC to the cache line

    Follow a 64-byte cache entry through allocation, concurrent marking and sweeping. Break a collector, tune a heap goal, read real runtime output, and see why Green Tea changes the order in which memory is touched.

    Idea to Silicon

    45 min8 levels

  29. Languages and runtimes30 Sept 2026

    Go concurrency, from go keyword to OS thread

    What makes goroutines and channels different, the patterns they unlock and the bugs they invite, then down through the G-M-P scheduler, the inside of a channel, OS threads and the netpoller, to the two instructions that make stacks growable.

    Idea to Machine

    45 min8 levels

  30. Systems and hardware28 Sept 2026

    Atomics, from a log queue to a store buffer

    Two threads write, then read. Both can read the old value. Follow a log record through a lock-free queue to understand the language contract, compiler instructions, store buffers, and the cache lines moving between cores.

    Idea to Silicon

    42 min8 levels

  31. Systems and hardware24 Sept 2026

    From gcc main.c to main()

    A call begins as five bytes with a hole. Follow a tiny C program through ELF objects, symbol resolution, relocation, the PLT and GOT, and the loader that makes those bytes runnable.

    Idea to Machine

    42 min7 levels

  32. Systems and hardware21 Sept 2026

    What a single read() costs

    Follow one HTTP request through a privilege boundary, a sleeping thread, epoll’s ready list and io_uring’s shared rings. Three ways to serve 10,000 connections, down to registers and the packet that wakes a core.

    Idea to Silicon

    38 min8 levels

  33. Systems and hardware19 Sept 2026

    Memory, from malloc to a DRAM cell

    Follow one malloc(64) all the way down: the allocator's free lists, virtual addresses and page faults, the page-table walk and the TLB, cache lines, DRAM banks, and the leaking capacitor that finally holds your bit.

    Idea to Silicon

    50 min9 levels

  34. Systems and hardware16 Sept 2026

    How a microprocessor works

    From a line of C to the transistor: the instruction set contract, a RISC-V CPU you can clock by hand, the datapath, pipelines and caches, adders built from logic gates, and the switch at the bottom of it all.

    Idea to Silicon

    50 min9 levels

Notes

Short, practical answers for the task in front of you.

All notes
  1. Note3 min read
  2. Note4 min read
  3. Note3 min read
  4. Note4 min read
  5. Note3 min read
  6. Note3 min read