Re:Blog series on creating an OS in Rust
by junon on Wednesday July 30, 2025 @10:08AM
(#44734429)
Phil-opp's posts were instrumental in getting the boilerplate of my kernel up and running pretty quickly, mostly due to the unusual build config that is required.
I've since grown my own sense about it but it always tickles me when I think of a better way to do X, search for X on the cargo or rust issue trackers, find a ticket also looking for that, and more often than not Phill-opp either present or the one requesting it.
Re:Blog series on creating an OS in Rust
by WD-42 on Wednesday July 30, 2025 @01:18PM
(#44736918)
Did Phil Opp's series for fun recently, it's a great intro to OS development. I can also recommend "OS in 1k lines" as a follow-up that targets RISC-V instead of X86. It really demonstrates how large a difference a modern architecture makes.
Re:Blog series on creating an OS in Rust
by wkjagt on Wednesday July 30, 2025 @01:57PM
(#44737439)
I want to get into Rust and OS development, so this sounds like a great series. However, the articles were written in 2018-2020. Would they still be mostly relevant? Or has Rust moved so fast that too much has changed?
Re:Blog series on creating an OS in Rust
by mrnoone on Wednesday July 30, 2025 @02:35PM
(#44737917)
You can have a look at this project that shows how with proper abstractions you can minimize unsafe Rust for low level firmware. Specifically look for page token, page allocator and page table implementations: https://github.com/IBM/ACE-RISCV
Re:Blog series on creating an OS in Rust
by scottaino on Wednesday July 30, 2025 @02:38PM
(#44737956)
I went through it recently and I don't think there was anything in the blog that was out of date. There was mention in the blog of having to do some hacky things because certain features in rust didn't exist yet, but the hacky solutions provided still worked.
Re:Blog series on creating an OS in Rust
by hadlock on Wednesday July 30, 2025 @04:42PM
(#44739270)
Earlier this year I was able to struggle-bus together my own bootable rust binary (and bootloader in assembly!) on QEMU in a couple of hours using his blog as a guide. It seems the LLMs have definitely scraped his blog, as if you go off the happy path they're absolutely useless in this endeavor, and few other resources on the topic exist.
I've since grown my own sense about it but it always tickles me when I think of a better way to do X, search for X on the cargo or rust issue trackers, find a ticket also looking for that, and more often than not Phill-opp either present or the one requesting it.
Hats off and kudos, it's a great series :)
Highly recommended.
[1] https://os.phil-opp.com/async-await/
https://operating-system-in-1000-lines.vercel.app/en/
https://news.ycombinator.com/item?id=36320914
My kernel is at [0], feel free to reference its config for inspiration.
[0] https://github.com/oro-os/kernel