r/rust • u/rustacean1337 • Nov 17 '22
What are Rust’s biggest weaknesses?
What would you say are Rust’s biggest weaknesses right now? And are they things that can be fixed in future versions do you think or is it something that could only be fixed by introducing a breaking change? Let’s say if you could create a Rust 2.0 and therefore not worry about backwards compatibility what would you do different.
220
Upvotes
View all comments
Show parent comment
1
u/jkoudys Nov 18 '22
Strong agree on the compile times, but more skeptical on the learning curve. I find devs often project what's unfamiliar to them as being challenging for new devs. But concepts like lifetimes and borrowing in rust don't seem unusually arcane to a completely new dev. It's more to keep track of vs a GC'd language, but someone starting in rust vs C might have an easier time learning rust's consistent rules vs manually tracking and freeing allocations in C.
Even vs a GC'd lang, sometimes rust is simply frontloading the mental effort. eg I built an lru cache on top of some high cpu + blocking library. The experience had a gentler learning curve, because the compiler was offering me good suggestions the whole time, and made sure I put the cache in the appropriate scope and spawned a separate thread with messaging correctly. I would've had to do all that stuff with python too, but could've had something working poorly for a bit while I inevitably added those things.