4 ms·
Some architectures are probably going to be excluded since GCC supports more architectures than LLVM, which is what Rust uses as its compiler backend. I'd rath
by rvz 5y ago
Some architectures are probably going to be excluded since GCC supports more architectures than LLVM, which is what Rust uses as its compiler backend.
I'd rather see a new kernel optimised and written in Rust from scratch rather than dragging the legacy skeletons around and also bringing the vulnerabilities with us.
- henrikeh 5y agoIn the post they mention two efforts to use GCC for compiling Rust.
- Denvercoder9 5y ago> I'd rather see a new kernel optimised and written in Rust from scratch That'll take a momentous amount of effort and it'll take 20 years to get close to the adoption Linux has today. I'd rather see if we can improve Linux in that timespan.
- paavohtl 5y agoWhich of those architectures are relevant in 2021?
- henrikeh 5y agoGiven that they devote a section of the notes to discussing efforts in supporting multiple architectures and, explicitly, GCC, you'd figure that some do find those efforts are worthwhile and relevant.
- rcxdude 5y agoFor this reason rust is currently being proposed to be used for drivers and other code which is already platform or architecture specific, not the core, so as not to affect the support for these architectures. When rust has a mature enough GCC backend then this won't be an issue and it may be possible for it to move into core (though this would still be a big step and likely quite a while away, for example because it would introduce a hard dependency on a rust compiler).
- mkl 5y agoThey're working on that: > On compilers, we would like to mention all the work that has been going in GCC Rust (a GCC frontend for the Rust language) and `rustc_codegen_gcc` (a `rustc` backend for GCC). The latter now passes all `core` tests, and the former is now working on traits. We continue to track their progress as they may become the best way to have GCC-built kernels with Rust support enabled. Writing a new kernel with all the capabilities of Linux is an absolutely enormous undertaking, billions of dollars worth: "it would cost approximately $14,725,449,000 dollars [...] to rewrite the existing code." -- https://en.wikipedia.org/wiki/Linux_kernel#Estimated_cost_to_redevelop https://en.wikipedia.org/wiki/Linux_kernel#Estimated_cost_to...
- tester34 5y ago> current US National average programmer salary 75k let's outsource it, so we can cut the cost by half, at least I just saved 7 bilion dollars and probably need to become manager
- mkl 5y agoYes, it's very rough, that's why I just said "billions". Not a project to take on lightly, anyway.
- rswail 5y agoThere's a kid in university somewhere about to send an email that says "I've written a version of Linux that runs on my rasberry pi, it's not going to be big and fancy like Linux, but I've written it in Rust and hope people like it." 30 years later, there'll be a kid in university somewhere about to send a thoughtmail that says "I've written a version of..."
- grumblenum 5y ago>I'd rather see a new kernel optimised and written in Rust from scratch rather than dragging the legacy skeletons around and also bringing the vulnerabilities with us. There is Redox, which was intended to be practical, but I'm not aware of much public interest in that. Phillip Oppenheimer blogged about one too, I think, but that's explicitly academic.
- grumblenum 5y agoI think it’s pretty funny that you can farm up votes by just mentioning a project in rust, with knows substantive information provided about its value or quality. I wouldn’t consider either of these things more than a toy.