4 ms·
That is so good to hear. I feel Rust support came a long way in the past two years and you can do a functional Rust kernel module now with almost no boilerplate
by weinzierl 11mo ago
That is so good to hear. I feel Rust support came a long way in the past two years and you can do a functional Rust kernel module now with almost no boilerplate.
Removing the "experimental" tag is certainly a milestone to celebrate.
I'm looking forward to distros shipping a default kernel with Rust support enabled. That, to me, will be the real point of no return, where Rust is so prevalent that there will be no going back to a C only Linux.
- pta2002 11mo agoA few distros already do that. Of the top of my head, both NixOS and Arch enable the QR code kernel panic screen, which is written in Rust. Granted, those are rather bleeding edge, but I know a few more traditional distros have that enabled (I _think_ fedora has it? But not sure).
- embedding-shape 11mo ago> both NixOS and Arch enable the QR code kernel panic screen Interesting, I use both (NixOS on servers, Arch for desktop) and never seen that. Seems you're referring to this: https://rust-for-linux.com/drm-panic-qr-code-generator https://rust-for-linux.com/drm-panic-qr-code-generator (which looks like this: https://github.com/kdj0c/panic_report/issues/1 https://github.com/kdj0c/panic_report/issues/1) Too bad NixOS and Arch is so stable I can't remember the last time any full system straight up panicked.
- pta2002 11mo agoYep, that's what I'm referring to. For now there aren't many popular drivers that use Rust, but there are currently 3 in-development GPU drivers that use it, and I suspect that when those get merged that'll be the real point of no return: - Asahi Linux's driver for Apple GPUs - https://rust-for-linux.com/apple-agx-gpu-driver https://rust-for-linux.com/apple-agx-gpu-driver - The Nova GPU driver for NVIDIA GPUs - https://rust-for-linux.com/nova-gpu-driver https://rust-for-linux.com/nova-gpu-driver - The Tyr GPU driver for Arm Mali GPUs - https://rust-for-linux.com/tyr-gpu-driver https://rust-for-linux.com/tyr-gpu-driver I suspect the first one of those to be actually used in production will be the Tyr driver, especially since Google's part of it and they'll probably want to deploy it on Android, but for the desktop (and server!) Linux use-case, the Nova driver is likely to be the major one.
- jabl 11mo agoI believe Google has developed a Rust implementation of the binder driver which was recently merged, and they are apparently planning to remove the original C implementation. Considering binder is essential for Android that would be a major step too.
- jackokring 11mo agoI can confirm that the ChromeOS debian container now has defaulted to turn off GPU acceleration, perhaps to turn on other acceleration on this Mali.
- amypetrik8 11mo ago[flagged]
- udev4096 11mo agoArch never failed me. The only time I remember it panicked was when I naively stopped an upgrade in the middle which failed to generate initramfs but quickly fixed it by chroot'ing and running mkinitcpio. Back up in no time
- stusmall 11mo agoYou can force a panic with echo c | /proc/sysrq-trigger
- krick 11mo agoThis is so cool! I love things like that, it feels like fresh air after years and years of anachronistic retro-vibes that seem to be a part of C-programming culture.
- rustoleum69 11mo ago[flagged]
- TazeTSchnitzel 11mo agoBecause someday the programming state of the art must advance beyond 1970, and someday we must stop introducing new memory safety bugs that cause horrific vulnerabilities, and for kernel code we don't have the luxury of recompiling everything with garbage collection turned on as a band-aid for C's incurable defects.
- bgwalter 11mo agoThe Unix/C people wrote their own kernel in the 1970s instead of invading an existing one.
- GuB-42 11mo agoWill it be possible until Rust gets full GCC support, with all its platforms?
- tremon 11mo ago> I'm looking forward to distros shipping a default kernel with Rust support enabled What does this mean? The kernel has no specific support for Rust userspace -- the syscall API does not suddenly change because some parts of the kernel are compiled with rustc.
- steveklabnik 11mo agoThey aren’t talking about userspace. As I understand it, the kernel has a flag, no by default, to enable building rust code as part of the kernel. They’re saying they’d like to see a distributed choosing to default this flag to yes for the kernels they build.
- mos87 11mo agoThey.
- steveklabnik 11mo agoI'm sorry, what?
- EMM_386 11mo agoI think Fedora 43 is compiled with CONFIG_RUST=y.
- mos87 11mo agoThis is genuinely funny. In a dark way but still made me chuckle. Thanks.