Studio · Shorts Parts 1–5
Five checks that keep website code in its box
Predict what each rule does, then run it.
Part 1 · check once before it runs
1. Inspect Before Run
A website sends your browser a list of steps. A tray holds numbers: steps put them on top or take them off the top. add top two takes two off and puts back their total. This rule runs each step, then checks it. The fixed rule instead reads every step first without running it, using a pretend tray tracking how many numbers sit on top; each [ number ] tile stands for one.
What happened
Part 2 · two branches must leave matching trays
2. Matching Branches
Code can fork: if a test passes it takes the left path, otherwise the right. Both paths meet again at the join. A checker reads the code without running it and keeps a picture of the tray. Here the left path leaves one number and the right leaves two. This rule keeps the last picture it made.
What happened
Part 3 · labeled boxes, no wild jumps
3. Labeled Boxes
A jump sends the run to a different step. The checker reads the steps once, in order. So before step 3 it pictured two numbers on the tray, and it never looks at step 3 again. This rule lets a jump land on any step. The fixed rule groups steps into labeled boxes, and each box states what it leaves on the tray when you exit it: its box promise.
What happened
Part 4 · the numbered memory wall
4. Memory Wall
Running code gets its own memory room: numbered slots 0000 to 0999, with the wall at 1000. Past the wall sits data it must never touch. Before each read, a check adds the start and the size to get the far end, the first slot after the read, and allows the read only if the far end is at most 1000. This rule counts on a four-digit dial, like a car’s mileage: after 9999 it rolls back to 0000.
What happened
Part 5 · sealed helper table
5. Sealed Helper Table
Some code picks which reusable helper (called a function) to call while it runs. It may not jump to a raw memory spot. Instead it picks a numbered slot in a sealed table of helpers. Each function wears a badge: how many numbers it takes in and gives back. This rule calls whatever sits in the slot.
What happened
Your predictions
Saved in this browser. First predictions and revisions are kept apart.