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
16
u/zesterer Nov 18 '22
With respect, we've almost never felt the need to reach for
unsafewhen writing r/Veloren, despite the game having pretty intense performance requirements nowadays.The only occurrences of
unsafewe have are related to the plugin API, something that needs to be unsafe because the compiler doesn't have the ability to understand the necessary invariants.The idea that "unsafe = performance" is a myth. It's much more useful when building up abstractions or getting around limits in the compiler's ability to reason about invariants.