computers/cpu-cache-why-reading-a-grid-by-rows-beats-columns-step-by-step.md
CPU cache: why reading a grid by rows beats columns, step by step
Two loops add up the same grid of numbers, yet one can run about ten times slower. The reason is a small, fast memory inside your processor called a cache.
Step through a tiny cache yourself: walk a grid row by row, then column by column, and watch hits turn into misses. Then see the same effect in a real C program.

$ ls computers/
see all →
computers/the-call-stack-how-your-computer-remembers-where-to-come-back-to.md
The call stack: how your computer remembers where to come back to
When one function calls another, how does the computer remember where to come back to? It keeps a pile of frames called the call stack…
computers/why-your-computer-forgets-unsaved-work-when-the-power-dies.md
Why your computer forgets unsaved work when the power dies
Your computer has two kinds of memory. Storage (the SSD or hard drive) is a big filing cabinet that keeps files with the power off. RAM is…
computers/counting-with-only-0-and-1-how-computers-store-numbers-and-letters.md
Counting with Only 0 and 1: How Computers Store Numbers and Letters
Every photo, message and web page on your computer is stored as numbers written with just two digits: 0 and 1. That's binary, and it works…