by nynx · 5y ago · 0 comments
Look at browsers: IE stagnated, Firefox got things going again, and IE eventually improved. And then as Firefox had become bloated, Chrome came along and showed that better performance was possible, and so Firefox improved as effort to match Chrome was exerted.
Or npm: it got mired as people couldn’t agree on the way to resolve some pretty big issues (centring on performance), so some people started Yarn, and its success helped unstick npm, so that now many that had switched to Yarn were able to move back to npm once it caught up again.
And these are just a couple of examples I’m familiar with.
Yes, there are costs to diversity of implementation, but there are benefits. The reasons why multiple backends is great can largely apply to multiple frontends.
Rust’s backend and frontend are both performance bottlenecks. One perfectly plausible course of events is that someone builds a new Rust compiler focused on end-to-end performance. That could help both the ecosystem and rustc.
Most features can be added on to an experimental version of the existing code base, or done as a prototype. Not much needs a full competing compiler.
I rather not be using edlin of programming languages when given the option.
(This outcome is probably also bad, to be clear, but maybe of less practical consequence to people who continue to use mainline rustc.)
Specialization, GATs, and const generics that aren't painfully limited are taking a very long time to deliver. As a selfish user I would love to see a Clang vs GCC style friendly rivalry develop.
Although, hm, I suppose you could argue that if there were one libhtml5 and Gecko and Blink and WebKit all used that, but they had different "backends," that might be even better than the current situation - that the value of having multiple web browsers is in the equivalent to the backends, not in the equivalent to the frontends.
Nowadays it's pretty trivial to get a codebase to compile across MSVC, GCC and Clang. Back then it was often weeks and weeks of work.
As for your list, I never had many issues keeping a code compiling across MSVC, aCC, xlC, SunPro, GCC.
In fact aCC on HP-UX 11 was the one that gave me more problems.
I'd bet that having exactly two implementations will be a good place to be
I think you're probably right that two Rust implementations with a cooperative mentality would be a good thing in the long run.