logoalt Hacker News

samdoesnothingyesterday at 6:42 PM2 repliesview on HN

> All bugs is typically a strawman typically only used by detractors. The correct claim is: safe Rust eliminates certain classes of bugs. I'd wager the design of std eliminates more (e.g. the different string types), but that doesn't really apply to the kernel.

Which is either 1) not true as evidenced by this bug or 2) a tautology whereby Rust eliminates all bugs that it eliminates.


Replies

drob518yesterday at 7:17 PM

I think the answer is #2, the tautology. But just because it’s a tautology doesn’t mean it’s a worthless thing to say. I think it’s also true, for instance (a corollary), that Rust eliminates more types of bugs than C does. And that may be valuable even if it does not mean that Rust eliminates all bugs.

PartiallyTypedyesterday at 6:46 PM

>> safe Rust

> 1) not true as evidenced by this bug

Code used unsafe, putting us out of "safe" rust.