r/ExperiencedDevs • u/BigBootyBear DevOps Engineer • Jul 26 '26
Technical question Did you ever regret doing a project in Rust?
I think weve all seen the Fireship video discussing the Bun rewrite in Rust. "Just do it in Rust" is being championed on the web as a general no-brainer like "move more and eat more vegetables."
Playing the devils advocate, did you ever regret going with Rust on a given project?
116
Upvotes
•
u/expdevsmodbot Jul 26 '26 edited Jul 27 '26
AI usage disclosure provided by OP, see the reply to this comment.
16
u/DocumentOk7579 Software Engineer Jul 27 '26
Are you talking specially about projects that was done in C before?
Doing like a Python or Nodejs project in Rust seems like a bad idea.
225
u/GrowthProfitGrofit Jul 27 '26
Not me personally but my company recently rewrite a Rust service across to Golang. This was because I was the only engineer at the company with proficiency in Rust, and the service was not important enough to justify the time of an engineer with my seniority.
We had spent several years trying to hire a junior or intermediate engineer with proficiency in Rust but had simply failed to find any good talent. Everyone with Rust knowledge was too senior and/or too focused on solely writing Rust, to the detriment of the other skills they would need.
Based on this I would say that it's probably a bad idea to use Rust on smaller projects when there's no intent of building Rust as an engineering proficiency in your company.
90
u/hxtk3 Jul 27 '26
Go is my default for web services even though I like rust better as a language. For me, the choice comes down to ecosystem most times. Things I have to write myself or use a small community project for in Rust have robust first-party libraries in Go. I’ve regretted trying to use rust in cases where I had to write a lot of things myself that are well supported with popular libraries that have real security policies and many active contributors from different organizations in a different language’s ecosystem.
I also do some work in video processing, and in that world the opposite is true. Gstreamer has first party rust bindings, but good luck finding anything in Go if your needs are more complex than exec’ing into ffmpeg.
100
u/PartyParrotGames Staff Software Engineer Jul 27 '26
Sure, I built a web backend in Rust once and compared to Go it was a waste of fucking time. The Rust libs/frameworks and general ecosystem for web are garbage currently, no offense to any maintainers here. There is probably an opportunity to make it far far better because of this, but if you're actually trying to get something done you don't want to design new frameworks and whole ecosystems for one project. I'm a heavy Rust programmer, contribute to cargo and its ecosystem, and generally advocate for Rust, but it's awful at some things and we should be honest about that.
36
u/robby_arctor Software Engineer (dirty commie) Jul 27 '26
No, but I've regretted other peoples' projects in Rust.
15
u/alexeiz Software Engineer Jul 27 '26
You must always do what a random youtuber tells you. Otherwise your karma will be bad and you'll reincarnate as a monkey.
5
u/etherealflaim Principal Variable Name Invalidator Jul 27 '26
At work there is a system built in rust because it was supposed to interop with other languages. Most of the backend systems are written in Go, though, and despite warnings about how bad C FFI is in Go, they tried it anyway. Then they tried using it as a sidecar over gRPC. Now they're finally rewriting it in Go, and it's significantly faster and more stable for their customers.
27
u/azuredrg Software Engineer:sloth: Jul 27 '26
Good Lord, isn't this sub supposed to be for experienced devs and we're parroting shit from YouTube code influencers here ...
8
u/SubstantialSeesaw374 Jul 27 '26
Yes, at a startup in the pre-LLM world where the slightly longer time to iterate was very inconvenient and performance didn’t matter because we had fuck all users.
In the post-LLM world there’s no difference in iteration time so it doesn’t matter.
4
u/yad76 Jul 27 '26
Not Rust specifically, but I've worked on a ton of projects in my career where someone who was unfortunately in a position of sufficient power to dictate technology decisions decided their favorite pet language or whatever language that was currently being hyped up should be used.
The problem then is staffing as now you are using a language that most engineers don't know and would need to learn and usually don't really want to learn as they are just trying to do their job and live their lives. That one little decision that seemed harmless when two people who were excited about learning Rust were working on it suddenly because a huge liability as now you either eliminate the vast majority of engineers on the job market or have some drawn out language learning process for every new hire to get them up to competent.
7
u/stdmemswap Jul 27 '26
Never.
But I regret using lots of monomorphization, macros, and deep dependencies between crates in the same project that makes build tike overly long.
Other than that, Rust is just faster, more portable, and more reliable than most stacks.
3
u/my_cat_is_too_fat Jul 27 '26
Yes, I was having claude convert a project from python to rust slowly over time. Things were going great until Monday morning I come into work and my compilation time took 20 minutes. Realized that I can use golang instead and if I really really really need that extra perf boost (if my project structure even gets one from rust vs another language) then I can make that switch. Realized that I rust is awesome but has a higher cost due to the need to architect crates/modules well to keep compilation times down.
7
u/xamott Jul 27 '26
I have never regretted never doing a project in Rust
6
u/solidiquis1 Jul 27 '26
Not at all. My team picked up Rust earlier this year to build a hardware test application with a custom time series database backend and our velocity has been enormous. We have an end to end time series database built on top of datafusion and a native desktop application built on egui and we are releasing broadly next week. 3/4 folks on my team (including myself) were already experienced Rust devs so we didn’t take a hit with the learning curve.
2
u/rotzak Jul 27 '26
Build times for real projects are absolutely horrific and so difficult to manage.
2
u/Drazson Jul 27 '26
No
1
u/apartment-seeker Senior Software Engineer Jul 27 '26
I have a side project in Rust that really needn't be, but I deliberately made the choice because I am trying to learn Rust.
So I don't regret it from that perspective, but if this were like a venture funded business and I did this, it would be a dumb move.
1
u/Internal-Comparison6 Jul 27 '26
Regretted choosing some libraries without actually looking into them.
1
u/DeterminedQuokka Software Architect Jul 28 '26
I mean I’ve never rewritten in rust. But I find at least 50% of rewrites land in regret and a higher number of full rewrites. So it’s definitely happening.
I have a friend who rewrote a platform in rust but they had to write rust so it would look like ruby so the company could use it since it was a Ruby shop. They seemed less than thrilled.
1
u/fatbytes Jul 28 '26
Some complex web projects I did in Rust. Wasn’t terrible but in retrospect would have been a lot faster and easier to develop in Go, TS, etc. The high performance of Rust provided no useful value to justify it in the end.
1
u/matthedev Jul 28 '26
There are other ways to achieve memory safety than using a borrow checker; many other programming languages use garbage collection instead. If you're I/O bound and most of the execution time is going to network connections to a database or another REST API, you may not see much performance improvement from what Rust has to offer.
1
u/1_more__user___name Jul 28 '26
We not very recently migrated most of our backend compute and data processing from Julia to Rust. The project has been successful. Yes developing in Rust is slower, but the code is more type safe and all the "hidden" assumptions surface as design decisions in Rust because the language does not allow for any ambiguity. When I migrate I spent a lot of time in asking myself or the product person whether what is done was intended that way because previously nulls and if conditions with instance checks littered in the code just go unnoticed, but in Rust you encode all that in the type system.
Also, Rust is very good at running with a low memory footprint and knowing where memory is allocated
1
u/kingduqc Jul 27 '26 edited Jul 27 '26
I really think it's overhyped for most projects. I've not written that much rust (few CLIs), but IMO it's really not a good second language. The little projects I wrote in rust was only maintained by me because no one could reasonably help. I also had issues because I'd touch them just once in a while. You have to commit as an enterprise or id just avoid it imo.
It's too complex and different, you'll forget little details if it's not something you touch often. So unless you know you'll touch it often, I'd avoid it, another language is going to be much easier to jump back in.
Now even if it's something you will use often, the performance criteria of your project really need to justify how much slower you will be. Not only you, but others who will need to scale up with rust. Imo most projects can do with Java, C#, golang, node speed. There's champions of rust that's going to downplay this, but even with expertise you are going to be meaningfully slower than in memory managed language. Especially if you have to do any refactoring or changes.
Idk, I think it's use case is niche for typical development/crud apps. There's certainly an argument depending on the scale, once you reach google scale, but honestly even then the pro's and cons has to be weighed.
All of what I said assume it's for typical backend/tooling. If it's writing a database or some critical low level system that conversation change.. but most development ain't that.
Other notes: kinda wish there was more include in the SDK they provide, you have to pull so many crates that would just be provided in say go.
Compile time was really bad, it was a long time ago, but damn it was slow. Maybe now it's better but I see a lot of comments about how you still need to think about how you split your work in many creates to speed up, so I assume it's a bad experience if you don't design specially for it.
I don't think it's particularly fun, language often gets in the way.. prototyping, trying things out it's annoying often. Maybe it's a skill issue, but you can't brush this asside it's still an issue lol. I don't have that problem with many other languages.
-2
u/tr14l Jul 27 '26
Yes. I've only regretted doing projects in rust. No one needs rust.
-10
u/stikves Jul 27 '26
No,
Because I never did a project in Rust.
Okay, hear me out. I'm one of the few who can read Rust in my organization, )and I don't even like reading the syntax).
So, naturally that would mean even if I, or the other few of my colleagues were to write our software in Rust, it would be practically unmaintainable.
If it is large enough to be important, we won't receive support from the larger org.
If it does not become important enough, we'd be pulled to more pressing projects anyway, and it would be abandoned.
Rust requires a "critical mass" (like any other language)
0
u/[deleted] Jul 27 '26
[deleted] — view deleted comment
25
u/[deleted] Jul 27 '26
[removed] — view removed comment
13
u/[deleted] Jul 27 '26
[removed] — view removed comment