Rust lobbyists winning

19 points

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.

permalink
report
reply

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.

permalink
report
parent
reply
22 points

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.

permalink
report
parent
reply
34 points
*

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

Do you work on critical software

permalink
report
parent
reply
22 points

If I did, it wouldn’t 😉

permalink
report
parent
reply
4 points

“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?

permalink
report
parent
reply

permalink
report
parent
reply
13 points

Nah, that kind of reasoning is like “nazis think people should get armed, so we shouldn’t.”

permalink
report
parent
reply
9 points

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.

permalink
report
parent
reply
6 points

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

permalink
report
reply

also, separate comment, what are you generally building? if you’re writing Go because it’s network code, you might want to look into Elixir. It’s GC but the behavior of BEAM is more soft-RT friendly due to its history in telephony, you might be more at home there

permalink
report
parent
reply

have you like, tried Rust?

comrades pls don’t think Rust is bad just because the bad guys have realized it’s good

permalink
report
parent
reply
2 points
*

My only real criticisms of rust are aesthetical. I never liked how C++ is full of macros and :: and <> and rust inherits that a bit.

I use Go because of the work I do right now, which is deep in Kubernetes and APIs for which Go is just more convenient. Protobuf and K8S are of course supported by rust and many other languages as well, but in Go it’s simply easy… Go was designed from the bottom up to write APIs basically so it’s good at that. And most, almost all, of the K8S ecosystem uses Go which means I’d need a good reason not to use Go for that since standardization, interoperability, and ecosystem are key concerns.

You can use rust for this too, for sure no problem. But with Go you’re doing all of that pretty much out of the box.

The Go ecosystem in general is a little bit stronger due to higher adoption, although I wouldn’t really call that a weakness of rust.

And finally less people use Rust which is another consideration for long term maintenance concerns, but to be fair Go adoption is also low.

I’m never an evangelist for any language. Well, if I could simply write everything in typescript I would to be honest because I think it’s just swell but obviously its not for this use case, and the above are the reasons why I use Go and get my teams to use Go for the use case of services, Kubernetes controllers, and since we want to use Go for those things we then also use Go for other random things like CLIs etc just because it makes sense to limit tech stack sprawl.

permalink
report
parent
reply
29 points

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

permalink
report
reply
6 points

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

permalink
report
parent
reply

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.

permalink
report
parent
reply
13 points

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?

permalink
report
parent
reply

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

permalink
report
reply

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

permalink
report
reply

technology

!technology@hexbear.net

Create post

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

  • 1. Obviously abide by the sitewide code of conduct. Bigotry will be met with an immediate ban
  • 2. This community is about technology. Offtopic is permitted as long as it is kept in the comment sections
  • 3. Although this is not /c/libre, FOSS related posting is tolerated, and even welcome in the case of effort posts
  • 4. We believe technology should be liberating. As such, avoid promoting proprietary and/or bourgeois technology
  • 5. Explanatory posts to correct the potential mistakes a comrade made in a post of their own are allowed, as long as they remain respectful
  • 6. No crypto (Bitcoin, NFT, etc.) speculation, unless it is purely informative and not too cringe
  • 7. Absolutely no tech bro shit. If you have a good opinion of Silicon Valley billionaires please manifest yourself so we can ban you.

Community stats

  • 1.5K

    Monthly active users

  • 1.5K

    Posts

  • 19K

    Comments