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."
Thread beginning with comment 563002
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[6]: I clicked it, I liked it
by moondevil on Tue 28th May 2013 06:40 UTC in reply to "RE[5]: I clicked it, I liked it"
moondevil
Member since:
2005-07-08

Can you see a pattern here? If the "kernel" wasn't a trivial joke, you'd find Rust being used for glue and not being used for anything that's actually important; especially once you start micro-benchmarking and trying to get performance/scalability close to other OSs.


You mean like C?

Last time I checked you are doing exactly the same, glue between Assembly code that interacts with the hardware.

So; what does this trivial example, with its ~20 lines of Rust and its ~100 lines of assembly, actually show? It shows that assembly is so awesome that it can make Rust "sort of usable". ;)


It shows that Rust also provides a very thin runtime requirements and with a bit of Assembly it is possible to produce executables that execute directly on hardware.

This is no different from many systems that execute directly on embedded hardware without an underlying OS, for example.

It can also be considered the starting point of any OS, if the next Linus now would pick this example and developed it further.

Reply Parent Score: 2