Linux will support the Rust programming language in its kernel from version 6.1.
Rust Programming Language To Land in Linux Kernel 6.1 : Read more
Rust Programming Language To Land in Linux Kernel 6.1 : Read more
The scheduled forum maintenance has now been completed. If you spot any issues, please report them here in this thread. Thank you!
C++ is not used in the kernel, because it's unnecessarily complex and ambiguous.Why did Linus approve of integrating RUST inco the Linux Kernal?
Can anybody tell me why?
I'm perfectly fine with C/C++ as the main languages for the Linux Kernal
I know RUST is a C/C++ relative, but it's like that weird cousin.
Has RUST been tested properly for security issues?
Interesting take. In all the discussion and debate I've read about this on Linux-focused forums, I've not seen such claims.As a long-time kernel developer and hacker I can tell you without any shadow of a doubt that Rust is being added to create more attack surface. Gotta have those back doors. No better place than someplace "safe". Seriously, have you looked at real Rust code? Absolutely the antithesis of the "KISS PRINCIPLE". This is bad news for linux.
There was never any C++. Linus is famously opposed to it. Until earlier this year, the kernel was C89 (with GNU extensions). They recently upped it to C11 (with GNU extensions). The Rust support is limited to a very small portion of it, for now.I'm perfectly fine with C/C++ as the main languages for the Linux Kernal
Safety & security are its main selling points. If you're interested, I'd encourage you to read up on it.Has RUST been tested properly for security issues?
There were objections to it, but I think that doesn't do them justice. Suffice to say that C++ has had a long history, and it still has some reputational damage from its earlier days. I think that colored the opinions of some kernel developers who didn't personally have much experience with it.C++ is not used in the kernel, because it's unnecessarily complex and ambiguous.
Right, because the world learned nothing about writing software since the 1970's!It C for kernel and I would like it to STAY that way
Why did Linus approve of integrating RUST into the Linux Kernal?
Can anybody tell me why?
I'm perfectly fine with C/C++ as the main languages for the Linux Kernal
I know RUST is a C/C++ relative, but it's like that weird cousin.
Has RUST been tested properly for security issues?
I think the reason some people feel threatened by Rust is simply resistance to change. Linux has used C for the past 30+ years, so why change it now? There's always a risk involved in any change. If you're happy with Linux as it is, then you probably don't feel you have much to gain by it. That could make the prospect of change seem scary to some.The answer to your question (why?) is that there is no answer.
- The RUST threat (why?)
C++ has in-part gotten worse over the years. Newer does not imply better.There were objections to it, but I think that doesn't do them justice. Suffice to say that C++ has had a long history, and it still has some reputational damage from its earlier days. I think that colored the opinions of some kernel developers who didn't personally have much experience with it.
The other thing about C++ is that it's been fairly polarizing. Those who still use pure C have likely made a conscious choice to resist C++, making it a harder sell for getting them to adopt it. Anyway, it's a moot point (for the Linux kernel, anyway). It looks like they successfully fended off C++ and its evolutionary path will now potentially be a Rusty one.
What I take issue with is characterizing C++ as "ambiguous", though I'd have to agree that it has a lot of complexity (or richness, as some may choose to characterize it).
It has received a ton of nice refinements and enhancements, in the past decade. Some are more worthwhile than others, and some do provide new opportunities for abuse.C++ has in-part gotten worse over the years. Newer does not imply better.