3 ms·
> Switching languages requires a full rewrite Not true when those languages are ABI-compatible. E.g. I believe librsvg is introducing small amounts of Rust tha
by lmm 9y ago
> Switching languages requires a full rewrite
Not true when those languages are ABI-compatible. E.g. I believe librsvg is introducing small amounts of Rust that can eventually become a gradual migration.
> it will introduce new bugs as the maturity of the software will plummet because of the rewrite.
Citation needed. I would expect a rewrite guided by an existing implementation (not the same thing as a rewrite aimed at achieving a from-scratch redesign) to result in fewer bugs as it would effectively be equivalent to a full code review, and that's before we take into account the difference-of-language effects.
> As such, new languages are unproven in the security area and there will be security bugs found there as well.
No. There are specific reasons C is so awful; it's not a question of maturity.
> Java and .NET don't have the same issues either but somehow nobody will ask about those :)
People are dumb. There's a popular myth that these languages are inherently slow, which combined with some genuine licensing issues means the OSS community doesn't use them, even though they'd be a perfect fit for OpenVPN-like processes.
> But then again, Rust introduces other bug types for which the future will tell whether they have a security impact or not: https://gankro.github.io/blah/only-in-rust/ https://gankro.github.io/blah/only-in-rust/
No, read your link. Those issues happen only in unsafe code, and at absolute worst mean you're as badly off as you would be in C.
> software like Apache httpd and OpenSSH demonstrates clearly it can be done
Because those programs can go years at a time without a major security vulnerability? Oh wait, no they can't.
Switching languages is absolutely the answer, and the sooner we get over ourselves and get on with it the better.
- laumars 9y ago> Citation needed. I would expect a rewrite guided by an existing implementation (not the same thing as a rewrite aimed at achieving a from-scratch redesign) to result in fewer bugs as it would effectively be equivalent to a full code review, and that's before we take into account the difference-of-language effects. Humans are fallible. Rewriting the code introduces the possibility that the human coding it might make a mistake. This is true even when using existing code as a guide.
- lmm 9y agoTrue as far as it goes, but I would still expect the bugs caught by the rewrite to outweigh the newly-introduced ones most of the time.
- deleted 9y ago[deleted]
- verytrivial 9y agoThis has not been my experience in the last couple of decades.
- lmm 9y agoHow many rewrites-that-involved-no-redesign have you done?
- tinco 9y agoI fully agree with you. Just a small correction on the rust bugs article that was linked: They're Rust bugs because they violate safety of code the compiler thinks is safe, so they could bite normal users. The effect of such bugs is that the programmer operates under a false feeling of security, which is arguably worse than knowing you have to be mindful of security. Which is also why the Rust developers take these bugs very seriously.
- lmm 9y agoSorry yes, what I meant was: they happen only in the presence of unsafe code. Of course the symptom can show up outside and that's one reason they're taken very seriously.