News for hackers. Stuff that matters.
Re:Swift 6 by azinman2 on Tuesday September 17, 2024 @05:43PM (#41573162)
Which is reference counting, not garbage collection. Ref counts free when count = 0. Garbage collection scans all object pointers and looks for loops / no missing pointers.
Re:Swift 6 by mkl on Tuesday September 17, 2024 @06:04PM (#41573363)
That's tracing garbage collection. Reference counting is another type of garbage collection. https://en.wikipedia.org/wiki/Garbage_collection_(computer_s...
Re:Swift 6 by derrasterpunkt on Tuesday September 17, 2024 @07:04PM (#41573830)
Reference counting is not tracing garbage collection. To also quote a Wikipedia Link: „The main advantage of the reference counting over tracing garbage collection is that objects are reclaimed as soon as they can no longer be referenced, and in an incremental fashion, without long pauses for collection cycles and with clearly defined lifetime of every object.“

+ https://en.wikipedia.org/wiki/Reference_counting

Re:Swift 6 by mkl on Tuesday September 17, 2024 @09:35PM (#41574820)
Of course reference counting is not tracing garbage collection. I never said it was. The comment I replied to claimed reference counting was not garbage collection at all and seemed to think tracing garbage collection was the only kind of garbage collection. Reference counting and tracing garbage collection are two different types of garbage collection.
Re:Swift 6 by vor_ on Saturday September 28, 2024 @10:01AM (#41680272)
> Reference counting is not tracing garbage collection.

???

They didn't say it was.

Re:Swift 6 by vor_ on Saturday September 28, 2024 @10:01AM (#41680268)
Reference counting is a kind of garbage collection.