A Primer on Computer Memory
While I've long known a computer runs by manipulating bits, I didn't have a good mental model of where those bits are stored and how they are accessed. I've had to build that understanding over the years, which has helped greatly as I've optimized training pipelines for neural nets, or developed data structures for high-performance computing. Talking to colleagues in the industry, I've found many of them are also uncertain about some foundational details. This article will build a mental model of computer memory, so that you can reason about the computer's memory model, and why certain things are fast and others slow.