|
|
Log in / Subscribe / Register

1000x dubious

1000x dubious

Posted Nov 14, 2025 18:37 UTC (Fri) by Vorpal (guest, #136011)
In reply to: 1000x dubious by randomguy3
Parent article: Rust in Android: move fast and fix things (Google Security Blog)

The point about lack of statistical rigor is fair, and unfortunately all to common in comp sci in general in my experience. Compared to medical or physics studies, even peer reviewed compsci papers are often very lacking in this area.

However, regardless if the true ratio is 100x or 10000x or somewhere within that span, it seems fairly certain it is *far* better than the situation in C or C++ code.

My personal main reason for coding in Rust though is not the reduced number of bugs (though that certainly helps). The main reason for me is that it making programming fun again.


to post comments

1000x dubious

Posted Nov 14, 2025 20:54 UTC (Fri) by excors (subscriber, #95769) [Link]

It does seem statistically valid, from what I vaguely remember of statistics. They say C++ has an error rate of 1e-3 (per LOC), and Rust has an error rate at least 1000x better, i.e. better than 1e-6. Assuming a binomial distribution with N=5e6 and p=1e-6, that gives a 96% probability of getting > 1 error in a 5MLOC sample of Rust.

They observed exactly 1 error, which is unlikely (to a statistically significant level) under that assumed 1e-6 error rate, so it's fair to reject the null hypothesis that the error rate is exactly 1e-6 and therefore claim it's actually better than 1e-6 (which is precisely what they say).

They couldn't make the same claim for e.g. 0.5e-6, because their observation would no longer be statistically significant. So their actual claim is the best it can be.

Since they don't show their working, maybe they just picked "1000x" because it sounded like a nice round number, but it does coincide with that slightly more rigorous analysis. (...assuming I've calculated it correctly)

1000x dubious

Posted Nov 14, 2025 23:58 UTC (Fri) by Wol (subscriber, #4433) [Link]

> The point about lack of statistical rigor is fair, and unfortunately all to common in comp sci in general in my experience. Compared to medical or physics studies, even peer reviewed compsci papers are often very lacking in this area.

Due in part to the attitude (actually common across a lot more than comp sci) of dismissing personal experience as "mere anecdotes".

I'm not saying those experiences are correct, but they are data points. And they need to be explained. If you don't at least take someone else's personal experiences seriously, you are living confirmation bias in action. If you don't believe it, you need to explain it away.

Which is why, if you go back over my database debates, I've always tried to argue in terms of facts (as in observed states), logic and maths. Not always successfully I expect, but who always is?

(But bear in mind, comp sci is - imho - much more maths than science. As such, statistical rigour is far less important. You use stats to tie observation and theory together, and given that comp sci is much more theory than observation, where's the need for stats?)

Cheers,
Wol


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds