|
|
|
|
|
by AstralStorm
3264 days ago
|
|
The problem with this approach is that you would really have to offer something groundbreaking to displace C and C++ while also matching portability (only matched by Java variants) and performance (often unmatched). The about only languages that could compete right now are extended Ada for high assurance environments and Fortran variants for HPC. They are old but not dead and quite usable if you have the dollars to buy proprietary or invest time. Microcontrollers and constrained environments are another critical niche for C and C++, especially given proprietary compilers. Rust does not go far enough in safety to displace Ada (or Spark variant) while not offering improved performance and comparable portability with all the pains of a new language. It also does not do build once deploy everywhere stuff Java and JS attempt. Rust is neither here nor there.
A good effort but not a solution. |
|
If you offer something groundbreaking, you don't need to match portability. Many people will be willing to make the tradeoff.
> Microcontrollers and constrained environments are another critical niche for C and C++
Why do you assume Rust can't be used for these niches? I understand the potential issues with old environments, but what about modern/future ones?
> It also does not do build once deploy everywhere stuff Java and JS attempt.
Rust compiles to JS today. It will eventually compile to WebAssembly.