Proposal for deterministic memory management

It feels like you are edging (cc @mbauman) your way towards a reference counting system (Reference counting - Wikipedia). That is indeed a way of doing automatic memory management and it has the advantage that clean up happens as soon as you can no longer reference something. It has some other problems though, in general worse throughput performance than the GC strategy Julia uses and you can end up with cycles of references that are not freed.

5 Likes