News for hackers. Stuff that matters.
Re:Red Hat to Author New Linux Driver for Nvidia GPUs in Rust by sham1 on Thursday March 21, 2024 @01:29AM (#39775101)
I do somewhat doubt that. `no_std` Rust is still quite different from normal, userspace Rust. You don't get all the fancy libraries or whatever (of course Linus would probably just veto them anyway) and the Linux kernel development model is probably quite different (IIRC no cargo and whatnot).

So… what should we reckon? Would there a difference in getting new developers into `no_std` Rust in the kernel, and how different would that be versus having people learn freestanding C, with all the kernel add-ons and nicknacks?

Re:Red Hat to Author New Linux Driver for Nvidia GPUs in Rust by charlotte-fyi on Thursday March 21, 2024 @02:19AM (#39775373)
`no_std` with `alloc` isn't that different.
Re:Red Hat to Author New Linux Driver for Nvidia GPUs in Rust by leoedin on Thursday March 21, 2024 @02:50AM (#39775519)
Yeah it’s a weird take. The hard part about learning rust is borrow semantics and understanding the kinds of architectures the compiler will and won’t allow.
Re:Red Hat to Author New Linux Driver for Nvidia GPUs in Rust by sham1 on Thursday March 21, 2024 @03:51AM (#39775810)
Well maybe it's just me, but the borrow semantics were never all that bad. Of course there were things that needed to be relearnt, but it's not all that bad all things considered.
Re:Red Hat to Author New Linux Driver for Nvidia GPUs in Rust by SAI_Peregrinus on Thursday March 21, 2024 @01:29PM (#39781703)
Coming from C, the borrow semantics are basically what I try to get anyway, violating them only with suspicion and great care. Rust just makes it easy to check that I didn't screw up what I was already trying to do.
Re:Red Hat to Author New Linux Driver for Nvidia GPUs in Rust by worthless-trash on Thursday March 21, 2024 @02:09AM (#39775308)
Systems programming is always a full step sideways from traditional applications and I do see where you are coming from.

I would still reckon that having familiarity with the standard rust (even with std) will still have more programmers willing to make the leap than learn C for this one project.

I know of less than a handful of C projects starting in 2024, I know there is a bunch in rust , even with no_std.