The workbench

Think by making.

Small experiments that run in your browser. Pick one. It opens here, on the bench.

Bench 01 / Beneath the interface

How software runs.

Scheduling, compiled code, and search, one small view at a time.

Bench 01 / Beneath the interface

The event-loop explorer

Predict the console order of a short script. Then step through the call stack and the queues.

Scenario
Mode
console.log("start");setTimeout(() => console.log("timer"), 0);Promise.resolve().then(() => console.log("promise"));console.log("end");

Call stack

  • script

Microtasks

  • empty

Tasks (by time)

now 0 ms
  • empty

Console

No output yet.

Use the arrow keys to step.

The script starts.

 

What this shows
Synchronous code runs first. Then the browser runs every microtask. Then it takes the next task.
Honest note
This teaching model leaves out rendering and requestAnimationFrame. The check runs the same program in a worker in your browser. It never runs code as text.
Back to the bench ↑

Bench 02 / Many hands

Building together.

People and AI change one piece of work. Watch the work stay whole.

Bench 03 / Things in motion

A ball and an arm.

A cricket delivery and a robot arm. Each one moves by a small rule.

Field notes

The experiments run locally in your browser.
Small enough to inspect.