TRICKEDROCKS

EP 01 · THE PARALLEL MACHINE

Your screen has 8,294,400 pixels.

It can redraw every one of them 60 times a second.

In a modern game, each pixel needs hundreds to thousands of calculations.

That's about 0 calculations. Every second.

The chip doing it is made of sand.

~15 min · build a chip, race a CPU

ACT 1

One brilliant worker

A CPU core is a brilliant, lightning-fast worker. It follows a recipe, one step at a time. Here's the recipe for one pixel of a tiny 32×18 screen. Press play and watch it paint.

SCREEN · 32×18 = 576 PIXELS

Click a pixel to inspect it. Hover (or tap) a line of the recipe to see what it looks at.

PIXEL0/576
STEPS DONE0
THE RECIPE · 8 STEPS PER PIXEL
CPU CORE
waiting…

For every pixel, the CPU works through these steps:

function renderPixel(x, y) → color
    shared by every pixel: SUN = (20, 8) SUN_R = 4.2 SEA = 11
    Debugger: click a pixel, then step.

    ACT 2 · LEVEL 1

    Build a chip

    YOUR SILICON · 8×8 TILES

    Click or drag to place. Click a part to remove it.

    PARTS

    SPEC SHEET
    SILICON USED0 / 64
    MATH UNITS (WORKERS)0
    DEADLINE

    ACT 3

    You just invented the GPU

    One control unit shouting the same step to a whole row of simple math units. Engineers call it SIMD: Single Instruction, Multiple Data. It's the core idea of every graphics card. Now scale it up.

    YOUR CHIP
    MATH UNITS48
    SAME TIME, SAME STEPyour chip

    ACT 4

    AI is a giant grid of multiply-adds

    Inside a neural network, almost all the work is one operation: matrix multiplication. Each answer cell is a row times a column, multiplied and summed. Hover over (or tap) an answer cell.

    ROW × COLUMN = CELL
    inputs
    ×
    weights
    =
    answers

    Every answer cell needs only its own row and column. No cell waits for any other cell. Sound familiar? It's pixels all over again.

    RUN A NEURAL NETWORK LAYER

    A tiny layer of 24 neurons, each with 16 weights (the columns of B), looking at 24 inputs of 16 numbers each (the rows of A). Every answer cell in C is one neuron's response to one input: 576 answers.

    Watch the gold markers: that's step k, one multiply-add. The CPU walks one row and one column at a time. Your chip lights up many rows and columns at once, and all their gold markers move together, in lockstep.

    function answerCell(i, j) → number
      sum = 0
      repeat k = 1 … 16:        ← one step each
        sum = sum + A[i][k] × B[k][j]
      return sum

    1 CPU CORE

    0 ticks

    YOUR CHIP · 48 WORKERS

    0 ticks

    ACT 5

    CPU or GPU?

    16,384 workers are useless if they have to wait for each other. For each job, pick the better chip.

    0 / 6

    ACT 6

    Why a GPU costs as much as a car

    A flagship AI GPU like the H100 sells for around $25,000–$40,000. Tap each card.

    We took sand.

    Purified it until only one atom in a billion was wrong.

    Grew it into a perfect crystal. Sliced it. Printed 80 billion switches on it with light.

    Then we ran electricity through it, and it did math. Trillions of times a second.

    We tricked rocks
    into thinking.