3 ms·
Rust is still a research language. And using more than one language for a kernel/drivers, is that really a good idea? Anyone trying to fix/debug things in the k
by amelius 7y ago
Rust is still a research language. And using more than one language for a kernel/drivers, is that really a good idea? Anyone trying to fix/debug things in the kernel now has to learn Rust.
- adwn 7y ago> Rust is still a research language. It's not. Rust is being used for production systems by several companies, so it hardly counts as a "research language". > Anyone trying to fix/debug things in the kernel now has to learn Rust. Wrong again. If a driver for some SD card reader is written in Rust, then you won't come in contact with this if you're working on the IPv6 subsystem.
- masklinn 7y ago> It's not. Rust is being used for production systems by several companies, so it hardly counts as a "research language". I don't know that Rust has ever been a research language in the first place, maybe they mean "in development", as in pre-stability?
- fulafel 7y agoThere's some history in this Twitter thread: https://twitter.com/graydon_pub/status/958192076209897472 https://twitter.com/graydon_pub/status/958192076209897472 The 2005-ish "one man side project" and "searching for its niche" phases do sound researchy. Interesting quote: "Funny enough, the zero cost obsession really wasn't me. I was ok paying some runtime costs. We just got overrun by C++ folks :P"
- gnode 7y agoI don't think it's fair to say Rust is still a research language any more than it's fair to see the ongoing evolution of C++ makes it a research language. Rust is being used to engineer production software (parts of Firefox, Tor and Microsoft Azure), and its development is aimed mostly at practical and ergonomic issues, rather than experimental or esoteric features. I agree that there's a cost to introducing a new language to a codebase. On the other hand, there's a cost to being stuck with only C, which manifests as security vulnerabilities and high cognitive overhead for want of better abstractions. I believe the Linux maintainers are taking a sensible and conservative stance here in allowing use of Rust, but not allowing Linux to depend on it.
- geocar 7y ago> I don't think it's fair to say Rust is still a research language any more than it's fair to see the ongoing evolution of C++ makes it a research language I would accept that. The idea that C++ code from ten years ago can't always interoperate with C++ code written today is indeed a problem, but I think it's a very different problem that you're running into if you're trying to use Rust applications and libraries built ten years ago. > there's a cost to being stuck with only C, which manifests as security vulnerabilities and high cognitive overhead for want of better abstractions There's also a cost with abstractions. People who use Rust thinking it has "zero-cost abstractions" should probably get help crossing the street as well. > I believe the Linux maintainers are taking a sensible and conservative stance here in allowing use of Rust, but not allowing Linux to depend on it. 100% agreed. Rust may indeed be the future, but the only way we'll know for sure is if we try it.
- pjmlp 7y agoC and C++ were also being used in production with partial support for K&R, ISO C and C++ ARM. Hardly any different.