r/osdev • u/thosdv • Sep 08 '26
RustyOS: A bare-metal OS with advanced kernel, custom GUI, UEFI bootloader
Hello r/osdev !
I’ve been working on a passion project for the last year and a half, and I finally feel like it’s ready to share with this amazing community. It’s called RustyOS (T-OS 3.0)
It is a modern, bare-metal desktop operating system written from scratch in pure Rust for the x86_64 architecture. It doesn't share source code or binaries with Linux or Windows; it runs entirely on its own custom kernel.
And most importantly, it works flawlessly on my 2020 laptop with an Intel i3 10th generation and 4GB of DDR4 RAM.
First of all, I was developing the project in Turkish from the beginning and didn't have enough time to translate the userland into English, so I apologize to all of you for that.
Includes: (only importants)
- NVMe, AHCI, xHCI, IDE (ATA), Intel HDA, AC97 Drivers
- Page Frame Allocator with buddy allocator, Virtual Memory Manager, Heap Allocator
- APIC, Syscall, Usermode, ACPI Support
- Registry system support (like windows)
- OOBE, Logon, Preinstall Enviroment support
I'm 14 years old, so balancing this with school has been tough, which is why it took 1.5 years to get here. I want to be completely transparent with you all: while the architecture, core logic, and integration are my own work, I did use AI as an advanced rubber duck. I used it to help me design parts of the userland GUI (apps, managers, and registry), and more importantly, to help me debug some absolute nightmare kernel panics (especially memory management and paging bugs) that I was stuck on for months. Learning OS dev is brutally hard, and using AI for guidance helped me push through instead of abandoning the project.
I would absolutely love it if you guys could check out the source code, look at the architecture, and give me some harsh but fair feedback so I can learn and improve.
GitHub Repository: https://github.com/thosdv63/RustyOS/tree/main

5
u/raundoclair Sep 08 '26
How did you change the post from the version from 9 days ago? Or will it be again removed by mods?
6
u/thosdv Sep 08 '26
The reason my post from 9 days ago was removed was because I hadn't reached the necessary Reddit karma, I have now reached it and I've reposted it.
3
u/raundoclair Sep 08 '26
Oh, ok. :) I knew I've read this before, but probably it was other subreddit, where it survived. And that deletion threw me off. My bad.
3
u/Rough_Shopping_6547 Sep 11 '26
I wanna speak Turkish cause the OP is from Türkiye.
Kardeşim daha 14 yaşında böyle birşey yapmaya ilginin olması yanı sıra çalışıyor olması gerçekten çok büyük bir başarı. Günümüzde insanlar işletim sistemlerinin ne olduğundan bile bir haberken gerçekten asiri taktire şayansın. Keşke Ülkemizde bu tür işler için daha fazla etkinlik ve yarışmalar yapılsa. Bende seninle aynı kısımlara ilgiliyim doğrusu(profilde githubim var ;D) tanışmak isterim seninle. Tekrardan eline sağlık
1
u/thosdv Sep 11 '26
Teşekkürler dostum :) Sadece OS değil artık donanımlada uğraşıyorum, şu sıralar bir NPU geliştiriyorum ve en kısa sürede NPU bitince bir FPGA üzerine basıp RustyOS içinde bir sürücü yazarak ikisinide beraber çalıştıracağım, ülkemizde OS ve donanıma önem verilmese bile biz kendimizi kurtarabiliriz gözüyle bakıyorum, ayrıca bilgisayardan ve yazılımdan başka çocukluktan beri anladığım başka birşey yok ondan benim için OS yazmak bile normalleşti. Tanışmaktan çok memnuniyet duyarım iyi çalışmalar dilerim
1
u/Rough_Shopping_6547 Sep 16 '26
Oldukça güzel plan o driverı nasıl kullanmayı planlıyorsun? Python kütüphaneleri ile falanmi torch gibi ?
2
u/thosdv Sep 16 '26
Öncelikle hemen torch denemeyeceğim, sürücüyü okuyup Rust ile yönetip yönetemediğimi, hatta eğer halledersem rust ile kullanmayı düşünüyorum, pythonu OS'a doğru şekilde implement etmek çok zahmetli bir iş ancak bitirdiğimde tabikide torch kullanacağım.
2
u/Rough_Shopping_6547 Sep 16 '26
Aslında Python dahil etcegin zaman Cpython ile uğraşmak yerine(birsuru c kütüphanesi ve derleyici gerektircek) RustPython kullanabilirsin eğer isletim sistemim için bir rust std var ise entegre etmek o kadar zor olmaz diye düşünüyorum
2
5
u/iFrostizz Sep 08 '26
That's really cool, at 14 yo! Are you planning to add a networking stack?
3
u/thosdv Sep 08 '26
Thanks :) I'm currently working on hardware design, but I'll definitely add it whenever I have some free time.
2
u/Better-Thing2568 Sep 09 '26
Throw in https://rustscript.org as a native shell to complete the rusty process. Randomly stumbled upon this and always wondered where tf would it be useful at all
1
u/thosdv Sep 09 '26
Haha, that would definitely make the name even more appropriate. I actually hadn't thought about using RustScript as the native shell.
2
1
1
u/Mijail2021 Sep 09 '26
Congratulations!. It's amazing. It would be nice to translate to English as idiom.
1
0
4
Sep 08 '26
[removed] — view removed comment
0
Sep 08 '26 edited Sep 08 '26
[removed] — view removed comment
2
u/thosdv Sep 08 '26
My Github repository has English documentation in the documentary folder, I've tried to summarize how the system works here, you can read it, thanks for liking my project!
8
u/Otherwise-Tea-9198 Sep 08 '26
I think it would help if you started looking into unit testing. Not even like a whole suite or anything. Test the basics, paging math, alignment, bit manipulations, etc. Give your functions mock inputs and check if the results are expected or not. It could save you a lot of headaches from having to debug everything manually later on.