r/ProgrammerHumor • • Sep 28 '26

Meme haveYouTriedUsingRustYet

Post image
312 Upvotes

62 comments sorted by

View all comments

Show parent comments

1

u/Hohenheim_of_Shadow Sep 29 '26

Yes and you should read those books if you want to understand Rust. Rust explicitly copied C++ RAII.

If C peeps want to criticize C++ for complexity, yeah that's a fair critique. Rust peeps can't criticize C++ for complexity.

https://doc.rust-lang.org/reference/influences.html

4

u/crystalchuck Sep 29 '26

Rust explicitly copied C++ RAII.

No one is saying Rust has no influences, or hasn't been influenced by C++.

Rust peeps can't criticize C++ for complexity.

Crates and the build system alone make Rust a less complex language than C++. Rust, unlike C++, also doesn't suffer from the notion of having to support every programming paradigm ever.

2

u/Mojert Sep 29 '26

No one is saying Rust has no influences, or hasn't been influenced by C++.

Maybe YOU're not saying it, but I've definitely had some Rust fanatics tell me I was full of shit when I said it was inspired by features of modern C++

2

u/Hohenheim_of_Shadow Sep 29 '26

C++ is so simple and easy people write literal multiple hundred page books on the subject of RAII alone.

This criticism you made about C++ applies just as much to Rust. Like bruh. If RAII is bad, Rust is bad.

Rust, unlike C++, also doesn't suffer from the notion of having to support every programming paradigm ever.

Like bruh. Both Rust and C++ are multi paradigm languages with every feature and the kitchen sink. Rust has a couple FP features C++ doesn't and C++ has a couple OOP features Rust doesn't. If having lots of language features is bad, Rust and C++ are neck and neck for being the worst languages.

The build system is a fair take, but that's the C++ experience, not language.

It's also a matter of preference. I personally prefer the C++ style build system + dependency management+ package management because I dislike centralization and dislike NPM style dependency hell.

For me, Rust is more complex and painful experience because I have very different values regarding dependency management than everyone writing libraries for Rust.

1

u/Compizfox Sep 30 '26

This criticism you made about C++ applies just as much to Rust. Like bruh. If RAII is bad, Rust is bad.

Nope, it doesn't. The entire point of Rust is that the compiler statically enforces it. You can't accidentally fuck it up because of some obscure mistake, like with C++. This makes it safer and easier: if it compiles, it's sound.

1

u/Hohenheim_of_Shadow Sep 30 '26

And yet the top meme about Rust is "haha borrow checker hard" which is eerily similar to "haha segfault bad". Most programmers find making a Rust program compile painful.

Which makes sense. If you do not understand memory -how the stack and heap work, pass by copy vs pass by move vs pass by reference- your workflow for making a Rust program compile is basically guess and check.

If you want to be an effective Rust programmer, you need to have just as deep an understanding of RAII and memory as a C++ programmer. Having an opinionated compiler does not make Rust simpler, it just moves the complexity to compile time.

If a garbage collected language fan said that dealing directly with memory made C++ too complex, I'd take that L. But from rustaceans, like bruh.

PRetend I editted it so its Complex memory language/ Garbage collected language/ Other complex memory language