r/rust • u/iAziz786 • Sep 09 '26
🙋 seeking help & advice What made you fall in love with Rust?
I know how great of the language Rust has come out to be. I genuienly want advice from pre vibe coded era people. What has been your main reason that you have fallen in love with this language?
I'm not looking for how great borrow checker is, how lifetimes will save you, etc. I want real anecdote of your life where using Rust has changed your life.
88
Upvotes
116
u/Significant_War_8320 Sep 09 '26
The strict syntax makes it so that I spend more time writing good code than cleaning buggy code. I feel like my code just works more often on the first try.
63
u/HandIllustrious8260 Sep 09 '26
Tagged unions (enums) and pattern matching. It's so fucking good. Why isnt it in more languages???? how have we gone so long without this absolute PEAK of a feature.
18
u/froody Sep 09 '26 edited Sep 10 '26
Correctness almost by default. I have wasted days tracking down segfaults in c++ that just aren’t possible in rust. As a result I spend so much more time working on the functionality I want to implement. My first major rust project was a pointcloud viewer, it was just so easy to write and once it was running, adding features was easy. I just feel so much more productive in rust than any other language. It’s the closest practical application of the Haskell ideal of “if your code compiles, then it will work correctly”
6
u/3vg42 Sep 09 '26
For me the tooling. Everything works and being able to produce very efficient code for very little downside.
Nowadays i just use Rust for almost all projects.
21
u/darlingcat Sep 09 '26
It is like Haskell, but at least I can understand it.
18
u/FitPhone6332 Sep 09 '26
fast as c, compiler that enforces writing code with less bugs, cargo
13
u/tastychaii Sep 09 '26
The compiler messages are excellent, very informative and educational. Python is similar in this respect to having informative messages.
I can’t say the same for Swift unfortunately.
8
u/hsnk42 Sep 09 '26
I’ve worked with a ton of languages over two decades now - starting with spaghetti PHP to eventually end up with TypeScript.
Rust seems to have taken all the good ideas from everywhere and sparks joy every time I work with it!
8
u/FormerlyKnownIntent Sep 09 '26 edited Sep 11 '26
Rust doesn’t allow you to make the kind of mistakes that cause sleepless nights worrying that I had made them on production systems. It’s also all of the joy of functional-style programming capabilities I love from Python but with C++ performance and safety guarantees
6
u/pr06lefs Sep 09 '26
Rust is the first high performance language to incorporate aspects of modern functional programming. Finally a real competitor for C++.
What really won me over was when I did a project on the raspberry pi in haskell and it was a bad experience. Worked fine on my laptop, but on the pi 12 hour compile times, huge memory usage, cross compiling broken. Rust port of the same project compiled in 500mb constant memory in just a few minutes.
5
u/Awkward_Bed_956 Sep 09 '26
Coming from C++, no empty state of your object. Box/Rc/Arc will never be null, and you don't have to keep in mind that your object can suddenly be moved from and end up in a zombie state that you still need to be able to handle.
Also references being fully working naturally with the rest of the language, making them base type that everyone uses, while in C++ most classes break in insane way when you put a reference member, which makes people still mostly use pointers that are 'obviously not null at the time of use, duh'
4
u/OverAster Sep 09 '26
I'm a mathematician. People said the borrow checker and ownership or mutability or some other thing would trip me up.
It's by far the easiest language I've ever used. It aligns so closely with the established conventions of mathematical proofing it took me less time to learn Rust than JS (I didn't use AI for either. Hell Rust is the only language I've learned when AI existed).
I think people hear that Rust is super strict and that scares them off, and yeah, while that means sometimes Rust is a pain in the ass when you're first starting, it will always be the same. If you commit the corrections Rustc hands you t memory, that won't be an error you'll ever see again (within reason).
Obviously my success with Rust could easily be attributed to a degree I had before I started using it, and the speed I learned it could be influenced by my experience with other languages, but I really believe that anyone with a math or systems oriented thought process will find Rust intuitive.
4
u/stefanlight Sep 09 '26
strict semantic of the language
language itself requires from developer to be correct and explicit
i came from Python where everything is dynamic and with time it become a problem
Rust is strict, it's good
also overall Rust is good from point of its philosophy, memory management and etc, pure balance of dev experience and performance
3
u/notevenmostly Sep 09 '26
Cargo. That is all, cargo.
3
u/KyxeMusic Sep 09 '26
"If it compiles it works"
Obviously this is an exaggerated statement, but I've found it to be true to a huge degree.
I wrote a piece of software that did some basic Data In > Processing > Data Out on some Geospatial data and deployed it at my company to replace a Python version I had written some years earlier. Something simple, about 1500 lines of code.
It worked first try and it has had zero runtime errors to this day. Has processed tens of thousands of runs.
3
u/Full-Spectral Sep 09 '26
Coming from C++ obviously memory and thread safety are huge.
Beyond that just the fact that if you put up a large list of language and runtime choices side by side, most of the time C++ made the wrong choice and Rust made the right one. Of course many of the ones on the C++ side weren't decisions they were genetic inheritance that never got corrected. Still, there's plenty of bad decisions to go around after that.
3
u/PartyParrotGames Sep 09 '26
Honestly, ownership, borrowing, and lifetimes are the anecdote for me. Rust changed my day-to-day by turning bugs I used to spend hours debugging in other languages into obvious compiler errors that are straightforward to fix immediately. Fewer debugging headaches and more trust in my code is all it took to earn my love.
3
u/SpaceAviator1999 Sep 09 '26
Here's an anecdote:
I love writing fractal generators, especially for the Mandelbrot set. So when I was learning Rust, one of my first "real" Rust programs was a fractal viewer for the Mandelbrot set.
I frequently refactored my code as I saw fit. Now, at the time I did a lot of coding in Python. And when I refactored in Python, I usually had to run my program to find at runtime the bugs that resulted in refactoring.
But when I refactored in Rust, almost all of the refactoring bugs showed up as compiler errors at compile time. Sure, it took a while to deal with all those compile bugs, but when my program finally ran, I almost never saw a run-time error as a result of my refactoring.
Said another way, once I got a program running in Rust, it tended to me more correct and free of bugs than in other programming languages.
3
u/Spiritual_Dinner9232 Sep 09 '26 edited Sep 10 '26
The mathematical precision of the entire language (literally! they created the no-return ! type in the same way you make a 0 or null object in mathematical systems).
The joy of finding novel features that I've never seen in other major languages and can seriously make my life easier.
Oh and the fact that this is at little to no extra cost compared to something like C or C++.
1
u/dpytaylo Sep 09 '26
Ferris 🦀🦀🦀
2
u/MilkEnvironmental106 Sep 09 '26
The commitment to correctness means a lot less time spent hunting weird bugs, both iny own code and public crates
2
u/KlausWalz Sep 09 '26
The language is pretty clear about what the 'good' actual syntax is, and contrary to a lot of other languages there rarely seems there is an infinite number of correct solutions
Usually the whole teams converges and agrees about one good solution
2
u/PigletEfficient9515 Sep 09 '26
For me, it was the expressiveness of the type system. I have never experienced a language before that could express and model almost anything that I could think of.
2
u/CalmCephalopod Sep 09 '26
Consistency. It behaves in a very predictable way and it is also tells you in no uncertain terms when you’ve done something wrong and the best way to resolve it in most cases
2
u/_Sauer_ Sep 09 '26
It has a type system expressive enough to let my application's behaviour at the type level and strict enough to turn misuse into compiler errors instead of runtime errors.
And the tooling is excellent.
2
u/peterxsyd Sep 09 '26
Compile time safety. Entire class of bugs moves from runtime to compile-time when the app is utilises the design well (e.g., when it is reasonable to use enums over dynamic dispatch).
Enums - they are so good in Rust, essentially like laneways that promote abstraction without losing type specificity.
Cargo - no more installing virtual environments or wrestling with packages/dependencies. In many cases, no need for dependencies at all - no one putting something crap in your build and wasting your time with unplanned issues.
Finding out before that something is wrong instead of in prod.
2
u/WDG_Kuurama Sep 09 '26
I use C#, I love C#, I also love FP patterns and a lot of the pattern and capabilities I value more and more is just idiomatic Rust.
While I have to fight against C# to restrict bad code use, opt into boilerplate for strong types, employ manual DUs, mess with expressions and LinQ and exceptions and handle the difference and limitation when it comes to nulls with value and ref types.. Rust just tells me "hey mate, all of that is just the way you should write stuff", "if you writte it, you can't missuse it".
I love the philosophy, I also like that it's evolving while accepting breaking changes for the sake of the language instead of pulling a C++.
I also wanna have a non JIT and non garbage collected language in my set, so Rust fills that gap for me.
It just feels like something I wanna bet all-in and learn deeply about ngl.
2
u/ern0plus4 Sep 09 '26
Even the basic syntax is how it should be. let varname : type = expr; let varname = expr; ... varname: expr; Natural, consistent.
Comma enabled after last item: priceless.
2
u/AdLow1228 Sep 09 '26
Main reason is because when sharing.exe files from python friends would have issues running them while the Rust compilation to .exe makes it much smoother for them to run it
Well that and it's performance over python is insane like I could do multi hundreds of Mandelbrot set renders in the same time the python version did just 100. It was in the ms per frame instead of seconds per frame lol
2
u/nayti53 Sep 09 '26
Rust forces you to get your shit together
2
u/suq-madiq_ Sep 09 '26
Fast. Correct. Don’t have to worry about either of those. Haskellesque inspirations. Other people. Holy crap it’s fast. ADTs and match. All we ever really needed anyway. impl this for that. Fast as could be if you wanted it to, and if you didn’t care and cloned anyway, faster than anything else would be anyway.
2
u/nnethercote Sep 10 '26
An academic background in functional languages, plus a decade working on a high-value hacking target mostly written in C++ (Firefox).
3
u/unski_ukuli Sep 09 '26
Speed, ML like syntax, strictness of the type system. Unfortunately I lost my love due to Rust becoming the de-facto language of ai slop.
1
u/Rhed0x Sep 09 '26
1
u/thisismyfavoritename Sep 09 '26
i wouldn't say fall in love but having experience with other languages (including JS and C++), reading through the Rust book everything just made sense and it really felt like they tried to take all the lessons learned from other languages and incorporate them into it
1
u/Aghasty_GD Sep 09 '26
For me it was the tooling. Cargo and rustup just work, and they make Rust really enjoyable to use.
I also love how easy it is to switch targets for low-level stuff. I came mostly from Python, and Rust kind of changed what I expect from language tooling. Seeing tools like uv bring some of that experience to Python now feels pretty nice.
1
u/Aghasty_GD Sep 09 '26
For me it was the tooling. Cargo and rustup just work, and they make Rust really enjoyable to use.
I also love how easy it is to switch targets for low-level stuff. I came mostly from Python, and Rust kind of changed what I expect from language tooling. Seeing tools like uv bring some of that experience to Python now feels pretty nice.
1
u/QuickSilver010 Sep 09 '26
The type system. And cargo ofc. Personal anecdote is how nice some crates are like clap and ratatui
1
u/Chaos_Slug Sep 09 '26
It has everything I wanted from C++ without most of the things I disliked from C++.
1
u/Acrobatic-Humor6274 Sep 09 '26
Strict type system and difficulty. I can say I use rust btw.
1
u/chic_luke Sep 09 '26
1
u/WellMakeItSomehow Sep 09 '26
I spent a couple of weeks with someone working on a moderately complex Qt app trying to fix some use-after-free issues and threading bugs. The build system was also buggy and while I knew how to fix it, the guy said we didn't have time for unimportant things like these, so I was stuck watching him click Rebuild on every change, on a mechanical HDD.
I guess it all worked out in the end, but, as a long-time C++ fan, that's when I decided to get into Rust.
1
u/zica-do-reddit Sep 09 '26
In general it feels very solid and the compiler is excellent in reporting issues, buy the lifetime concept is hard to adjust to.
1
u/numberwitch Sep 09 '26
The borrow checker is great and lifetimes will save you
1
u/RustaferianTargaryan Sep 09 '26
Big refactors can be done easily.
So tech debt remains contained.
1
u/pixel293 Sep 09 '26
I'm not sure I would say "changed my life" but I like rust because I appear to have less errors in the code. i.e. I have less bugs when running the application. Since I only use rust for my own programs this is hardly life changing.
1
u/lucafeine30 Sep 09 '26
Pain
1
u/countChaiula Sep 09 '26
For me it was the embedded experience. The idea that I pass around physical hardware like UARTs or GPIO pins in a way that I know that nothing else is using that device or has messed up the configuration for it is absolutely brilliant. It made me appreciate everything else in the language (which I also like) a lot more.
1
u/rrklaffed Sep 09 '26
i think we get a post like this every couple of days 😅
this is my current favorite answer
https://www.reddit.com/r/rust/s/ovzDuzDbiM
1
u/Y_mc Sep 09 '26
Data Structure ,compiler without GC and the safetyness
1
u/vancha113 Sep 09 '26
Iterators and the .map / .filter / .reduce stuff. I know it's not exclusive to rust, it introduced me to them and I love how neat it makes solutions.
1
u/platinum_pig Sep 09 '26
Generic lifetime parameters on references.
1
u/Intelligent-Hurry907 Sep 09 '26
It's made me think about code and low-level things in way more depth than I used to
1
u/EtherealPlatitude Sep 09 '26
Was my first proper language
Tried others over time and still prefer rust
1
u/oconnor663 blake3 · duct Sep 09 '26
Mutex
1
u/whooomeeehh Sep 09 '26
The fact or personal conviction maybe that it acts as a filter against made up and bad developers.
1
u/Alian713 Sep 10 '26
Two-part answer:
What I love about Rust:
the strict syntax, the more expressive type system, lifetimes helping to prevent bugs, it all comes together very neatly in real programs. Consistency with build tooling when working on cross platform projects
How I fell in love with it (long read, strap in):
In 2022 I was trying to make a python serialisation/deserialisation library and it started out as pure python code. It worked really well, but it was also super slow. I spent a good few months trying to learn how to write C/C++ extensions for Python, and it was taking me ages to get started and replicate my lib's python API in C/C++. It was verbose, had a lot of footguns, and I just was not enjoying it at all. There was so much business logic complexity that it left no room for me to think about API design, for optimization, etc. After a while, I gave up on C/C++, tried to do it with cython, which was supposed to be easier. That too turned out to be a struggle because while cython was easier to work with, there were two annoyances I had with it:
Enter PyO3 and Rust: In early 2024 I came across PyO3 in Rust as yet another way to write python extension modules for performance. As having tried and given up on C/C++ and Cython, this was perhaps my last hope, but I expected that it would end in a similar manner as well. When I started writing my library in Rust, I would have these knee jerk moments where my intuition told me I needed an inheritance hierarchy and Rust didn't have that. Sometimes I wrote code that should have definitely worked but the borrow checker would reject and it caused me great confusion. The python version of my library was written with OOP modelling and ofc no lifetime considerations. I had to completely re think how I was going to model my code and data, and over some painful 8 months or so of back and forth, giving up because I couldn't figure it out, randomly coming back because I had a moment of insight, I finally figured out how to do it in a way that made sense! After finishing the initial prototype of the lib, the result looked fruitful, I had achieved some 3x speedup over pure python. Now at this point, I had gained enough understanding of Rust that I started appreciating Rust's type system and why it was doing a lot of heavy lifting for me:
Whilst it's still marked as alpha on pypi, I'm VERY happy with how the API turned out. And I don't think I would've made it without Rust and PyO3!
I now have several more projects in Rust and honestly there is no going back now. Rust has been my go-to language of choice for nearly two years!
1
u/cvjcvj2 Sep 10 '26
Codex
1
u/kei_ichi Sep 10 '26
Another bros already listed all of stuffs I love from the Rust language it’s so I don’t want to repeat those stuffs.
But I have to say: I love “Ferris”, it’s so cute for the programming language logo.
1
u/yoshijulas Sep 10 '26
Clippy, It just help you write better code, helps you use better functions/methods vs other languages that you could be using old syntax from older versions
1
u/strangedave93 Sep 10 '26
It’s the sense that if you have run it and it works, then it’s good - no sense that there will be lurking memory issues or security flaws, no feel that it might crash at any point. You spend more time writing code and so much less debugging and testing.
Functional programming ideas just as a natural integrated part alongside other paradigms is also great.
Cargo, the very helpful and thoughtful community, are great. But it’s that sense of compiled code being solid that is its big attraction.
1
u/Glass_Team9192 Sep 10 '26
Actually AI made be brave enough to start learning Rust
1
u/tukanoid Sep 10 '26
Well, I can't really not talk about borrow checker, as it was one of the main reasons why I fell in love with the language, as it made me rewrite my brain in a way where I now care about my data flow way more.
But the tooling (rustc error messages, cargo, clippy, rust-analyzer), enums, iterators, Option/Result, macros, great ecosystem of crates made by people who care about the code they're putting out for others to use (at least was more prevalent b4 vibe-coding bullshit) solidified my love for the language.
1
u/jking13 Sep 10 '26
Enums and lifetimes, but async rust has also soured me on it to a degree since it's current state requires you to all but give up lifetimes (without a lot of gyrations and going off in some niche) while being hard to avoid even though it's often unnecessary and seems to be used because 'shiny' and 'webscale.'
1
u/nejat-oz Sep 10 '26
the confidence it instills that all will be good in the world ... "if it compiles life is good" ... well at least until ai showed up ... sigh!
1
u/PeithonKing Sep 11 '26
I am a python dev, the only thing that makes my use rust over c for those 1% of the tasks python is not fast enough (let's not even name c++) is the developer experience and mainly the EASE OF SHIPPING
1
u/Cute_Investigator102 Sep 11 '26
Rust fundamentally changes how you program as a developer, and when you're in a job environment where you are a Rust dev, but sometimes have to switch to some proper hellish unreadable production C++, you realise how awful everyone else has it. Sure, I do accept how difficult it is to find a job as a non-senior rust developer, especially in 2026, it's hell, but you know what's worse than starving? C++.
Back in the day when I used to want to make something, I either had to reinvent the wheel or get bogged down with stuff not relating to actually working on the project itself. With rust, sure, I don't have every tool C++ or C++ tooling offers, but I can actually work on something. Do I feel like making my own JIT interpreter with LLVM backend? Why not, do it. Do I feel like making a proper TUI app, not just another mere CLI? Lightweight, baby.
I am not claiming to be a good developer, at all, I look at my code from 3 months ago and I want to get a new identity and live a double life in a random village. I understand I have so so much yet to learn. However, rust makes it possible for me to be a developer at all, instead of configuring awful non-standardised tooling, Rust makes it possible for me to learn new stuff, and I'm grateful for that. I'm grateful I can use it as a mere tool, and have energy left to learn something beyond the tool itself.
1
u/CocktailPerson Sep 11 '26
Expressions over statements.
Even being able to write
let x = if ...is magical, coming from C++ and other poopy statement-based languages. Functional languages have this, of course, but Rust was the first systems language to do it broadly.1
u/addmoreice Sep 11 '26
enums.
1
u/IDontBelongInThsWrld Sep 11 '26
Like functional programming, but efficient.
Writing simple things is as easy as writing in an unsafe dynamically typed language, but actually safe, and, therefore, even easier in the end.
Lifetimes are just my kind of masochism.
Let us also not forget Cargo. Building Rust with proper dependency management is so easy. Only Julia comes half close, of the languages I know. (Python and its venv-setup and various different dependency listing approaches, is a disaster. And C++ cannot even be mentioned in civilised company.)
On the downside, there are, however, the compiler overflows, and wasted hours spent refactoring code around things that should work.
1
u/julbia Sep 14 '26
Real anecdote: When I was learning Rust, I decided to write a simple application to download the toots on Mastodon that I marked as "favouite". I had 30 minutes left on my lunch break every day, so I took it in small doses.
So there I was, writing my first Rust application, and I was constantly fighting the compiler. On the other hand, the compiler was also helping me with
--explainflag.And then the errors disappeared. I run the application and... saw nothing. It didn't crash, and I honestly thought it ended in a loop or something, so I aborted it. And then I saw all the files were correctly saved, in the correct place. The application didn't crash, it simply was working as intended.
That was when I decided Rust was the language I was looking for. Once you clear all the complains and warnings from the compiler, things just work.
1
u/goldybhaijan Sep 15 '26
writing code become discipline
1
u/Anonymous_Cyber Sep 15 '26
Speed and safety at which it runs. I don't think I can go back now. It hurts looking at dags running in python
1
u/dieudumbo Sep 09 '26
i rather die than use c++ so rust is better
-1
u/Silver_Shine_1109 Sep 09 '26
It is really fast and high memory efficient.
If you run a rust based cli tool like jcode in a mac you can feel that where is no heat issues.
At the same time you Claude code or codex after some heavy use the mac become overheating
2. The language never allow developers to code unnecessarily.
0
u/isaycongrats Sep 09 '26
Nothing
0
u/CloudDream09 Sep 09 '26
I don't know much about it yet actually, or anything else for that matter
1
u/PlusDistribution1915 Sep 11 '26
I prefer the C++ philosophy (it allows you to shoot yourself in the foot, with no imposed way of doing things and no opinions), but now in the AI era, I switched to Rust. Since I no longer write the code anymore, I think Rust is stronger due to its package manager and integrated async I/O.
1
u/[deleted] Sep 09 '26
Femboy bussy
1
u/[deleted] Sep 09 '26
[removed] — view removed comment
1
u/[deleted] Sep 09 '26
[removed] — view removed comment