2 ms·
It's an interesting thing to consider, but note as well that much of what the compiler does is for the purpose of optimization (much of which is memory-intensiv
by kibwen 8y ago
It's an interesting thing to consider, but note as well that much of what the compiler does is for the purpose of optimization (much of which is memory-intensive), for which the goal is parity with modern C and C++ compilers. And while it's true that C itself was designed to compile reasonably on machines with little memory, in practice modern C compilers go well above and beyond what machines of the 70s, 80s, or even 90s would find reasonable.
Ultimately I think the answer would be a mix of "you could absolutely write a version of Rust that would compile reasonably on hardware from 1990", but also that the hardware limitations of that era would absolutely feed back into the design of the language in determining what features and implementation details would be feasible, which suggests that the language itself could very well look very different than it does today, even while maintaining the philosophy of no-GC memory-safety.