Re:ORC – Nim's new memory managment
by imtringued on Wednesday December 09, 2020 @04:53AM
(#25356965)
Graph scans are trivial to implement though.
Re:ORC – Nim's new memory managment
by throwaway_pdp09 on Wednesday December 09, 2020 @05:09AM
(#25357069)
Would you consider full graph scan efficient? Would you like a full graph scan after every allocation, millions of times a second?
I don't understand why you said that.
And, technically, GCs collect non-garbage, and throw away what remains. They don’t care whether what they throw away contains cycles or not, but have to take care that they don’t keep running in circles when they follow links between objects while collecting the non-garbage.