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
4
u/buyIdris666 Nov 20 '22
Manual lifetime management is also slower than GC in many cases.
If your object is nested, has cycles, or a linked list, a good GC like Java's new ones will clean up memory without pausing your main thread while everything gets dropped.
A lot of rust devs reach for arena collectors and ref counting when dealing with complex objects. Those are both just shitty forms of GC.