News for hackers. Stuff that matters.
Re:Garbage Collection for Systems Programmers by kaba0 on Saturday March 30, 2024 @03:00PM (#39877603)
> and their use is optional

It is not, if you have objects with dynamic lifetimes, and allocating them for the whole duration of the program is not an option.

Sure, their use can be much less than a managed language that can only do automatic memory management, but RC is objectively a worse from most perspective than tracing GC, except for the fact that they don’t need runtime support, and a slightly lower memory overhead.

Re:Garbage Collection for Systems Programmers by arandomusername on Saturday March 30, 2024 @07:42PM (#39879768)
*shared* objects with dynamic lifetimes.

With properly architected code, the times you need to use rc are extremely small.

Re:Garbage Collection for Systems Programmers by pkolaczk on Monday April 01, 2024 @01:44AM (#39891220)
> and a slightly lower memory overhead

3x to 100x is not „slightly” in my dictionary.