88

Rust lobbyists winning

all 50 comments
sorted by: hot top controversial new old
[-] TheDoctor@hexbear.net 42 points 2 weeks ago

They’re currently exploring using AI to mass translate software from C to Rust, which will be hilarious if it doesn’t cause Armageddon

[-] urmums401k@hexbear.net 47 points 2 weeks ago

I'm actually in favor of this. It's a really good idea, and I hope the state uses it for all the important databases they're gonna use to put us in the camps.

Please dont be a hater. Comrade AI might just save lives here.

[-] blame@hexbear.net 16 points 2 weeks ago

that seems like it wouldn't work very well except maybe for small programs. the kinds of bugs they're trying to catch and prevent here may need substantial changes to the program's design in order to prevent. Like the borrow checker literally does not exist in C and it is not a thing people thought about when writing asynchronous C code. Maybe the AI will take a shortcut and write a bunch of unsafe rust code, but in that case what's the point?

[-] bobs_guns@lemmygrad.ml 7 points 2 weeks ago

This won't work completely. Large language models usually fail thoroughly when writing Rust code as there's not as much training data.

[-] grossmeat@hexbear.net 4 points 2 weeks ago
[-] Thordros@hexbear.net 31 points 2 weeks ago* (last edited 2 weeks ago)

programming-communism

"And where did that bring you? Back to me."

  • COBOL
[-] Owl@hexbear.net 28 points 2 weeks ago

Which do you think happened?

  • Honest appraisal of C++ security problems

  • They figured out some security hole in C++ programs that makes them even worse than we thought

  • Some contractor bribed them to say this so that they can get contracts porting stuff to Rust

  • Some contractor dug up new legitimate security holes in C++ programs so they can convince the FBI to say this so they can get contracts porting stuff to Rust

  • High ranking FBI officials are rust fanboys

I think contractor bribes, but I think that last two are fun.

[-] SkingradGuard@hexbear.net 25 points 2 weeks ago

All wrong! It's because Rust is WOKE!

[-] pinguinu@lemmygrad.ml 14 points 2 weeks ago

Thank god President Trump will revert everything to C, none of this woke stuff, Make Software Spaghetti Again!

[-] lil_tank@hexbear.net 9 points 2 weeks ago

C is for liberals, real patriots use Assembly trump-drenched

[-] someone@hexbear.net 5 points 2 weeks ago

Make Software Spaghetti Again!

Got you covered.

[-] blobjim@hexbear.net 18 points 2 weeks ago

It's just the obvious thing. C and C++ don't have safeguards against dangerous programming mistakes. Programming languages exist that do. There are to this day still software vulnerabilities being caused by subtly incorrect code that C and C++ require being treated as legitimate.

[-] farting_weedman@hexbear.net 27 points 2 weeks ago

Must be a lot of rust devs in the streets if we’re getting a make work program for em…

[-] OprahsedCreature@lemmy.ml 22 points 2 weeks ago

Am I wrong or is this a strong point in favor of c/c++? I'd generally want to do whatever the opposite is of what the FBI would like me to do.

[-] GaveUp@hexbear.net 41 points 2 weeks ago* (last edited 2 weeks ago)

"critical software" here refers to weapons systems, spying systems, government surveillance systems, cyberwarfare software, etc.

Do you work on critical software

[-] OprahsedCreature@lemmy.ml 26 points 2 weeks ago

If I did, it wouldn't 😉

[-] RNAi@hexbear.net 10 points 2 weeks ago

"critical software" here refers to weapons systems, spying systems, government surveillance systems, cyberwarfare software, etc.

Why would they announce it instead of just memoing to their ghoul coders?

[-] blame@hexbear.net 26 points 2 weeks ago

their reasoning is that rust (and perhaps others) that can be used in place of c or c++ have stronger compile time memory and thread safety checking which are two major sources of bugs and exploit vectors. So it's not like they're infiltrating the language in this case the way they would with crypto.

[-] urmums401k@hexbear.net 18 points 2 weeks ago* (last edited 2 weeks ago)

Right but AI translating of all government code is good. This is what you want, especially if shit goes down. Dont tell your enemy to stop pouring the kool aid.

[-] Owl@hexbear.net 17 points 2 weeks ago

Nah, that kind of reasoning is like "nazis think people should get armed, so we shouldn't."

[-] bobs_guns@lemmygrad.ml 11 points 2 weeks ago

It's not really a strong point. C++ has its place for graphics programming and gamedev and C has its place for embedded, but Rust would be a better choice for something like a cryptography app to help revolutionaries communicate for example.

[-] comrade_pibb@hexbear.net 17 points 2 weeks ago

JAVA IT IS MWAHHAHHHAHHAHHAA

[-] TrashGoblin@hexbear.net 4 points 2 weeks ago

You joke, but modern Java is much less bad than it used to be, the JVM is very well optimized, and other JVM languages like Kotlin and Clojure are actually good.

[-] comrade_pibb@hexbear.net 3 points 2 weeks ago

Yeah, kotlin rules

[-] kleeon@hexbear.net 14 points 2 weeks ago

Skill issue. Just write better code

[-] TrashGoblin@hexbear.net 13 points 2 weeks ago

This kind of makes me want to write code in C out of spite.

[-] kittin@hexbear.net 6 points 2 weeks ago

I really want Go but without a garbage collector is that too much to ask

[-] machinya@hexbear.net 3 points 2 weeks ago

i have not tried it myself but have you taken a look into zig? it looks alot like go but is lower level. i have heard good things about it and it looks nice. of course the ecosystem is quite limited since it's a quite new language

load more comments (1 replies)
[-] collapse_already@lemmy.ml 3 points 2 weeks ago

Is CERT code included? I think there is a group working on a secure version of C++ as well. I'm not convinced that shifting experienced programmers to mew less familiar syntax will improve software quality. Improving the language rather than changing to another might be a better approach.

I guess assembly also ought to be avoided since all of the power/flaws of C are extant in it as well.

this post was submitted on 08 Nov 2024
88 points (100.0% liked)

technology

23313 readers
118 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS