[HN Gopher] Blog series on creating an OS in Rust
___________________________________________________________________
Blog series on creating an OS in Rust
Author : znano
Score : 110 points
Date : 2025-07-30 12:01 UTC (11 hours ago)
(HTM) web link (os.phil-opp.com)
(TXT) w3m dump (os.phil-opp.com)
| junon wrote:
| 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.
|
| Hats off and kudos, it's a great series :)
| zparky wrote:
| previous discussion in 2022, 80 comments:
| https://news.ycombinator.com/item?id=30467572
| the_duke wrote:
| Even if you don't care about building an OS: the async/await post
| [1] is the best resource for understanding how async actually
| works in Rust.
|
| Highly recommended.
|
| [1] https://os.phil-opp.com/async-await/
| WD-42 wrote:
| 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.
|
| https://operating-system-in-1000-lines.vercel.app/en/
| azhenley wrote:
| Also relevant, Making a RISC-V Operating System Using Rust
| (2019). I wonder what relevant Rust features have changes in the
| last 6 years.
|
| https://news.ycombinator.com/item?id=36320914
| wkjagt wrote:
| 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?
| mrnoone wrote:
| 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
| scottaino wrote:
| 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.
| hadlock wrote:
| 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.
___________________________________________________________________
(page generated 2025-07-30 23:01 UTC)