Does Rust programming language practically provide 'memory safety', as they say? Or it is just in theory?
Any Rust lang experters here?

Follow

What does a person with 10 years of experience with C/C++ say about Rust? Anybody on Mastodon?

@EdwardTorvalds it's not as powerful. a lot of annoying moments. i'm a programmer, i know what i'm doing so let me do it (t. about 6 years of experience with C++, a few years with rust)
@vaartis @EdwardTorvalds from what i heard rust is VERY opinionated about what's right and what's wrong.
@hj @EdwardTorvalds yeah. so it seems, so it seems. i think i don't share many of its opinions.
@EdwardTorvalds as for your question about memory safety - yes it does but at the cost of being painfully pedantic with your code

@EdwardTorvalds
Rust isn't worth the disk space. (Not a rust expert, but 10+ years using C, C++, among others)

@EdwardTorvalds Yeah! C with safeguards so you can more reliably build multiprocessor code. What’s not to like? @everlastingrocks

@EdwardTorvalds
The recent rust projects I've compiled have eaten close to a gig in disk (500 megs of dependencies), maybe that issue is more of a 'cargo bad' reaction. Rust itself is around 500 megs, 've had problems with running on other architectures...
tcc + musl comes to under 10M. rust makes gcc + glibc (200M) look light.

@everlastingrocks more errors with more code... With so much of extra code how does Rust talk about safety?

@epic @ShadyFennec @waterbear @vurpo @hj @vaartis

@EdwardTorvalds It’s one of my next to learn so I’m no expert in Rust. Just goofing with it, I just figured the extra work is worthwhile to protect us from ourselves. If you’ve learned it to where it comes natural to you and you still think it’s not more safe or the extra work isn’t worth it, we’re listening. 🙂 @everlastingrocks @ShadyFennec @waterbear @vurpo @hj @vaartis

@EdwardTorvalds @everlastingrocks Yeah, the dependencies weight and cargo are another bad side of rust, especially coming from a C/C++ background. And yet another jab at Rust from someone who loves it: even though it's inherently safer, with a lot of guards around the possibly bad practice, some libraries (some of them even super popular !!) go out of their way to program "à la C", using heaps of explicitely unsafe code, for some reason.

So the same talks about dependency safety with node begin to creep into Cargo and Rust, with good reason. The language itself is made to promote memory safety and safe concurrency, but if library programmers don't uphold these promises, the guarantees are lost!

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!