>> For the most part, nobody checks. They weighed the cost of those errors
>> against the potential performance loss and decided they would prefer to
>> go fast.
>
> In C the checking is just too ugly without operator overloading. In C++ you
> can make it look nice, but it's a lot more expensive than it could be if you
> had compiler support, I expect. Even so, in the browser we write a lot of
> checking code. Other browsers do too.

I came across Tim Sweeny's POPL presentation[1] again today and
spotted page 30 where he claims 50% of the bugs in AAA games come
from:

- array bounds
- deref of null pointers
- integer overflow
- accessing unintialized vars

http://www.st.cs.uni-saarland.de/edu/seminare/2005/advanced-fp/docs/sweeny.pdf

jack.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to