News for hackers. Stuff that matters.
Re:Shenandoah in OpenJDK 17: Sub-millisecond GC pauses by sgt on Friday September 17, 2021 @08:18AM (#28564554)
Incorrect, Swift is not garbage collected. It uses reference counting. Read more here: https://docs.swift.org/swift-book/LanguageGuide/AutomaticRef...

As for C and C++, yes, of course. I meant "everyone else" as in the trendy new languages.

Re:Shenandoah in OpenJDK 17: Sub-millisecond GC pauses by saagarjha on Friday September 17, 2021 @08:27AM (#28564644)
Reference counting is technically a form of garbage collection, FYI.
Re:Shenandoah in OpenJDK 17: Sub-millisecond GC pauses by sgt on Friday September 17, 2021 @10:20AM (#28565806)
Reference counting deals with operations that have constant time, which I think puts it in a different category than what people normally view as GC.
Re:Shenandoah in OpenJDK 17: Sub-millisecond GC pauses by kaba0 on Friday September 17, 2021 @01:38PM (#28568421)
And has a different tradeoff, due to atomic operations being needed for objects shared between threads (and of course, circular references).

But no matter what, it is literally a GC algorithm, described in every book about GCs.

Re:Shenandoah in OpenJDK 17: Sub-millisecond GC pauses by Zababa on Friday September 17, 2021 @10:59AM (#28566236)
I'm not sure that's true. Python mainly uses RC, yet most people think of Python as GC'd. I would argue that most people think that GC == automatic memory management.
Re:Shenandoah in OpenJDK 17: Sub-millisecond GC pauses by sgt on Friday September 17, 2021 @06:05PM (#28571439)
Yes, I think you are correct actually.