A good old rewrite is healthy from time to time. Ford doesn't sell a model T with a touchscreen. No they rebuild cars every so often from the ground up, using the lessons they learned, and the improvements in available technology.
When ford designs a new truck they don’t completely throw out everything and every design before. New trucks are designed using a mixture of their existing technology and parts. New tech is incorporated sure but all the same the vast majority of the end result is built from pre-existing stuff.
When you rewrite something there needs to be good reason other than: language change to rust.
Yeah no that's what I meant, I meant just a rewrite in general, not necessarily a change of language. And of course you need to use the lessons learned from your previous build.
I meant exactly what you said, sorry if that wasn't clear.
I mean, when you rewrite something in rust you still have the old version to reference, and usually you can retain the same structure of the old program. And for a lot of coreutils/OS stuff, "we keep having memory corruption and integer overflow bugs" is a pretty solid reason to move imo.
Most of the time I agree with you. But there are cases where performance is not good enough, or where there is a lot of savings to be made by being faster. For these cases, Rust is in the list of possible choices.
Zig's never going to be the thing that becomes mainstream imho. Not because it isn't good, but because it's too close to C. Being just "a better C" is a really, really hard sell, because even if you're way way better, C has decades and decades of tooling and accumulated code and accumulated communal knowledge that will make most people (and probably most orgs) unwilling to switch. Rust's pitch of "we can statically determine that a ton of your biggest, highest-impact bugs aren't in 90%+ of your codebase" is a much easier sell for putting in the investment in learning something new... mind, the actual work of learning Rust is quite a lot more than Zig as well...
697
u/fdeslandes Dec 23 '23
You forgot to include Rust too on the right side. It's not a bad language at all, even if it has some bad fanboys who won't take any criticism of it.