Linked by Thom Holwerda on Sun 26th May 2013 18:48 UTC
OSNews, Generic OSes "A tiny 32 bit kernel written in Rust. I was inspired to download Rust and try to do this after seeing zero.rs - a stub that lets Rust programs run almost freestanding. It paints the screen bright red and then hangs. That's it."
Permalink for comment 563005
To read all comments associated with this story, please click here.
RE[7]: I clicked it, I liked it
by moondevil on Tue 28th May 2013 07:48 UTC in reply to "RE[6]: I clicked it, I liked it"
moondevil
Member since:
2005-07-08

I disagree with that conclusion. What OSs mainly written in C or C++ show is that it is possible to write most of an OS' logic in another programming language, and only keep Assembly for the few operations that actually access hardware directly. Sure, these Assembly parts are vital, but so is the logic code: it is where all the interesting stuff is decided, and what differentiates one OS project from another one.


And Object Pascal, Modula-2, Ada, ...

Of course, we can argue that some languages are better-suited for OS development than others. As an example, any language with heavy runtime requirements, or nondeterministic performance due to garbage collection, is probably a very poor fit unless such mechanisms are optional as in C++.


10 years ago no one would believe you could do something like Unreal in JavaScript.

I think it is also a question how much the industry is willing to invest in such topics.

Also, the fact that he has to define abort, memcmp, memcpy, malloc and free for the code to compile worries me. It means that some part of the OS binary somewhere requires these primitives, and will cause a random crash if it ever attempts to run them. But perhaps that's a result of someone not properly reading his compiler's manual...


I think he just had them as stubs, because it was just a proof of concept. Of course in a real kernel similar functions need to be defined.

Reply Parent Score: 2