The Writing

Notes on building software.

Essays on architecture, AI systems, and the craft. Self-hosted, no tracking, no paywall.

A Lazy Route Is a Request You Make Later

Code splitting doesn't remove a network request — it reschedules it to the moment a user clicks, against a build that may no longer exist. Measured in a small React shop: why a 158 ms chunk still shows a spinner for 300 ms, how to get the click to 1 ms, and what breaks after a deploy.

  • javascript
  • react
  • vite

Import Is Not a Function Call

require() and import look like two spellings of the same thing. They aren't. One is a function call and one is a declaration — and that single difference explains live bindings, link-time errors, the browser's request waterfall, and why bundlers exist at all.

  • javascript
  • modules
  • esm

Rust's Concurrency Rule Doesn't Relax — It Moves

Rust's rule against shared mutable state doesn't relax once you add threads. It just changes who enforces it — and gains a second rule deciding who's allowed to cross the thread boundary at all.

  • rust
  • concurrency
  • systems

The Memory Wall

Why a GPU is architected nothing like a CPU, and the one ratio — arithmetic intensity — that tells you whether your code will ever be fast on either.

  • gpu
  • cuda
  • systems

There's No Magic in Your Database

You type SELECT and rows come back. In between is a stack of twelve layers, each solving one very sensible problem. Here's the whole journey, following a single query from your terminal to the disk and back.

  • databases
  • postgresql
  • internals

Why Your AI Features Feel Bolted On

Most AI integrations disappoint for the same reason, viewed three ways. Here are the three failure modes — and the one architectural idea that fixes all of them.

  • architecture
  • ai-systems
  • agent-native