Archive

Writing

Articles on JavaScript, TypeScript, and the runtimes, frameworks and tooling underneath them.

Articles
15
Sections
5
Latest
  1. №005
    The TypeScript type system

    Type-Level Narrowing: How TypeScript Decides What You Meant

    Control flow analysis is a graph walk over your code. Knowing what widens a type again explains most of the errors that look wrong.

  2. №004
    Async machinery

    The Event Loop You Think You Know

    Microtasks, rendering opportunities and starvation — what the loop actually does between your callbacks, in the browser and in Node.

  3. №003
    The build pipeline

    What Actually Happens When Vite Serves a Module

    A walk through one request to a Vite dev server: resolution, the transform pipeline, import rewriting, pre-bundling, and why production differs.

  4. №002
    Reactivity

    Signals Are Not Magic: The Dependency Graph Underneath

    Every signals library is the same forty lines of bookkeeping. Here is what those lines do, and where the four popular implementations diverge.

  5. №001
    The V8 object model

    How V8 Decides to Optimize Your Function

    Two functions that look identical can run at very different speeds. The difference is usually shapes, inline caches, and a deoptimization you never saw.

Arrow keys to move, Enter to open.