White House urges developers to dump C and C++::Biden administration calls for developers to embrace memory-safe programing languages and move away from those that cause buffer overflows and other memory access vulnerabilities.

-5 points

C is not the problem, it’s sloppy “programmers” who cannot handle direct memory control and who do not understand the underlying system architecture and how a microprocessor operates. People who are good at writing C can make code just as safe as the safest Rust code.

permalink
report
reply
6 points

It is just too easy to shoot yourself in the foot when using a foot gun… Sure the experts can avoid it, but that doesn’t mean the foot gun is a good tool in general.

permalink
report
parent
reply
3 points
*

If you’re an expert tightrope walker, you’re likely not gonna fall off. You can just do it without too much issue. When you’re doing it over a chasm, and you don’t plan on dying, you’d still probably prefer a harness though, wouldn’t you?

Edit: I’m not saying C is a bad language or anything, but for important applications the safety of actually memory safe languages is vital for lower-skilled programmers and still a good assistance for higher-skilled programmers, as we’re all humans and it doesn’t hurt to try and avoid the mistakes we will eventually make.

permalink
report
parent
reply
1 point
*

I’ll say it. C is a bad language. There was a time when it needed needed to exist and using it was a smart choice, but it has outlived its usefulness for anything but legacy code and niche use cases like FFI. It’s in essentially the same category as Cobol.

permalink
report
parent
reply
1 point
*

The bad language that all successor languages copied?

Edit: spell.

permalink
report
parent
reply
5 points

Your take is objectively false. This issue has been studied and the conclusion every time is that real programmers make memory-related mistakes all the time. Even if there are a few superhuman programmers who never get tired, have a bad day, or misunderstand an API, firing the 99.99% of programmers who aren’t superheroes isn’t a realistic solution to anything.

permalink
report
parent
reply
10 points

While this is technically correct, it’s tantamount to saying “just don’t make mistakes”, or arguing that a seatbelt is unnecessary because many are good enough drivers to not need it.

Languages like C and C++ do not prohibit the kinds of mistakes that the NSA told us two years ago lead to software vulnerabilities.

Other languages, like Rust, have higher guardrails built in and make it much more difficult to accidentally create the same failure modes.

permalink
report
parent
reply
7 points

I love C, but C definitely is the problem.

While one disciplined programmer can in theory write correct code, once there is a small group of even good C programmers and a code base with more than around 3000-5000 LOC, there will be bugs. There is a good reason for tools like Valgrind etc.

While I think C and C++ are the problem, I don’t think Rust is the solution, tho.

permalink
report
parent
reply
43 points

Good luck with that, C/C++ are still crazy popular

permalink
report
reply
3 points

Damn, it’s been like 25 years since I touched either of those. Aside from OS development, do people really do that anymore?

permalink
report
parent
reply
3 points

Embedded systems developer here. If you’re programming on ARM or one of the other big microcontrollers there aren’t many well supported options. ARM’s official Keil compiler and libraries are C and C++ and I see no official movement to change that.

They have literally decades in building those tools.

Microsoft’s multithreaded OS ThreadX is C code. They just bought it for a large undisclosed amount in 2018. It ain’t going anywhere soon.

AWS’s FreeRTOS is C. Not going anywhere.

Embedded development toolchains are very slow to change.

permalink
report
parent
reply
1 point

A large chunk of not most of robotic development is C and C++. Since working with a mixture of hardware, software, and even performance software here comes C and C++.

permalink
report
parent
reply
6 points

Most of the embedded world uses those.

permalink
report
parent
reply
9 points

C++ is also the standard in game dev. You may see some C# here and there, but most engines, public available or otherwise, are built on C++.

If it is a AAA game, I can assure you it is most likely made with C++.

permalink
report
parent
reply
3 points

https://www.geekboots.com/story/why-c-is-so-popular-and-still-the-best-programming-language

Basically, C runs the modern world. WiFi, MacOS, Windows, Linux, and so much more

permalink
report
parent
reply
37 points

well… that’s the point - if they weren’t this wouldn’t be a concern

permalink
report
parent
reply
4 points

We really need to get the kids to stop programming with punch cards. /s

