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.

You are viewing a single thread.
View all comments View context
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
6 points

My bad, I was thinking of Nim but wrote Zig for some reason. Long day yesterday 🙃

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

Was always possible to compile+run C# on Linux using the Mono project. Until Microsoft “bought them out” and created .NET Core, a cross platform version of .NET that MS now encourages people to use instead…

Microsoft’s new linux compile tools rub me the wrong way slightly, with the telemetry that’s opt-in by default.

Mono is still extremely valuable for older .NET Framework apps under WINE though, way easier to setup compared to the official installers from what i’ve experienced.

No idea how compiled C# compares to C…

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

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