logoalt Hacker News

EGregtoday at 2:47 PM1 replyview on HN

There is no need for garbage collection if you don’t form circular references. Just have a canonical direction and always keep weak references the other way.


Replies

thomashabets2today at 2:57 PM

Reference counting is a different model. Many papers have explored the differences and similarities, and your comment leaves so much out that it cannot even be said to be true or false.

I'd say GC is always the fastest to free objects within the main code path. Literally zero instructions.

show 3 replies