3 ms·
It's no more similar to Rust than any generational collector is (which is to say: not much at all). Rust's memory management story is primarily static, while th
by pcwalton 10y ago
It's no more similar to Rust than any generational collector is (which is to say: not much at all). Rust's memory management story is primarily static, while this is dynamic.
- cwzwarich 10y agoRust's memory management story is not primarily static. Anything that is allocated on the stack or anchored by a stack allocation is dynamic; it can fail, and Rust checks for failure at runtime.
- dikaiosune 10y agoBut rust determines at compile time when almost all allocations need to be freed (the exceptions being Rc/Arc reference counting boxes), whereas it seems like a transaction/request GC would discover that at runtime. In other words, the allocations and deallocations are determined statically, they aren't static allocations in and of themselves.