Rust lobbyists winning
They’re currently exploring using AI to mass translate software from C to Rust, which will be hilarious if it doesn’t cause Armageddon
that seems like it wouldn’t work very well except maybe for small programs. the kinds of bugs they’re trying to catch and prevent here may need substantial changes to the program’s design in order to prevent. Like the borrow checker literally does not exist in C and it is not a thing people thought about when writing asynchronous C code. Maybe the AI will take a shortcut and write a bunch of unsafe rust code, but in that case what’s the point?
Must be a lot of rust devs in the streets if we’re getting a make work program for em…
“And where did that bring you? Back to me.”
- COBOL
Which do you think happened?
-
Honest appraisal of C++ security problems
-
They figured out some security hole in C++ programs that makes them even worse than we thought
-
Some contractor bribed them to say this so that they can get contracts porting stuff to Rust
-
Some contractor dug up new legitimate security holes in C++ programs so they can convince the FBI to say this so they can get contracts porting stuff to Rust
-
High ranking FBI officials are rust fanboys
I think contractor bribes, but I think that last two are fun.
Thank god President Trump will revert everything to C, none of this woke stuff, Make Software Spaghetti Again!
Make Software Spaghetti Again!
It’s just the obvious thing. C and C++ don’t have safeguards against dangerous programming mistakes. Programming languages exist that do. There are to this day still software vulnerabilities being caused by subtly incorrect code that C and C++ require being treated as legitimate.
C and C++ don’t have safeguards against dangerous programming mistakes.
This is not really true for modern C++… and if you’re talking about code bases that use an ancient dialect of C++ where it might be true, the fantasy of even having the option of porting to Rust is actually pretty laughable. C will continue to be necessary for many critical things because there simply isn’t sufficient compiler support coverage for Rust to take the throne.
The difference here is that it takes discipline and training to use only those parts of C++. That requires humans in the loop to enforce those decisions. Humans are fallible.
If you make it impossible at the language level then there’s nothing to train. You just can’t do the thing unintentionally.
And they didn’t specify Rust; the aerospace industry has been using Ada for decades when it comes to mission critical stuff. Ada’s compiler has long had a similar notoriety to rust’s regarding the difficulty curve.
Am I wrong or is this a strong point in favor of c/c++? I’d generally want to do whatever the opposite is of what the FBI would like me to do.
“critical software” here refers to weapons systems, spying systems, government surveillance systems, cyberwarfare software, etc.
Do you work on critical software
their reasoning is that rust (and perhaps others) that can be used in place of c or c++ have stronger compile time memory and thread safety checking which are two major sources of bugs and exploit vectors. So it’s not like they’re infiltrating the language in this case the way they would with crypto.