@phiofx I think there is also improvements in the original languages. For example Typescript or typed Python.
Rewriting from scratch even in a "better" language is expensive and fraught with problems - you risk reintroducing bugs without perfect understanding not only of the original code, but the original context. But gradual improvement over time is better.
Question is whether new ecosystems are adopted for new projects. Maybe that is more an economics question.