News for hackers. Stuff that matters.
Re:Linux kernel in-tree Rust support by geofft on Saturday July 11, 2020 @01:24PM (#23803829)
The D language uses GC, so it's unlikely to be acceptable for the Linux kernel. (That's not to say that you can't write a kernel in D, just that the Linux kernel maintainers don't want to write a kernel that requires GC.)

Rust's ownership model, which allows you to write straightforward, non-leaky, non-use-after-free-filled code without a GC, is quite complex at compile time. It's definitely possible to make it faster, but it's definitely a thing Rust does that D doesn't do.

Re:Linux kernel in-tree Rust support by CountHackulus on Saturday July 11, 2020 @08:43PM (#23807596)
D has a nogc flag that can be used on methods and taints methods down the line. It's pretty neat. I'm a big fan of D, but I still think I wouldn't write a Kernel in D. I find it much more suited to quicker smaller programs, kind of like Python but with better typing. The script support for D is also really neat, and I've used that instead of Perl a few times.
Re:Linux kernel in-tree Rust support by aberba on Wednesday July 15, 2020 @04:15PM (#23851060)
When you turn off D's GC then its no different from C or C++ . So yes, it can be done. At last D conference, someone presented on building kernel drivers in D.
Re:Linux kernel in-tree Rust support by pjmlp on Saturday July 11, 2020 @05:16PM (#23806080)
D is definitely trying to support it as well, how far they will get remains to be seen.