3 ms·
Not OP but I'm waiting for Rust support to be finished before I look at kernel development. Don't have any interest in writing C.
by Gigachad 4y ago
Not OP but I'm waiting for Rust support to be finished before I look at kernel development. Don't have any interest in writing C.
- caskstrength 4y agoEven in best case scenario Rust code will be confined to individual subsystems and drivers for a very long time. And even in these subsystems you will probably still have to interact with a lot of C code from shared data-structures in other subsystems.
- xiphias2 4y agoMost of Linux kernel is drivers, so if new drivers can be written in Rust, it's a huge win in safety for the whole world.
- ploxiln 4y agoHonestly this is a bit of a fantasy. If you love Rust and hate C, and haven't looked into kernel development before ... it's a whole different ball-game than user-space Rust. With a variety of real-world hardware, and the complexity of modern CPUs, and demands of a variety of complex user-space software, you just don't have the "guarantees" and conveniences you want, at this layer. The hardware does what it does and you just have to deal with it. User-space C code can be way easier to reason about. For a small taste see https://lkml.org/lkml/2022/9/19/1105 https://lkml.org/lkml/2022/9/19/1105
- Ar-Curunir 4y agoYes, but dealing with low-level stuff in Rust is going to be easier than doing that in C. See for example the blog post by Asahi Lina talking about how it was easier to program the M1 GPU driver in Rust than it would have been in C.