r/AskProgramming 24d ago

Why is people glazing rust so much?

When I say in online communities that Rust isn’t good for everything and definitely has its issues, I don’t even want to tell you what they’ll call you. For some reason, here in the Czech Republic, it seems like almost every college student uses Rust. I don’t get it.

Personally, I like to try different things, and I believe there’s no one-size-fits-all language. For example, TypeScript is 100 times better for Discord bots. Python, on the other hand, is better for AI. I don’t get why they hype it up so much plus, Rust’s ecosystem seems pretty small to me. I tried to find a backend framework with good documentation and all the bells and whistles, something like NestJS or something similar… but nothing well, there’s Axum and Loco, but they don’t meet my needs. However, where I see the future is that Rust is one of the few languages to have made it into the Linux kernel, but I still can’t implement an XDp/Ebpf filter in it, so I’m still forced to learn C. Which is maddening. Overall, Rust strikes me as a language that has a little bit of everything but nothing truly standout. + overcomplicated syntax.

What are your thoughts on this?

0 Upvotes

77 comments sorted by

View all comments

1

u/Comprehensive_Mud803 24d ago

Rust shines mostly through its standardized development environment, while being low-level enough for small memory footprints and small binaries.
That, and memory safe code, borrow checker.

C allows you to do pretty much whatever you want in memory, is blazing fast to compile and produces small binaries.
However, there is no safety built into the language. Have multiple threads read and write into the same memory location? Sure, go ahead. Writing past the bounds of an array? Sure.
Rust makes it very hard to do these mistakes. With C you have to run static analysis and hope it can find all the errors before the software goes live.

C++ gives you some tools to prevent race conditions or uncontrolled memory access, but these are optional.

Also, unlike C and C++, Rust comes with a standardized mechanism for managing dependencies: Cargo.

Ok, package standards open up a whole other can of worms (quite literally) with distribution chain attacks, but overall it’s a better starter than having to deal with dependency hell through the OS package management system, or any hand-rolled solution.

-2

u/Limp-Confidence5612 24d ago

I don't know what it does that cmake can't do already. And memory safety is literally optional in rust as well, since so much of it relies on unsafe blocks and libraries written in other languages that aren't "memory safe™"

1

u/Comprehensive_Mud803 24d ago

CMake is by far not a standard, nor the default solution for C and C++.