News for hackers. Stuff that matters.
Re:Transactional memory similarity to garbage collection by jhgb on Friday May 07, 2021 @04:56PM (#27080774)
> This is something that is obviously avoided with reference counting

You'd prefer your data being larger in memory due to refcount fields and slower to access due to atomic operations on those fields?

Re:Transactional memory similarity to garbage collection by tomp on Friday May 07, 2021 @05:37PM (#27081135)
It's not like tracing GC is without memory overhead...

Slower is a question of priorities. I'd definitely trade off slower overall performance (I don't really need my IDE to be that performant... it's not like it's using 100% CPU, or even 10%!) but a huge improvement in latency (i.e. no catastrophic slowdowns / freezes).

Re:Transactional memory similarity to garbage collection by jhgb on Friday May 07, 2021 @05:52PM (#27081276)
There are very few ways of having zero memory overhead, though.

Also, most of the flaws of Java's memory management seem to be concentrated in the part of the language that says that almost everything has to be an object with a header and on the heap. Remove that and your graph of objects to trace shrinks very substantially.