Re:Writing an OS in Rust: Remap the Kernel
by l00mer on Friday January 01, 2016 @04:11PM
(#10823472)
Thank you for writing this series. I love learning the high-level OS concepts alongside real, working code. It's like proof that what you're talking about actually works!
Doing it in a fresh, up-and-coming language like Rust is icing on the cake. Keep it up!
Re:Writing an OS in Rust: Remap the Kernel
by phil-opp on Friday January 01, 2016 @07:41PM
(#10824357)
I will! Thanks for the kind words :)
Re:Writing an OS in Rust: Remap the Kernel
by mitchtbaum on Friday January 01, 2016 @09:18PM
(#10824649)
> who would want to write an OS in Rust?
It looks like there are a lot of fast moving projects on this now[0], namely Redox[1], and a lot of research and study demo codes. Looking forward to seeing how these efforts come together.
Re:Writing an OS in Rust: Remap the Kernel
by lachgr on Friday January 01, 2016 @04:34PM
(#10823581)
Seeing this for the first time today and it looks great! You explain things in depth and also focus on the tools that make it work (not only the pure Rust code). Keep it up, learning Rust is on my todo list and this seems a great project to use it.
Re:Writing an OS in Rust: Remap the Kernel
by phil-opp on Friday January 01, 2016 @08:04PM
(#10824422)
Thanks :) Yes, Rust is a great language for kernel development. I can really recommend learning it this way (I've done the same).
Re:Writing an OS in Rust: Remap the Kernel
by abrodersen on Friday January 01, 2016 @03:19PM
(#10823199)
Thank you for doing this! I find this kind of stuff very entertaining. I also hope to try writing my own kernel some day, and this blog series will be a huge help when doing so
!
I started it because I was unhappy with the existing documentation. Most resources were mainly for 32-bit and there was hardly any documentation about Rust OS development. One day I decided to do a clean rewrite of my experimental rust kernel and had to look up all the required information again (since I had forgotten the details). So I decided to create the missing documentation myself and write some tutorials about booting a Rust kernel.
I wrote the first posts over the summer and it was kind of fun. I never wrote a blog post before and English is not my native language, so it was pretty challenging. I spent a lot of time rewriting and improving them until I was more or less satisfied. Eventually I had the guts to post it in the rust subreddit. I never expected that it would be useful for many people (who would want to write an OS in Rust?), but it totally took off. Someone posted it on hacker news and it even was the top post for a short time. I was completely stunned :D.
I really love writing these posts. It takes much time but it's a great way to really understand the code since you need to explain every detail. It also helps to make the code as simple and straightforward as possible.
I still don't know where this will lead. But I will keep on writing as long as people want to read it :). For the short term the plan is to explore interrupts and to add keyboard support. After that, I'm open to new ideas :).