@neauoire the constraints are pretty similar to Wirth's CPU for the Oberon project.
It's actually specified in an HDL:
You could at one point exchange cash for hardware:
Granted, Wirth's design allows for 1MB RAM for running a graphical, #plan9-like OS on a monochrome 1024×768 display:
The entire thing (kernel, GC, GUI, compiler, and HDL design fits in a few tens of thousands lines of code.
@neauoire it's actually so "plan9-like" because it's what influenced Rob Pike and Russ Cox's design decisions. acme's mouse-driven shell was directly inspired by Oberon's UI. Oberon-the-system and Oberon-the-language have their influence all over plan9 and golang.
A CPU simulator for Wirth's RISC design implemented in <80 lines of code:
More verbosely, in C:
The system is small, but definitely not toy-class. There are real practical considerations that went into its design.
@colby Oberon is great :) I've messed with the emulator a lot a few months back.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!