4 ms·
> Well, maybe that's exactly what should happen. Maybe rust should have never been allowed in the kernel in the first place. Can you clarify these two sentence
by stavros 2y ago
> Well, maybe that's exactly what should happen. Maybe rust should have never been allowed in the kernel in the first place.
Can you clarify these two sentences? You say there should be a memory-safe kernel, and then you say Rust should never have been allowed, which is the opposite.
- PhilipRoman 2y agoThat memory safe kernel doesn't necessarily have to be Linux itself.
- simion314 2y agoSame opinion here, have all this giant proRust energy and put it behind a few Rust kernels, combining the Rust super powers with latest kernels architectures and have at least one Rust kernel that is not UNIX but something super modern.
- lifty 2y agoThere is Redox but adoption and traction is minimal. But these things take time so maybe it will become popular in the future.
- simion314 2y agoI would have expected more then one Rust kernels. It kind of seems that Rust community is missing the ability or the desire to implement a kernel and would like the Linux kernel devs to do the work for them.
- steveklabnik 2y agoThere are tons of embedded kernels, Android uses Rust in their Linux, Windows already ships Rust in their kernel. Just because someone mentions one project doesn’t mean it’s an exhaustive list.
- simion314 2y agoI mean notable projects, I do not consider toy projects in this. Just because someone pushed some Rust into a kernel it does not make that kernel a Rust kernel, this is the issue with Rust community , hyping the fact that some devs managed to pushed a few lines of Rust in some kernel as some big victory. Even Mozilla gave up on making a browser in 100% Rust, it seems that rewriting in Rust is not that easy and people like to talk then do the work.
- steveklabnik 2y agoI'm not talking about toy projects. I'm talking about real, used in production kernels. One of those embedded ones is used by my employer, for example. > people like to talk then do the work. There are tens of millions (I'm being conservative here, not sure I'd claim 100M) of Rust code running in production, at many very large tech companies. I feel like you have an opinion and are trying to fit the facts to it, rather than the other way around.
- simion314 2y agoSo why are you naming that non toy kernel your company uses in many devices in production? I did not say that there are not tons of millions of Rust lines of code used in production, I wish there would be a modern kernel for PCs not some micro/nano kernel for some board. I see it a big waste to push Rust into Linux or Windows kernels instead of those competent developers writing that new modern kernel, it feels like they are forced to work on Linux/Windows so they want to have fun with Rust at work. If Rust is so superior then you just need to start the kernel, prove is super fast and super safe and Big Tech will put the money so they can use it on their servers, Like why would Netflix not use the super kernel written in Rust ?
- steveklabnik 2y agoOurs is https://hubris.oxide.computer/ https://hubris.oxide.computer/, used for various parts of our product, namely the root of trust and service processor. Other examples: https://tockos.org/ https://tockos.org/ & https://oxidos.io/ https://oxidos.io/ "just" writing a production-grade Linux equivalent would take decades. Some people are working on such projects, but those will take a long time, if ever, to mature, whereas improving Linux means making positive change today. Both things can be pursued in parallel, by different people. It's not an either/or.
- itishappy 2y agoIt might seem like that if your only exposure to Rust is the comment you replied to. https://github.com/flosse/rust-os-comparison https://github.com/flosse/rust-os-comparison
- deleted 2y ago[deleted]
- thinkmassive 2y ago> He talks of a new memory safe kernel disrupting Linux the way Linux disrupted others. So the next paragraph means: > Maybe rust should have never been allowed in the [Linux] kernel in the first place.
- Suzuran 2y agoWhat they're getting at is that it probably would have been better if the Rust people had started their own kernel project, cherry-picked the pieces of Linux they wanted, and then made their own new thing without three decades of obsolete Unix/Linux baggage. This would mean they could spend their time actually writing software and and less time trying to convince a bunch of C programmers that their time is at an end and their influence is counterproductive.
- steveklabnik 2y agoDescribing it as “the Rust people” as though they are separate from the a Linux project is a rhetorical sleight of hand to imply some sort of outside invasion. These are a Linux kernel people who want to use Rust. Writing a new kernel would be fundamentally different than working on Linux. Also, they are “writing software,” and have been for a long time now. This isn’t just some random arguing on mailing lists, this is actual patches, with folks like Asahi and Android writing real meaningful drivers on top of it.
- Suzuran 2y agoThey are separate from the other kernel developers, but not in the negative way you seem to want to assign to me. They aren't an outside invasion, they are a cultural revolution. They may want to work on Linux but it's clear that the rest of the Linux developer community does not want to allow it, for reasons you are free to interpret as positive or negative as you see fit. They want to write software, and they are getting somewhere, but they are restricted by the attitudes of the rest of the Linux kernel people fighting against them, so they are sucked into constant flamewars and divisive infighting. All just so they can say what they are working on is "Linux". At the end, the question must be asked whether or not Linux and its decades of Linux/Unix baggage are worth holding back the progress represented by a kernel that is Rust from top to bottom, and written with safety and security as its top priorities from day zero instead of decades after.
- pjmlp 2y agoTockOS, Redox, Hubris,... Window GDI regions, CoreWrite, Drivers SDK Android Copilot+ PC firmware
- ragebol 2y agoMeaning: Maybe there should be a competitor to Linux written in Rust BTW: There are a few Rust OS kernels, but none of those have the popularity of Linux of course.
- pjmlp 2y agoLike something for mobile phones using Rust alongside a managed runtime?
- ragebol 2y agoWould be interesting, maybe name it after a color... Can't find the name of that now. But there's also RedoxOS and probably several more.
- steveklabnik 2y agoHe's talking about Android, not Fuchsia.
- pjmlp 2y agoIndeed.