Hacker News new | past | comments | ask | show | jobs | submit login
Writing an OS in Rust: Kernel Heap (phil-opp.com)
156 points by phil-opp on Apr 12, 2016 | hide | past | web | favorite | 8 comments

I really love this series. I particularly appreciate the emphasis on developing safe abstractions: it's what makes it developing an OS in Rust (following the Rust philosophy) as opposed to just developing an OS (which happens to be written in Rust).

Yup, really like the whole approach Rust takes to things.

Also as an aside, the more I work with Rust's iterators the more I really like them. Being able to specify move semantics by replacing iter() with into_iter() is just sublime.

As I spend time in C++'s <algorithm> the more I wish for Rust to take over the world.

Hi phil-opp,

I'm following your blog. I'm wondering if you might have any tips for a ARM port. Thank you for sharing your work with us!

I don't have much experience with ARM… I'm trying my hands on a stm32 board at the moment and things are very different from x86 so far. If someone has ideas or suggestions, I would appreciate a comment at [1].

[1]: https://github.com/phil-opp/blog_os/issues/142

I thought the same.

I also looked into stuff like bare metal raspberry pi with rust..

But then I realized, that I take very much for granted. Even if I would get a kernel running, I wouldn't have any driver support.

Running a Rust-based OS on the Raspberry Pi is probably a no-go at the moment; too much proprietary code at the bootloader and hardware level.

You might get more luck with other ARM boards that is open down to the bare-metal. Sorry, but I am unable to recommended any boards, but a search for open ARM boards might give you some pointers.

Banana Pi? Galileo?

I wonder if you can do the same dodgy stuff Linux does to load kernel modules? Would there be a non-unsafe way of going about that?

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact