by losvedir · 4y ago · 0 comments
I've always been curious about the trade-off between "second-system syndrome" and "learning from experience". Do people have examples of rewrites that went well and those that didn't?
I can think of several that didn't go well (and in fact ultimately decided as tech lead at my last place not to do one for a big chunk of our code that I was on the fence about, just because of that), but can't think of many that did go well.
Maybe Go is kind of an example where the authors used all their experience to build something new, rather than just a straight up rewrite. BurntSushi's ripgrep is an example of someone else doing a rewrite that worked out pretty well. Others?
NPM trends tells an interesting story as well: https://npmtrends.com/@angular/core-vs-react-vs-vue
They also rewrote their frontend in React (previously Ember.js)[1]
I know I've also seen a Twitch developer stream themselves benchmarking Rust + io_uring vs Go but I don't know if anything ever came of that.
Discord rewrote at least one Go service in Rust. [2]
Cloudflare made Pingora (Rust) to use instead of NGINX (C) though idk if that meets the rewrite criteria. [3]
[1] https://blog.twitch.tv/en/2022/03/30/breaking-the-monolith-a...
[2] https://discord.com/blog/why-discord-is-switching-from-go-to...
[3] https://blog.cloudflare.com/how-we-built-pingora-the-proxy-t...
He’s right, that decision marked the end of Netscape as a factor.