flâneur — a map of the web's best reading

Writing an OS in Haskell - agniv sarkar

old.agniv.me · 1,630 words · saved by 1 readers

bare-metal Raspberry Pi Zero OS

The code is here . This was a solo class project. I wanted to see what happens when you take a language designed for functional programming and force it to talk to hardware registers. What Is This HaskellOS is a bare-metal operating system for the Raspberry Pi Zero. It boots on real hardware, gives you a shell with 18 commands, reads files off an SD card, blinks LEDs, talks over wireless radio, runs green threads, garbage collects, and has an embedded Lisp interpreter. The codebase is about 4,900 lines of Haskell, 1,350 lines of C, and 310 lines of ARM assembly. The Haskell handles all the log

Explore this link on the map →

related reading