Re:A Functional Approach to Memory-Safe Operating Systems
by weatherlight on Tuesday January 03, 2023 @05:14PM
(#34238900)
MirageOS is an OS built in a (mostly) FP language, Ocaml.
Re:A Functional Approach to Memory-Safe Operating Systems
by rurban on Wednesday January 04, 2023 @02:03AM
(#34242893)
No, really it should be the Lisp Machine, Genera.
Another older procedural approach would be Solo with Concurrent Pascal. http://pascal.hansotten.com/per-brinch-hansen/superpascal/
Re:A Functional Approach to Memory-Safe Operating Systems
by mike_hearn on Wednesday January 04, 2023 @07:17AM
(#34244671)
Yes, good point. Does Lisp still get classed as pure FP in the post-Haskell world though? You don't need monads to express side effects in it, iirc.
https://www.microsoft.com/en-us/research/project/singularity...
https://en.wikipedia.org/wiki/Midori_(operating_system)
http://jnode.ro/
None are functional but as noted in other comments, you end up needing to do everything in a monad anyway if you try to do an OS in an FP language. An OS is all about managing a large and fundamentally imperative block of hardware state so pure FP isn't an obvious fit.