3 ms·
You are hardly managing memory in rust...reference allocation is practically garbage collection and feels as such in rust.
by jzoch 7y ago
You are hardly managing memory in rust...reference allocation is practically garbage collection and feels as such in rust.
- 0815test 7y agoReference allocation _is_ essentially equivalent to garbage collection, the one thing it doesn't deal with correctly is reference cycles. Which are inherently unlikely if you spend the time and effort to organize your code properly. (The Rust community is also working on cycle-aware reference collection, e.g. https://github.com/lopopolo/ferrocarril/blob/master/cactusref/README.md https://github.com/lopopolo/ferrocarril/blob/master/cactusre... but this will always come with some drawbacks.)