3 ms·
Perhaps, but I often know via information not available to the compiler (it might be to a SPARK proof) that overflow won't happen and I don't want to check for
by bluGill 6y ago
Perhaps, but I often know via information not available to the compiler (it might be to a SPARK proof) that overflow won't happen and I don't want to check for it.
- deleted 6y ago[deleted]
- nicoburns 6y agoThat option's available in Rust on a per opration basis if you want it, it's just not the default
- MaxBarraclough 6y agoProgrammers can't be trusted to do this kind of free-form reasoning correctly, as attested by the unending stream of security vulnerabilities arising from undefined behaviour in C and C++ codebases. The push for safe languages is motivated by pragmatism, not theoretical purity.
- bluGill 6y agoThe push back that performance matters in the real world still exists. I want a secure language, but I don't have enough spare CPU for some
- MaxBarraclough 6y agoThe performance of modern Rust is competitive with C++.
- bluGill 6y agoWhich is why I told my boss I want some time to play with rust to see how it works in our real world.