3 ms·
I agree with this for the most part. But just because you use Rust doesn't mean you have no security issues - there are still plenty of ways to go wrong, includ
by eloff 5y ago
I agree with this for the most part. But just because you use Rust doesn't mean you have no security issues - there are still plenty of ways to go wrong, including integer overflow if you're using "as" conversions instead of checked conversions. But there's no doubt it eliminates a whole class of issues and makes others much less likely (and verifiably so.)
For a greenfield project, you shouldn't use C or C++ today, unless you need some huge big C++ library (e.g. game engine).
For sqlite which has 100% branch coverage and is quite well written, I don't think a rewrite makes sense. You'll surely introduce more bugs, including security bugs, than you fix. The cost seems too high. It'd be better to just fix security issues as they come up (and try to clean up bits of code that could be problematic.)
- pdimitar 5y agoI love Rust but I agree with you. For sqlite in particular the argument seems heavily tilted against a rewrite.