« first day (4237 days earlier)      last day (710 days later) » 

2:21 PM
0
Q: Why does the Linux kernel not use rust?

Linux loverI have heard that the Linux Kernel uses rust. I don't know much about the programming language except that it has the potential to run faster than C. According to websites Rust is more safe than C because it's compilation process detects errors and imposes some restrictions. However if the compil...

@Kusalananda I had a hopefully non-opinionated answer ready for
I literally was moving my mouse to click on the “Post Your Answer” button when the question was closed :-(
 
@StephenKitt Reopened.
I still fear we'll get opinion-based answers too, but if that happens we'll just protect the question.
 
2:39 PM
@Kusalananda thanks!
 
@StephenKitt Thanks for a good answer to that question.
 
@Kusalananda you’re welcome!
 
 
1 hour later…
3:54 PM
@StephenKitt Though the poster does not specifically ask for it, a description of why one might want to use Rust in the kernel would be of interest. It seems to me a question like that divides naturally into pros vs cons.
Mercurial has been adding Rust in recent years. Or possibly replacing C with Rust. Or both. I'm not sure. Apparently it's much less brittle than C, but has a similar domain applicability. I.e. low level and fast.
 
@FaheemMitha I wanted to avoid that since that’s the sort of content that would lead to opinions; the pros and cons are covered in the linked material
also, many of Rust’s advantages are either already supported by the kernel’s variant of C (but it’s still better to have it in the compiler), or irrelevant for the kernel
 
4:12 PM
funny, I would have claimed that rust is more brittle than the sea, but I'm not a programmer, so I wouldn't know these things :)
 
@StephenKitt Sometimes content does lead to opinions. That's not the end of the world. Hopefully.
 
@FaheemMitha it isn’t, but the question was initially closed as opinion-based so I wanted to stick to facts
 
4:32 PM
@StephenKitt Ah, yes. Opinions. The bug-bear of SE. At least in some places. But there is no test to distinguish between fact and opinion.
 
rust has a test for it
assert_fact!(opinion)
 
5:00 PM
Happy belated birthday @Kusalananda
2
 
 
2 hours later…
7:10 PM
@jesse_b Thanks!
 

« first day (4237 days earlier)      last day (710 days later) »