3 ms·
The first version of the PR is a little more honest: https://patchwork.freedesktop.org/series/135886/ https://patchwork.freedesktop.org/series/135886/ > There
by jeroenhd 1y ago
The first version of the PR is a little more honest: https://patchwork.freedesktop.org/series/135886/ https://patchwork.freedesktop.org/series/135886/
> There is no particular reason to do it in rust, I just wanted to learn rust, and see if it can work in the kernel.
Which I think is fairer. Good on him for trying to stay on top of recent developments. With Linux basically supporting Rust now so it's a valid choice, especially for a new component. Plus, it's not like this is an important features, the anti-Rust people can live perfectly fine without QR code crash dumps like they have for decades now.
I think doing this in C is an unnecessary risk (you really don't need all that many raw pointer interactions and shared struct ownership) but the security and stability of this component hardly matters. The kernel is already dead because of a bug or a hardware failure anyway, this is just making the catastrophic failure of the rest of the system a bit prettier.
- meindnoch 1y ago>Good on her for trying "Pronouns: He/Him" https://gitlab.com/kdj0c https://gitlab.com/kdj0c
- jeroenhd 1y agoGood catch, didn't spot that on the freedesktop site and the docs page linked. I've edited my comment. My apologies to kdj0c if he's reading this.
- greatgib 1y ago> > There is no particular reason to do it in rust, I just wanted to learn rust, and see if it can work in the kernel. Good catch the earlier comment, with that I would not even have raise an eyebrow because it is more a motivation that I find valid and not fishy like the post rationalization that is in the original post. That being said, I still find it ridicule the attempt to emphasis on how dangerous it is to do "C code" for the kernel because not memory safe all of that, when you see for how long the kernel exist, was able thrive, with relatively few critical issues in the end compared to most software out there.