Remix.run Logo
FarmerPotato 5 hours ago

Write an operating system in Forth.

I've digested Wirth's THE paper. And the XINU book, as well as the BSD book.

Anyhow it's for my own use on my own hardware, but it must be beautiful. I've been encouraged by feedback on my Forth code's clear Forthiness, in the way of small, comprehendable word units. That add up to poetic top level loops like OVER PROCESS OVER SCHEDULE IDLE

elcapitan 2 hours ago | parent | next [-]

That sounds like fun! Which is THE paper by Niklas Wirth?

araes 4 hours ago | parent | prev [-]

That's a very specific skill development. I'd ask why Forth, yet guess because "must be beautiful"?

Seems like kind of strange / yet somewhat appropriate choice since Forth "traditionally use neither operating system nor file system." and "A full-featured Forth system with all source code will compile itself". Bootstrap your own operating system on a computer with literally nothing.

Interesting to read about though as a tangent, very different kind of language. "grammar has no official specification" "looks the word up in the dictionary" and then does whatever the dictionary specifies.

Good luck on the project though, seems like it fell out of use in the 80's and only got recovered recently. The Forth Interest Group comments on the subject are funny too. [1] "What ANS Forths are available?" -> "The simple answer is: none" Apparently somebody (Vincent Hamp) got it to work on Thumb-2 ISA (ARMv7-M and newer) though. Tiny. 7kb flash, 320B of ram. [2]

[1] https://www.forth.org/ansforth/ansforth.html

[2] https://gitlab.com/higaski/Shi