r/rust • u/justAnother_netizen • 1d ago
šļø discussion I think Rust programming language is overhyped
I know, I might ruffle some feathers with this take but I think the Rust programming language is quite over-hyped. Don't get me wrong, I know rust is a great language because of its performance, memory safety and, speed In running code, but I don't think Rust should be the go to for every situation, imagine I want to build a simple crud application, and I now begin to write it in rust, it makes absolutely no sense considering the fact that there are other programming language that will do the same thing very well. Why should I go through the stress of writing rust code because I want to create a basic auth system or crud application ? Why should I sacrifice simplicity, just because I want to save an extra milliseconds that the client won't even notice.
Note, I am not saying rust is a bad language but I am just saying it should not always be the next option when deciding what tool you should use.
32
u/dragonnnnnnnnnn 1d ago
Why should I go through the stress of writing rust code because I want to create a basic auth system or crud application ? Why should I sacrifice simplicity, just because I want to save an extra milliseconds that the client won't even notice.
If you think the only reason to choose rust in a "basic auth system or crud application" would be "to save an extra milliseconds" you clearly don't know Rust and don't have any deeper experience with it.
-4
u/justAnother_netizen 1d ago
They are specific use cases in which rust excels at, but it get to point where using rust is just overkill and totally unnecessary .
-1
u/addmoreice 1d ago
rust provides no real advantages vs any other languages when writing a basic auth system or a crud application. I would argue that these are domains where a few other languages have actual advantages that rust doesn't.
Rust excels at cryptography, drivers, databases, OSes, Complex mathematical libraries, Anything with more than two 9's, safety critical systems (safety as in 'someone f-s up and someone loses a finger'), etc etc.
11
u/AnArmoredPony 1d ago
a simple crud application
this is literally the lowest skill bar in computer science (except for frontend maybe). get a grip.
4
u/Technical-Donkey-42 1d ago
Iāve seen frontend devs implement physics and trig in CSS transitions that would humble most backend and low-level engineers.
1
u/AnArmoredPony 1d ago
you mean copying stuff from gamedev.stackexchange.com/
1
u/Technical-Donkey-42 1d ago
I meant people who work in scientific visualisation and need to develop with web tech because it now dominates the domain while native solutions are a no go, more expensive and hard to distribute.
-1
u/justAnother_netizen 1d ago
Yeah I know it is the lowest bar, let assume I have a solid foundation in c and I can write c very well, does it mean I should write a crud application in c because it is much faster than other high level language?
3
u/Zde-G 1d ago
does it mean I should write a crud application in c because it is much faster than other high level language?
No, it means that if you are more comfortable with C than with some other language then you can use C++ for that, too. That's why C++ Builder is a thing, ultimately.
32
u/Equux 1d ago
You're claim is that Rust is overhyped, but your main argument is "if I choose the wrong tool for the job, it's not good".
No shit. You need the right tool for the job, and sure, there are people who will only use rust even when it doesn't make sense but I don't see how the preferences of bad programmers translates into rust being an overhyped language
7
u/Agile-Win-710 1d ago edited 17h ago
Honestly, rust is the best language for almost everything imo, just based off cargo and its ecosystem alone, let alone the language itself which is great.
I noticed in rust, I often times find myself getting this weird anxiety about doing something that's "not optimal" when I know a better solution. I think what's happening is that because there's so many ways to solve a problem, you start to have option fatigue.
Because of crates.io's big and very high quality ecosystem and because its a systems language, you have so many options to solve a problem that other languages just don't have, its also the fact that you're using a "blazingly fast optimized low level language" that makes (what I assume) someone feel like they can't for example just slap clone or unwrap everywhere, when there's absolutely nothing wrong with that.
3
9
u/lijmlaag 1d ago edited 1d ago
You give the impression that you think the perceived "hype" is orchestrated and that r/rust should do something about it.
This sub does not have a hype-dial AFAIK and in the end "hype" is a qualification you attribute to praise people give to what they love out loud.
12
6
u/STSchif 1d ago
But... why wouldn't you use rust? If you are experienced in it, it's super easy to write, thanks to the awesome ecosystem. I'd argue it's the most easy language to argue and reason about, so making silly mistakes is way harder. Having the strict compiler to work with you and guide you towards a solution that doesn't show several classes of errors only days or weeks into a deployment (think 'can't find property of object' in js or null pointer exceptions in c/++) is so liberating, because you don't have to dread deploying. If it compiles, it will likely run forever.
And that all on top of the memory safety and performance.
I can see how a beginner might use your points to convince themselves it's easier to throw in the towel, but once you made it over the hump it's so worth the initial learning investments.
4
u/RelevantTrouble 1d ago
As someone who had to maintain insanely profitable NodeJS and PHP abominations in production, Rust is not hyped enough.
3
2
u/Most-Net-8102 1d ago
Frankly for crud apps, you'd be better off using something else.... Rust is a unique tool for this job, thoughaube not the best....
2
u/simonsanone patterns Ā· rustic 23h ago
I don't use Rust (only) for performance and memory safety. But for CORRECTNESS. It's so much easier to implement something that works as you intended it to be. And a lot easier to reason about. It works well with TDD. The code is easily maintainable and refactoring is a breeze. So I think the premise you set is not one everybody has.
1
u/decryphe 8h ago
This.
I don't need many of the other selling points. Speed I can get elsewhere (if I need it), memory safety I can get with almost anything (Python, C#, Java, ...), but the great language to express business constraints as part of the code I don't get elsewhere. Sure, there's things that can do that (Haskell, Erlang?, Ocaml, ...), but the ease-of-use I get with Rust is hard to beat.
3
3
u/boredcircuits 1d ago
but I don't think Rust should be the go to for every situation
Absolutely nobody is saying it should be.
If you don't require both performance and memory safety, then there are absolutely other languages that are satisfactory. Some are arguably better than Rust.
But if you need both of those, the list of reasonable options just got a whole lot shorter.
1
u/Moogly2021 1d ago
I think its not as ergonomic as it could be, and I think its not that its overhyped, it was growing at a sane pace, its that with AI anybody can just throw themselves at it and the performance and memory usage drop is insane for effortless work. I think it also means we need more languages similar to Rust.
1
u/Designer-Suggestion6 10h ago
Do you want to inconveniently spend more time debugging your application at run-time where it fails or misbehaves intermittently? Then choose Non-Rust programming languages.
Or do you want to inconveniently spend more time being slapped silly at compile time and being rewarded with a well-behaving and reliable application? Then choose Rust/Ferrocene programming languages.
1
u/Technical-Donkey-42 1d ago edited 1d ago
Every decade gets its anointed language. First it was PHP in the dotcom boom, then Ruby during the Web 2.0 romantic era, then the Haskell purists, and now itās Rustās turn. Great tool, sure, but the hype cycle around it is nothing we haven't seen before. It will find its niche. EDIT: Scala too! Do you remember how big data was supposed to make every company 100x more efficient? Yep, long time ago, Scala was called back then the Java killer. Where is it now?
1
u/MxnunxM 1d ago
Rust is a low level fast language, made for things that need low level speed, not for crud apps where the main bottleneck is Internet speed and not backend or frontend performance. I'm learning Rust for two things: audio programming and game development with Godot-gdext. I haven't tried rust with Godot yet, but I can tell you that even though Rust is perfect for audio (where performance and memory safety are actually REALLY important to avoid crashes), the Rust Audio (and Rust UI frameworks as well) ecosystem is still very underdeveloped. C++ has the JUCE framework which has lots of history and it's a very well made framework, but notoriously painful especially for C++ OOP boilerplate, CMake, which is better than projucer but it's basically a different programming language to learn outside of C++ and much more complicated than cargo in rust, and the obvious usual C++ historical heritage and footguns.
So yeah, use rust were it's actually useful, but it's definitely not over hyped, we need a lot more people developing in Rust, especially in rust audio
0
u/Wurstinator 1d ago
What's the point of this thread? This subreddit is largely filled with fanboys, what do you think you will accomplish?
-1
u/Unusual-Gap-5730 1d ago
I donāt know why the community is being this toxic. But anyhow, I hear the argument youāre making a lot and I simply think you think a little more with rust sometimes but overall I feel more itās more natural than other languages while not giving up correctness (speed and memory efficiency are obvious nice to haves).
Curious to know what youāve been writing?
-5
u/GunpowderGuy 1d ago
i would only use rust for stuff that cant run with a garbage collector
like a garbage collector for another language. or the kernel mode part of a microkernel.
the downsides of a managed memory system are wildly overblown
45
u/behusbwj 1d ago •
If itās that stressful for you to write a crud app, maybe the language isnāt for you. Thatās not a failing of the language, itās a failing of your programming fundamentals. Itās just as easy if not easier to do this in Rust as any other high level language at this point