# Rainbows Spec Turns a Stack Machine Into a Fantasy Computer

Original title: In Rainbows

> Hacker News story 50194935 · language: en · submitted 2026-10-22
> Web version: https://zeli.app/story/50194935
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 39 · by [surprisetalk](<https://news.ycombinator.com/user?id=surprisetalk>) · 💬 10
[original](<https://hitogata.neocities.org/Rainbows>) · [HN discussion](<https://news.ycombinator.com/item?id=50194935>)

## Summary

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.

## Key quote

> At this point it's literally keeping me up at night, and has been since I was first writing about ok.

## HN discussion (10 comments)

### [grahamburger](<https://news.ycombinator.com/item?id=50228903>)

> 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](<https://news.ycombinator.com/item?id=50229549>)

> The starfield background on the website triggers some nostalgic feelings for the flying toasters era

### [bcatanzaro](<https://news.ycombinator.com/item?id=50228315>)

> Reminds me of “peek” and “poke” on my C64 as a kid. Magic things happen when reading and writing to magic addresses…

---

## Cite

- Page: https://zeli.app/story/50194935
- Date: 2026-10-22
- Source: hitogata.neocities.org (https://hitogata.neocities.org/Rainbows)
- Hacker News: https://news.ycombinator.com/item?id=50194935

## Other languages

- zh: https://zeli.app/zh/story/50194935 · markdown: https://zeli.app/zh/story/50194935.md
- ja: https://zeli.app/ja/story/50194935 · markdown: https://zeli.app/ja/story/50194935.md
- ko: https://zeli.app/ko/story/50194935 · markdown: https://zeli.app/ko/story/50194935.md
- de: https://zeli.app/de/story/50194935 · markdown: https://zeli.app/de/story/50194935.md
- es: https://zeli.app/es/story/50194935 · markdown: https://zeli.app/es/story/50194935.md
- ru: https://zeli.app/ru/story/50194935 · markdown: https://zeli.app/ru/story/50194935.md
