this post was submitted on 28 Feb 2024
231 points (96.4% liked)

Technology

58303 readers
70 users here now

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


founded 1 year ago
MODERATORS
 

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.

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 75 points 8 months ago (5 children)

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?

[–] [email protected] 66 points 8 months ago (1 children)

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.

[–] [email protected] 5 points 8 months ago (3 children)

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.

[–] [email protected] 10 points 8 months ago (1 children)

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.

[–] [email protected] 3 points 8 months ago (1 children)

they’re just using the word in an implicitly narrow context.

I think we mostly agree, but disagree on this point. I think it's just that most people haven't given it any thought. Like they are just ignorantly going along with the popular opinion.

load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 29 points 8 months ago (1 children)

It’s a national security threat

[–] parens 12 points 8 months ago

C/C++ is a threat to mental stability

[–] [email protected] 18 points 8 months ago (1 children)

NIST are the experts guiding the White House.

[–] [email protected] 3 points 8 months ago* (last edited 8 months ago)

NIST is mentioned

confused and angry screaming

[–] [email protected] 11 points 8 months ago

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.

load more comments (1 replies)
[–] [email protected] 62 points 8 months ago

Gov is getting rusty

[–] [email protected] 57 points 8 months ago (1 children)

I agree, let's start with dumping Windows.

[–] [email protected] 20 points 8 months ago (1 children)

Done, next the Linux kernel? 😱

[–] [email protected] 7 points 8 months ago

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.

[–] [email protected] 46 points 8 months ago (2 children)

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

[–] [email protected] 7 points 8 months ago

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

load more comments (1 replies)
[–] [email protected] 43 points 8 months ago (7 children)

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

[–] [email protected] 37 points 8 months ago (1 children)

well... that's the point - if they weren't this wouldn't be a concern

[–] [email protected] 4 points 8 months ago

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

load more comments (6 replies)
[–] [email protected] 38 points 8 months ago (2 children)

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.

[–] [email protected] 17 points 8 months ago* (last edited 8 months ago) (4 children)

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

[–] [email protected] 15 points 8 months ago (1 children)

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?

[–] [email protected] 8 points 8 months ago (1 children)

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)

[–] [email protected] 7 points 8 months ago

I was thinking about the association of the Ada language with defense stuff, and also her being Byron's daughter, which is more specific than being British, I'm not sure she'd complain about associations with Republicanism, but then this can also be interpreted in favor of libertarians.

No, the question is valid about weird selection of languages for Democrats. I think what they meant is that separation of various issues between parties is orthogonal to any sane logic, so we should do this with programming languages too.

Also I want to know who gets Erlang.

[–] [email protected] 15 points 8 months ago (2 children)

Ruby is just one guy, Vermin Supreme

[–] [email protected] 11 points 8 months ago

Ruby-off-the-rails

[–] [email protected] 4 points 8 months ago (1 children)

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

load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 8 points 8 months ago

Can I both upvote and downvote you? Seems most appropriate

[–] parens 29 points 8 months ago (1 children)

C/C++: so bad that even the white house takes notice 😂

[–] [email protected] 24 points 8 months ago (1 children)

C isn't bad. It has been a good portable assembly language for ages, and remains so today. What's problematic is continuing to use it where more advanced languages now make more sense.

I won't defend C++, though. I'm happy to kick it to the curb now that better alternatives are gaining traction.

load more comments (1 replies)
[–] [email protected] 28 points 8 months ago (1 children)

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

[–] [email protected] 7 points 8 months ago (3 children)

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

[–] [email protected] 12 points 8 months ago (2 children)

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

load more comments (2 replies)
[–] [email protected] 4 points 8 months ago (2 children)
[–] [email protected] 7 points 8 months ago* (last edited 8 months ago) (1 children)

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?

[–] [email protected] 9 points 8 months ago (1 children)

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...

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 18 points 8 months ago

Wtf, I thought this was a meme...

[–] [email protected] 9 points 8 months ago (1 children)

segmentation fault (c and c++ dumped)

load more comments (1 replies)
[–] [email protected] 8 points 8 months ago

“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

[–] [email protected] 8 points 8 months ago

Good reason to not drop C and C++

[–] [email protected] 5 points 8 months ago
[–] [email protected] 4 points 8 months ago

Can’t we just bring back Forth and call it a day?

load more comments
view more: next ›