Course
Computer Architecture for Programmers
A hardware-aware tour of CPU pipelines, cache behavior, memory ordering, SIMD, and the measurement discipline needed to write fast real-world code.
Reviews
Enrolled members can rate this course.
No reviews yet.
How CPUs Execute Code
Instruction dependencies, pipelines, branch prediction, hazards, and the memory-ordering rules that shape correct concurrent software.
- 01Instructions, Dependencies, and Why Latency Rules EverythingModel a CPU as a dependency machine rather than a byte-code reader, and learn why chains of dependent work matter more than instruction counts.23mOpen
- 02Pipelines, Hazards, and Branch PredictionUnderstand how superscalar pipelines overlap work, what stalls them, and why unpredictable control flow can cost more than arithmetic.26mOpen
- 03Memory Ordering: Where Concurrent Intuition Goes to DieLearn why cores may observe memory operations out of order, what atomics actually guarantee, and how to reason about flags, publication, and locks.28mOpen
Caches and the Memory Hierarchy
Cache lines, locality, coherence traffic, false sharing, prefetching, and data layout decisions that dominate application performance.
- 01Cache Lines, Locality, and the Latency CliffSee memory as a hierarchy of latency and bandwidth, understand cache lines and associativity, and organize traversal around spatial and temporal locality.24mPremium
- 02False Sharing and Cache Coherence TrafficRecognize when independent variables share a cache line, why coherence protocols serialize ownership, and how padding or partitioning restores parallel scaling.25mPremium
- 03Data Layout, Prefetching, and Designing for the MachineCompare array-of-structs with struct-of-arrays, control object density, and use prefetching as a targeted tool rather than a superstition.27mPremium
Hardware-Aware Programming
SIMD, vectorization limits, disciplined measurement, and practical design habits for code that cooperates with modern hardware.
- 01SIMD and Vectorization Without the MagicUnderstand vector lanes, alignment, masking, and data-layout requirements so you can tell when SIMD will help and when intrinsics are a trap.26mPremium
- 02Measurement Without Self-DeceptionBuild benchmarks that survive frequency scaling, cold caches, compiler elimination, noise, and mismatched input distributions.25mPremium
- 03Writing Hardware-Aware Code in Real SystemsApply architecture knowledge without wrecking maintainability: choose representative workloads, reduce memory traffic, preserve correctness, and make performance decisions legible.24mPremium