Back to Ghost in the Repo

A journey in eighteen chapters

Nand to Instagram

How a computer is built, from one switch to your feed. Follow one photo: Priya in Pune posts a cup of chai, and Arjun in London sees it about forty seconds later. Every chapter asks what has to happen to that photo here.

What you need: a browser. No sign-in. Works on a phone.

Depth

Prologue

Forty seconds

Priya in Pune posts a photo of a cup of chai. Arjun in London sees it about forty seconds later. In between, the photo becomes light, then numbers, then envelopes, then light again. Step through the trip, or press Play all.

The photo islightSizeno bytes yetthe chailensthe sensor: about 12 million wells

Step 1 of 8

Light

Priya taps the shutter. Light from the cup passes through the lens and lands on the sensor: a grid of about twelve million tiny wells, typical for a phone camera. Each well collects charge. More light, more charge. Nothing is a number yet.

Where is the internet?

Bet first. In studies, many children picture this wrongly, and the wrong picture sticks. Where is it?

Sixty seconds to pick your depth

Four questions, one tap each. They set which rung you start on. Guessing is fine.

  1. Binary 101 is which ordinary number?

  2. What does a router do?

  3. A NAND gate's output when both inputs are 1?

  4. What is the clock inside a CPU?

Your computer so far

Every part you build becomes a tool for the next level. 1 of 16 built.

  1. NAND, built
  2. NOT, not built yet
  3. AND, not built yet
  4. OR, not built yet
  5. XOR, not built yet
  6. SR latch, not built yet
  7. D latch, not built yet
  8. flip-flop, not built yet
  9. bit, not built yet
  10. register, not built yet
  11. half adder, not built yet
  12. full adder, not built yet
  13. 8-bit adder, not built yet
  14. ALU, not built yet
  15. envelope sorter, not built yet
  16. forwarding table, not built yet

Saved in this browser only, with no account. Clearing your browser's site data clears it.

The eighteen chapters

  1. 00 · prologueForty secondsphoto: the whole trip
  2. 01 · liveThe switchphoto: on or off
  3. 02 · liveRememberingphoto: sixteen bits held
  4. 03 · liveCounting with wiresphoto: 178 + 20
  5. 04 · plannedThe first programphoto: three instructions
  6. 05 · plannedThe loopphoto: fetched and executed
  7. 06 · plannedWords instead of bitsphoto: a symbol
  8. 07 · plannedA language of our ownphoto: pixels[i] + by
  9. 08 · plannedThe stack machinephoto: pushed and popped
  10. 09 · plannedThe compilerphoto: a tree
  11. 10 · plannedThe libraryphoto: drawn with a line
  12. 11 · plannedThe refereephoto: a process
  13. 12 · plannedDoors and drawersphoto: ten sectors
  14. 13 · plannedThe photophoto: 1,280 words of grey
  15. 14 · liveEnvelopesphoto: about 250 envelopes
  16. 15 · plannedThe warehousephoto: a row and a file
  17. 16 · plannedWho sees it firstphoto: a candidate with a score
  18. 17 · plannedLighting the glassphoto: light again
  19. 18 · plannedEpiloguephoto: every layer at once