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.

43 points

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

permalink
report
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
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

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
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
6 points

Most of the embedded world uses those.

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
28 points

Probably a good idea, plenty of languages out there that can give good performance while being memory safe nowadays.

permalink
report
reply
7 points

Such as? (Non-programmer here, so I don’t know the ins and outs of programming languages.)

permalink
report
parent
reply
12 points

Zig and Rust come to mind, at least for replacements for low level languages.

permalink
report
parent
reply
2 points

Zig isn’t memory-safe

permalink
report
parent
reply
4 points

C#

permalink
report
parent
reply
7 points
*

Isn’t that only microsoft exclusive and closed source? Also does compiling it really yield the same speed as C, it is garbage collected isn’t it?

permalink
report
parent
reply
3 points

*proceeds to wrap everything in unsafe {}

permalink
report
parent
reply
2 points

Rust is the main one for the kind of code that’s typically written in C++. Most memory-safe languages make big compromises on performance, but Rust code tends to run about as fast as comparable C++ code.

permalink
report
parent
reply
62 points

Gov is getting rusty

permalink
report
reply
46 points

Team Fortran raise up, but not too fast our old bones aren’t as strong as they used to be.

permalink
report
reply
7 points

Maybe you can use Team COBOL’s wheelchairs as walkers?

permalink
report
parent
reply
3 points

I updated an internal library from 77 to 90 last week. We’re working quickly these days!

permalink
report
parent
reply
8 points

“We, as a nation, have the ability—and the responsibility—to reduce the attack surface in cyberspace and prevent entire classes of security bugs from entering the digital ecosystem but that means we need to tackle the hard problem of moving to memory safe programming languages,” National Cyber Director Harry Coker said in the White House news release.

o7

permalink
report
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

  • 18K

    Monthly active users

  • 11K

    Posts

  • 506K

    Comments