Rust is in a position to replace enough use of C++ to push it into such a small space that it will become an old folk's home even faster than it already is.
Our world in many ways runs on software, and it's too important to continue to have that key bit of our world built on an insecure foundation. Our desires as developers to play fast and loose and be super-heroes has to take a back seat to the security of our money, personal information, critical infrastructure, etc...
I think more and more companies will realize that it's still cheaper to buy faster hardware than to deal with the development and support costs of using such an unsafe language that just isn't any longer up to the task of large scale development under standard non-optimal commercial conditions.
Previously there wouldn't have been much of a choice. Nothing garbage collected would be reasonable, and the other options have all remained too obscure to be reasonable candidates. But Rust changes that equation, and it's getting more traction all the time.
I get where you’re coming from but especially from a security perspective, C++’s difficulty means insecurity comes from bad code not bad developers, pushing anything off to the compiler means every project that uses that compiler must also trust the developers of that compiler to write secure code. PHP vulnerabilities exist quite often, C++ ones not so much, it’s usually C++ libraries and not the language itself. Lowering the barrier of entry isn’t necessarily good because there’s nothing inherently wrong with C++, and it’s difficulties are a positive in this regard.
Now if you mean insecure as in unstable, C++ is far from unstable, just because they’re constantly evolving it does not mean you must use the latest and if anything few do. Rust is still far too new to be considered a stable platform, no matter how solid it appears; critical issues can and do often come in code viewed by millions without question, and far fewer eyes are on Rust at any given time.
If even very good programmers didn't make mistakes, we'd not even need C++'s helper features. But, they do. Too many of those vulnerabilities that exist in C++ code come from things that Rust wouldn't even compile, and they can be there for years or decades no matter how many eyes on on that code.
If you take examples where that has happened you can make the case but you miss my point entirely - Java and PHP vulnerabilities have requires full SDK/Engine updates to fix. If a vulnerability exists in Rust it will require the same. That cannot happen with C++.
5
u/Dean_Roddey Sep 18 '22 edited Sep 19 '22
Rust is in a position to replace enough use of C++ to push it into such a small space that it will become an old folk's home even faster than it already is.
Our world in many ways runs on software, and it's too important to continue to have that key bit of our world built on an insecure foundation. Our desires as developers to play fast and loose and be super-heroes has to take a back seat to the security of our money, personal information, critical infrastructure, etc...
I think more and more companies will realize that it's still cheaper to buy faster hardware than to deal with the development and support costs of using such an unsafe language that just isn't any longer up to the task of large scale development under standard non-optimal commercial conditions.
Previously there wouldn't have been much of a choice. Nothing garbage collected would be reasonable, and the other options have all remained too obscure to be reasonable candidates. But Rust changes that equation, and it's getting more traction all the time.