Re:What Is Rust's Hole Purpose?
by lamontcg on Friday February 18, 2022 @04:32PM
(#30391399)
And no garbage collector pauses or tuning.
[ Parent
| on HN ]
Pauses happens when using Rc types with a cascade deletion of deeply nested data structures, and if Drop are incorrectly written, even a possible stack overflow might occur.
> Pauses happens when using Rc types with a cascade deletion of deeply nested data structures
True, but this is inherent to deterministic deallocation. Rust is getting local allocator support to make it easier to manage these tradeoffs. (Local allocators are commonly used already in C/C++.)
Only the call is deterministic, not how long it takes to return.
Local allocators are also a thing in many languages with automatic memory management.
Re:What Is Rust's Hole Purpose?
by garethrowlands on Saturday February 19, 2022 @05:24AM
(#30395973)
Well, if you just wanted no garbage collector, you could use C.