I'm trying to convince my manager that it's worth rewriting large parts of our web app.
He's skeptical and listed some examples of failed refactors.
And indeed I've heard many cautionary tales over the last 10 years of my career.
But sometimes it's got to be worth it and the outcome is positive.
He asked me to find examples of rewrites gone well.
Do you know any?
Now that I've learned Go, it wouldn't be my first choice. Around 70% of CPU time is currently spent in the heap scanner, looking for garbage to collect. Initial experiments with Rust show a marked decrease in memory usage and run time, and that's without any really tricky optimizations that Rust could make quite easy to do. Just the storage space used by all of the filenames in the GCC repository is a huge amount of ram, and in Rust a string interning system is quite easy to write. (In Go it would be impossible, though perhaps now that generics are on the horizon that will start to change.) All I need to finish the task is about 4–6 months of free time… or a grant, now that I think of it.