Comments by "Anony Mousse" (@anon_y_mousse) on "Rust Is Coming to The Linux Kernel and I'm Not Sure How to Feel" video.
-
To clarify, it's not that C, or for that matter C++, are unsafe languages, rather that too many programmers are unsafe. Rust doesn't actually provide a guarantee about safety, regardless of what its proponents will say, but it makes it slightly more difficult to do certain unsafe things by mistake. However, if you have to use an unsafe keyword, already a design mistake there, then you're going to be without certain protections. If you have to abstract around the use of the unsafe keyword it separates your code in an unnatural way that will make it harder to debug. So either you overuse the unsafe keyword and constructs that go with it, or you abstract. Neither is good, especially at kernel level. What we really need is better programmers who actually understand the underlying hardware and can write safe code. The most prevalent errors that programmers make are ones that are super easy to prevent, regardless of language. At least if you're not a dingus.
11
-
2
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1