Built idea · Oct 10, 2026
Cache Miss Theater
Pick or type a small loop nest over arrays, configure a cache, and watch every load land as a hit, compulsory, capacity or conflict miss on an animated set-associative cache, with simulator-verified 'predict the miss rate' questions.
What it does
Shows students exactly why one loop runs faster than another. Paste a C loop nest and it traces every array access through a cache you configure (size, line size, associativity, replacement policy), then animates hits and misses and labels each miss as compulsory, capacity or conflict. Compare two versions side by side, sweep a setting to plot miss rate, or start from presets like row versus column order and blocked matrix multiply. Instructors can generate exam questions with simulator-checked answers, exported as Markdown or a QTI quiz file. Limitation: it models a single level of data cache and can't follow pointers or indirect indexing.