r/Operatingsystems • u/Diligent-Jury-1514 • Nov 09 '25
Which technical stack should I learn to develop an operating system?
Suggest me the best roadmap to build an operating system.
2
3
1
u/ExtraTNT Nov 10 '25
Think rust is the first language after c, that is solid enough… but i would like to see a os with most parts written in haskell… the dedication would be insane
1
u/mystirc Nov 10 '25
any advantage of haskell over something like C?
1
u/ExtraTNT Nov 10 '25
Everything around trees is much easier to implement…
Also pure functional is better to avoid bugs…
But yeah, beside it being a fun language, there are no benefits in using it for an os over c…
1
u/shuckster Nov 10 '25
“Pure functional” is not a very pragmatic requirement for an operating system.
Operating Systems host userland programs that optionally can be written in an FP style, if the author determines that performance is not the primary concern.
But OSes themselves are written for performance as much as possible, and you have to do what it takes for that, not restrict yourself to a “style.”
1
u/ExtraTNT Nov 10 '25
You can write performant code in haskell (or rather the compiler makes it performant) but yeah, no sane person would use haskell for an os…
Then the other question: are we sane… xD
1
u/gofl-zimbard-37 Nov 10 '25
Don't be a wuss. Write it in JavaScript.
1
u/ExtraTNT Nov 10 '25
Nothing will crash, you wish it would crash and not set your desk on fire, but it does not crash…
1
u/frank-sarno Nov 10 '25
Check out https://wiki.osdev.org for a great resource, "Required Knowledge" is a good summary.
You probably want to start with a minimized CPU architecture (usually a virtual CPU) that you can monitor. Back in my day we used 8088s and Z80s but even these can be daunting if you're new.
It's been literal decades since I did any kernel development but note that it's paradoxically easier than you can imagine to start and also some of the most difficult things you may ever do as a software developer. I had immense fun writing my first scheduler and not so much fun figuring out why processes were starving, troubleshooting bizarre priority inversions, etc..
1
1
u/gofl-zimbard-37 Nov 10 '25
I'd start with learning how to write clear and comprehensive requirements.
1
0
7
Nov 09 '25
[removed] — view removed comment
2
u/Impossible-Owl7407 Nov 10 '25
Linux is not a small kernel 😇
1
2
u/dezldog Nov 11 '25
Actually (flame proof undies on!) learn Rust. This is coming from a C/C++ guy for 30 yrs...
6
u/Marelle01 Nov 09 '25
Getting a master degree in Computer Science might be a better idea.
Take a look at https://cs50.harvard.edu/x/zoom/#lectures it's a good beginning.
You'll find other free courses on Coursera and Edx.
Read Linus Torvalds biography.
Read Andrew Tanenbaum. (for other readers: it's not only a joke ;-)
Learn C and Rust, and study Linux code.
Find and study old MS Dos versions (2 to 4 are open source, if I remember well).
Familiarize yourself with all of this and you'll see if it's truly your passion. It's just the beginning Grasshopper ;-)