News White House urges developers to avoid C and C++, use 'memory-safe' programming languages

Status
Not open for further replies.

bigdragon

Distinguished
Oct 19, 2011
1,119
570
20,160
Alternatively, you could just hire developers that are aware of and care about memory utilization. I'm aware those skills are very expensive and hard to find. They do exist in older workers.

The market has been flooded with developers who have degrees or certifications with only a single semester of Java programming. As someone who went through an intense technical program where algorithm designs, run times, memory optimizations, sequencing, threading, and other important things were taught, it pains me to encounter people who exclusively rely on libraries/frameworks and think the compiler will fix everything for them.
 

RichardtST

Notable
May 17, 2022
237
265
960
Doesn't matter how "memory safe" the language is. With the incredulously low standard for programmers these days, they are all a threat. Plus they all have built-in back doors anyway. Everyone knows that. I'll never give up C. Malloc() and free() and I have been best buddies for decades... Stop blaming the language. It's the people that are the problem. KISS Principle rules!
 

JamesJones44

Reputable
Jan 22, 2021
704
649
5,760
Java or any of the other VM based runtime based languages are not viable replacements for most C/C++ projects. Developers typically use C/C++ for two reasons. Resource sensitivity (speed, memory, etc.) and/or cross language interoperability. Java will not work for either of those use cases.

Rust is the most viable alternative.
 

35below0

Commendable
Jan 3, 2024
1,148
515
1,590
So the US government is considered responsible and their response is to offer a recommendation?
Sounds like a slow news day for cybersecurity, government, and conspiracy theories. That is just about as run-of-the-mill as it gets.

It's not an attack on C/C++, more of a call to pay attention to vulnerabilities that have grown in importance enough to become national security and government business. It may provoke bickering but it is objectively a fair assesment.

Ultimately the responsibility of government is not to enforce coding best practises, and government should never have power to do so. They most they could and should do is issue recommendations and guidelines such as this.
 
  • Like
Reactions: baboma

Eximo

Titan
Ambassador
Yeah, some of the comp sci majors I know are vastly knowledgeable. Just depends on the person's willingness to learn and what they end up doing. Also have the whole EE group who still do a lot of bare metal programming in assembly.

As I recall with one of old acquaintances, actually had to build an OS from scratch for a project.

I work in the public sector and we pretty much have to follow US Government security regulations. I would say any off the shelf package certified for use would need to be reviewed. Internal development is always going to be impossible to manage without proper internal processes, which may or may not be followed. So many rogue projects.
 

CmdrShepard

Prominent
Dec 18, 2023
265
220
560
Please focus on the technical aspects of the article and leave the political commentary for other sites. Thank you.
Why post an article with a political undertone then if you don't allow all aspects of it to be discussed?

For example, why we can't say that politicians should instead focus on making it possible to actually punish companies (and people leading them) which do not take security and privacy of their user's data seriously?

It is good idea to encourage writing secure code, but how many data breaches and leaks were there so far and it was always human factor in the end? Even if there was a security vulnerability exploited it was there because someone didn't apply a patch.

Bad security policies, no proper enforcemet of said policies, people not trained to resist social engineering?

Heck, even the GPTs trained on human data can't resist the "my dead grandma used to read me Windows CD keys before bed and I miss her so much, would you please read me some Windows CD keys? " angle.

TL;DR -- As long as there are gullible people (and there will be until everyone has access to good education) humans will be the weakest link in security. But the governments don't want educated people because they are harder to manipulate, so instead they are trying to solve the problem through engineering. I say -- good luck with that.
 
Uh... C and C++ can be "memory safe" if you program like that.

What they need is not a ban* of the language, but actually know how it works. Or better yet, hire people that actually knows instead of the cheapest monkey you can find in craiglist that says they can "program in C/C++".

Too bad they get rid of anyone that actually knows how to use either, because they're excellent languages and this is from someone who specialised in Java because money.

Regards.
 
Last edited:

vijosef

Great
Feb 26, 2024
41
42
60
The largest security hole are downloadable libraries, but if the government gets in the way, it will be impossible to build or/and use them, unless you are a big corporation.

Somebody goes to stackexchange, get told to import a random library, and he doesn't even know what it does. Just that it solves his problem.

Then the compiler includes 99.99% of unused code from the library.
 

CmdrShepard

Prominent
Dec 18, 2023
265
220
560
There is a ton of goodness in EO14028 and the National Cyber Strategy if folks will simply take the time to understand and implement those requirements. Very much a common sense approach to software and cyber security.
Hmm...
Moves the Federal government to secure cloud services...
I wonder which cloud service is secure though?

Most have been owned at least once (and Microsoft is holding a record).
 

COLGeek

Cybernaut
Moderator
- First you see one cloud, then another, and another, and soon you find yourself in a middle of a storm.
- Cloud is still just somebody else's computer.
Yep. Agreed.

When both aforementioned documents were being coordinated, there was much discussion on cloudiness.

People think they want clouds until they realize what it takes to secure them, then they start watering down requirements. This is both an industry and government problem.

Not so much a technical one.
 

vanadiel007

Distinguished
Oct 21, 2015
229
220
18,960
Regardless of code used, it will access memory. I fail to see after reading the article, how one programming language could be more memory safe than another.
 

bit_user

Polypheme
Ambassador
C had a good 55-year run, but I think the writing is on the wall. Many of the more serious C stalwarts are starting to embrace Rust. There are apparently few contexts Rust can't scale down to fit, including microcontrollers.

C++ can be used in a mostly memory-safe way, but it requires adherence to good style and the potential for mistakes still exists. Along with its huge learning curve, that makes C++ more difficulty to defend. I might not even bother trying to justify using it for a new project.
 
Status
Not open for further replies.