News for hackers. Stuff that matters.
Re:Maestro: A Linux-compatible kernel in Rust by colonwqbang on Wednesday January 03, 2024 @07:09PM (#38861516)
In Haskell this should be "easy" to do using monads. You would have a process monad and an atomic monad (using Linux terminology). The operation to lock a sleeping mutex would live in the process monad. It would be possible to lift an atomic computation into process context (disabling interrupts) but not the other way around.

I don't think rust has such a concept of different computation contexts (does it?)

Of course Haskell may not be the most suitable kernel implementation language for other reasons...

Re:Maestro: A Linux-compatible kernel in Rust by RetroTechie on Thursday January 04, 2024 @12:12PM (#38869534)
> Of course Haskell may not be the most suitable kernel implementation language for other reasons...

seL4 microkernel would like to have a word with you..