Earlier quoted context omitted.
I wouldn't be surprised to see zig in the kernel at some point
IMHO Zig doesn't bring enough value of its own to be worth bearing the cost of another language in the kernel. Rust is different because it both: - significantly improve the security of the kernel by removing the nastiest class of security vulnerabilities. - And reduce cognitive burden for contributors by allowing to encode in thr typesystem the invariants that must be upheld. That doesn't mean Zig is a bad language…
Rust in the kernel is no longer experimental
101–110 of 853 posts
Re: Rust in the kernel is no longer experimental
#102Re: Rust in the kernel is no longer experimental
#103Earlier quoted context omitted.
Every system under the Sun has a C compiler. This isn't remotely true for Rust. Rust is more modern than C, but has it's own issues, among others very slow compilation times. My guess is that C will be around long after people will have moved on from Rust to another newfangled alternative.
> Every system under the Sun has a C compiler... My guess is that C will be around long after people will have moved on from Rust to another newfangled alternative. This is still the worst possible argument for C. If C persists in places no one uses, then who cares?
That said, only a handful of those architectures are actually so weird that they would be hard to write a LLVM backend for. I understand why the project hasn’t established a stable backend plugin API, but it would help support these ancillary architectures that nobody wants to have to actively maintain as part of the LLVM project. Right now, you usually need to use a fork of the whole LLVM project when using experimental backends.
Re: Rust in the kernel is no longer experimental
#104I’m curious how they’ll manage long term safety without the guarantees Rust brought. That tradeoff won’t age well.
Re: Rust in the kernel is no longer experimental
#105Earlier quoted context omitted.
OS kernels? Everything from numpy to CUDA to NCCL is using C/C++ (doing all the behind the scene heavy lifting), never mind the classic systems software like web browsers, web servers, networking control plane (the list goes on).
Newer web servers have already moved away from C/C++. Web browsers have been written in restricted subsets of C/C++ with significant additional tooling for decades at this point, and are already beginning to move to Rust.
So, written in C/C++? It seems to me you're trying to make a point that reality doesn't agree with but you stubbornly keep pushing it.
Re: Rust in the kernel is no longer experimental
#106I’m curious how they’ll manage long term safety without the guarantees Rust brought. That tradeoff won’t age well.
(Spoiler alert: Rust graduated to a full, first-class part of the kernel; it isn't being removed.)
Re: Rust in the kernel is no longer experimental
#107I’m curious how they’ll manage long term safety without the guarantees Rust brought. That tradeoff won’t age well.
It's late, but I'm having a hell of a time parsing this. Could you explain what you meant?
(Of course, that's not what's happening at all.)
Re: Rust in the kernel is no longer experimental
#108Earlier quoted context omitted.
It's late, but I'm having a hell of a time parsing this. Could you explain what you meant?
I think they read the title but not the article and assumed Rust was being removed, and (rightfully, if that were true) opined that that was a shortsighted decision. (Of course, that's not what's happening at all.)
Re: Rust in the kernel is no longer experimental
#109Earlier quoted context omitted.
IMHO Zig doesn't bring enough value of its own to be worth bearing the cost of another language in the kernel. Rust is different because it both: - significantly improve the security of the kernel by removing the nastiest class of security vulnerabilities. - And reduce cognitive burden for contributors by allowing to encode in thr typesystem the invariants that must be upheld. That doesn't mean Zig is a bad language…
Pardon my ignorance but I find the claim "removing the nastiest cla ss of security vulnerabilities" to be a bold claim. Is there ZERO use of "unsafe" rust in kernel code??
So while there could definitely be an exploitable memory bug in the unsafe part of the kernel, expect those to be at least two orders of magnitude less frequent than with C (as an anecdotal evidence, the Android team found memory defects to be between 3 and 4 orders of magnitude less in practice over the past few years).
Re: Rust in the kernel is no longer experimental
#110Not a system programmer -- at this point, does C hold any significant advantage over Rust? Is it inevitable that everything written in C is going to be gradually converted to safer languages?
It's a bit like asking with the new mustang on the market, with airbags and traction control, why would you ever want to drive a classic mustang?