permalink
report
parent
reply
58 points

I agree, let’s start with dumping Windows.

permalink
report
reply
20 points

Done, next the Linux kernel? 😱

permalink
report
parent
reply
7 points

It’s a hard sacrifice to make, but if that means killing Windows, then mwahahaha… I mean, MS’s power lies in supporting all that legacy.

permalink
report
parent
reply
38 points

I think we should politicize code. It seems so unfettered by politics so far while so many other things are nicely split amongst party lines. Seems like maybe the Republicans should embrace C and the democrats can have python or something.

permalink
report
reply
17 points
*

Republicans get C, Java, Lua, and C++; Democrats get Ada, Rust, C#, and Python; Libertarians get Zig, TCL, Julia, and Ocaml for some reason.

permalink
report
parent
reply
3 points

haha as if repugnicunts code…

permalink
report
parent
reply
2 points

Why do Republicans get the good stuff?

permalink
report
parent
reply
15 points

I thought this is a tech space, but you’ve just made a lot of people Republicans.

One would also expect Ada to be Republican.

And can libertarians please have Common Lisp?

permalink
report
parent
reply
8 points

Ada could never be republican, on the basis that it’s named after a british woman scientist. I don’t think she’s on record as a feminist, but that’s about the only thing that would make her “worse” in their eyes

Also why do the democrats only get languages for people who don’t care about performances ? /s ^(it’s just a prank bro)

permalink
report
parent
reply
15 points

Ruby is just one guy, Vermin Supreme

permalink
report
parent
reply
4 points

Vermin Supreme still stands by his pony plan doesn’t he? You KNOW he’s out here using FiM++

permalink
report
parent
reply
11 points

Ruby-off-the-rails

permalink
report
parent
reply
8 points

Can I both upvote and downvote you? Seems most appropriate

permalink
report
parent
reply
75 points

I’m not sure what to think about this. It’s bizarre, the White House making any recommendations on programming languages.

They’re definitely not seen as an authority in this field. Why would anyone care what recommendation they make? And so why make one at all?

permalink
report
reply
2 points

They can’t even figure out language for human interpretation much less computer interpretation.

permalink
report
parent
reply
29 points

It’s a national security threat

permalink
report
parent
reply
12 points

C/C++ is a threat to mental stability

permalink
report
parent
reply
11 points

There have been words around this, like how software should be safe by design, but the regulation should come from the governing entity. This is simply materialized now, but there has been momentum.

permalink
report
parent
reply
65 points

They’re definitely not seen as an authority in this field. Why would anyone care what recommendation they make?

It’s possible that they are acting on the advice of advisors who are authorities in this field.

And so why make one at all?

I expect it’s because information and industrial security are components of national security, which is of great concern to them, and those things depend on software.

I’m not surprised to see this, given that state-sponsored electronic attacks are on the rise these days.

permalink
report
parent
reply
5 points

This is exactly why people sound sophomoric when they say “lobbying needs to go!” There are some drastic problems with lobbying as it is allowed now, but the last thing we need is the government regulating things they know nothing about without the input of experts. On top of that, it’s nonsense that I can’t pass my local councilman on the street and stop and push them to spend more time addressing important issues like climate change.

permalink
report
parent
reply
2 points

I don’t think your argument quite holds up. The directionality is important. It’s true that the government can’t always know about technical things directly, but I think it’s fine for the government to be expected to know which experts they need to consult, and for that process not to just be open to everyone (which just means more open to those with more money).

permalink
report
parent
reply
10 points

It’s important to remember that the argument against lobbying isn’t about the broadest sense of the word “lobbying”, but rather about corporations and other moneyed interests having unfair and unhealthy influence over the laws that govern everyone else.

The people who decry lobbying probably agree with you; they’re just using the word in an implicitly narrow context.

permalink
report
parent
reply
18 points

NIST are the experts guiding the White House.

permalink
report
parent
reply
3 points
*

NIST is mentioned

confused and angry screaming

permalink
report
parent
reply

Technology

!technology@lemmy.world

Create post

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


Community stats

  • 17K

    Monthly active users

  • 12K

    Posts

  • 543K

    Comments