News for hackers. Stuff that matters.
Re:Async Rust Is A Bad Language by astrange on Friday September 08, 2023 @11:22PM (#37441957)
You can certainly get memory abandonment, which is like a leak but for memory that's still referenced and is just never going to be used again.
Re:Async Rust Is A Bad Language by tsimionescu on Saturday September 09, 2023 @03:07AM (#37442943)
I will note that in GC literature at least, that is still considered a leak.

In an ideal world, we could have a GC that reclaimed all unused memory, but that turns out to be impossible because of the halting problem. So, we settle for GCs that reclaim only unreachable memory, which is a strict subset of unused memory. Unused reachable memory is a leak.