Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
Author here. I'm surprised to see my <i>hobby</i> project on Hacker News.<p>I know this kind of stuff spark the ``it's meaningless to rewrite everything (especially Linux) in Rust'' debate. I agree 100% that rewriting Linux in Rust (or your favorite language) is just a waste of time and such a project won't live long.<p>That said, what I'd say here is that it's fun. Really fun. Implementing ABI compatibility requires you to understand under the hood of the kernel. You can learn how printf(3) works. You can learn what happens before main().<p>Especially, in Rust, it's inspiring to explore ways to write a kernel safely and expressively. One of my favorite part is the implementation of read system call [1].<p>Lastly, You can try this OS on SSH. Hope you enjoy :)<p><pre><code>    ssh root@kerla-demo.seiya.me
</code></pre>
[1]: <a href="https://github.com/nuta/kerla/blob/main/kernel/syscalls/read.rs" rel="nofollow">https://github.com/nuta/kerla/blob/main/kernel/syscalls/read...</a>