[Media] Started working on an OS (MagicalOS) from scratch 2 months ago - today it can run DOOM!

816 points thatmagicalcat 76 comments
[Media] Started working on an OS (MagicalOS) from scratch 2 months ago - today it can run DOOM!

I started working on this little project on 9th March this year. It's been an incredible journey!

It started with a question of "how hard could it be?" and just yesterday I finally hit the ultimate milestone: IT RUNS DOOM!

Details:

  • Github repo: https://github.com/thatmagicalcat/magicalos
  • Architecture: x86_64
  • Language: Rust (with two C dependencies)
  • Bootloader: Limine (initially i was using GRUB/multiboot2 and later i realized it is such a pain in the back)
  • C standard Library: mlibc

building an OS in Rust feels like having a superpower, cargo is so awesome! and the amount of "stupid" bugs the compiler caught before i even hit the metal is probably the only reason i haven't lost all of my hair yet :p

i even wrote a little async runtime in MagicalOS and the way rust handles concurrency is honestly mind-blowing for me

I already loved rust, but this project made me love rust even more!

I would love to hear your thoughts or answers any questions!