Is it time to rewrite the operating system in Rust? [slides]
11–20 of 144 posts
Re: Is it time to rewrite the operating system in Rust? [slides]
#12Re: Is it time to rewrite the operating system in Rust? [slides]
#13Re: Is it time to rewrite the operating system in Rust? [slides]
#14no.
I was expecting to see this type of response. I don't program at low levels but it seems like this would be the responding answer. Kernel programmers would be using something else if that's what they wanted to use. Decades of experience and hard learnt lessons down the drain.
Less “down the drain,” possibly more close to “baked directly into the tools we use.”
Re: Is it time to rewrite the operating system in Rust? [slides]
#15Also maybe you could have a less complicated memory manager as you can deal with allocations statically.
Re: Is it time to rewrite the operating system in Rust? [slides]
#16Earlier quoted context omitted.
I was expecting to see this type of response. I don't program at low levels but it seems like this would be the responding answer. Kernel programmers would be using something else if that's what they wanted to use. Decades of experience and hard learnt lessons down the drain.
Also, if you can abstract away at a sufficiently low level why not just do it in C where there's already a generation of experience and familiarity?
Re: Is it time to rewrite the operating system in Rust? [slides]
#17Re: Is it time to rewrite the operating system in Rust? [slides]
#18These will of course still be around for the foreseeable future (i.e. decades). At the same time, we are seeing Rust pop up in a lot of places that used to be the exclusive domain of C. People are already re-implementing libraries, popular command line tools, etc. A lot of these implementations have clear merit in the sense that they are faster, safer to use, easier to scale, maintain, etc.
IMHO it is just a matter of time before vendors start providing e.g. drivers written in Rust for their hardware. I could see linux evolve to a point where integrating drivers like that is both possible and common. Once that happens, it will be a hybrid kernel effectively. Rust is not the only thing moving that direction; wasm is also going that direction. People are talking about running that in the kernel. And of course Rust runs on top of that as well. So one outcome would be a lot of Rust code running in a wasm sandbox on top of legacy kernels.
Re: Is it time to rewrite the operating system in Rust? [slides]
#19These slides are quite high-level, so I've got to ask: what's the expected benefit of using Rust to implement a kernel? I somehow thought that nearly all interesting concurrency there would not fit into the paradigm of exclusive ownership. And if we are preaching for programming in unsafe Rust, then doesn't the message become less compelling?
Re: Is it time to rewrite the operating system in Rust? [slides]
#20These slides are quite high-level, so I've got to ask: what's the expected benefit of using Rust to implement a kernel? I somehow thought that nearly all interesting concurrency there would not fit into the paradigm of exclusive ownership. And if we are preaching for programming in unsafe Rust, then doesn't the message become less compelling?
This would be, to put it mildly, quite difficult. Even then, unsafe code is sometimes not written correctly which brings the whole thing down.
I, personally, still think it's worth it. I think efforts like Redox OS can teach us a lot about what we're doing and offer a chance to collapse some of the layers of cruft existing OSes have accumulated.