Rainbows Spec Turns a Stack Machine Into a Fantasy Computer
In Rainbows

The rainbows specification defines memory-mapped I/O devices for the ok virtual machine, named after Radiohead's In Rainbows. It provides a console (RbConsole), arithmetic unit (RbArith), disk (RbDisk), and planned datetime and screen devices. The author details each device's memory layout, including stdin/stdout, command-line argument access, multiplication and division, and block-based storage. The screen device remains unresolved due to color depth and resolution trade-offs, with the goal of running bare-metal on a 1024x600 laptop.
At this point it's literally keeping me up at night, and has been since I was first writing about ok.
- grahamburger
Not quite on topic but, for some reason, In Rainbows hit me just right at just the right time. I don't think it's objectively Radiohead's best album, but damn I listened to it a lot.
- swiftcoder
The starfield background on the website triggers some nostalgic feelings for the flying toasters era
- bcatanzaro
Reminds me of “peek” and “poke” on my C64 as a kid. Magic things happen when reading and writing to magic addresses…