Thor – A minimalistic operating system in assembly and C++
1–10 of 152 posts
Re: Thor – A minimalistic operating system in assembly and C++
#2One day, when I finally have some free time, I am totally going to do this myself.
---
[1] https://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures...
Re: Thor – A minimalistic operating system in assembly and C++
#3But Linus said...
Re: Thor – A minimalistic operating system in assembly and C++
#4An OS in C++? But Linus said... http://harmful.cat-v.org/software/c++/linus
Re: Thor – A minimalistic operating system in assembly and C++
#5An OS in C++? But Linus said... http://harmful.cat-v.org/software/c++/linus
Re: Thor – A minimalistic operating system in assembly and C++
#6Re: Thor – A minimalistic operating system in assembly and C++
#7An OS in C++? But Linus said... http://harmful.cat-v.org/software/c++/linus
I find that every abstraction level makes me more unhappy and somehow lost..
So yes, I do believe Linus knows something and for sure he's not trying to fool himself. When you really try to build something to actually be used, all those abstractions will bite you..
Re: Thor – A minimalistic operating system in assembly and C++
#8Re: Thor – A minimalistic operating system in assembly and C++
#9Earlier quoted context omitted.
That's Linus's opinion, yes. Not everyone has to share it.
It's a really annoying widespread opinion. I've been looking for people who really do write OSes in modern C++.
I'm the author of the mentioned project. It's indeed a very annoying opinion. Although there are indeed some difficulties in writing an operating system and quite some runtime support to implement, I would say that it's worth it only to have a more powerful language. I'd rather use a language that I really like rather than be forced to use one I don't really care about.
I cannot say that C++ is the best language to develop an operating system, but I would definitely say that it's possible if you really know the language. And you don't have to use the complete language (I didn't enable exceptions nor RTTI in my OS).
Re: Thor – A minimalistic operating system in assembly and C++
#10Earlier quoted context omitted.
That's Linus's opinion, yes. Not everyone has to share it.
It's a really annoying widespread opinion. I've been looking for people who really do write OSes in modern C++.
From the CppCon 2016 presentation description:
"Early in the design process we made a hard choice; no C interfaces and no blocking POSIX calls. We’ve done everything from scratch with modern C++ 11/14 - Including device drivers and the complete network stack all the way through ethernet, IP and ARP, up to and including UDP, TCP and recently also an http / REST API framework. To achieve maximum efficiency we decided to do everything event based and async, so there's plenty of opportunities to use lambdas and delegates." [1]
[1] https://cppcon2016.sched.org/event/d30a43dae4a490dce81a3dfc6...