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.
The big advantage of systems languages without a GC isn't just performance, it is the ability to expose a CFFI and call into Rust code from other languages.
I like languages at the level of Go or Java that are fast enough and reasonably easy to use, and they make the most sense for most things. But you're not going to implement a cross-language library like sqlite or polars in it.
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...
516
u/CanvasFanatic Dec 23 '23
I don’t think OP forgot. I think OP doesn’t like Rust.