News for hackers. Stuff that matters.
Re:Swift Static Linux SDK by MBCook on Tuesday June 11, 2024 @07:03PM (#40652679)
Reference counting and garbage collection are different.

They’re both forms automatic memory management, but they work in very different ways.

Re:Swift Static Linux SDK by vips7L on Tuesday June 11, 2024 @09:39PM (#40653622)
No they're not. Reference counting is a garbage collection algorithm. Its even described as such in most literature on garbage collection.
Re:Swift Static Linux SDK by kibwen on Tuesday June 11, 2024 @09:48PM (#40653669)
Reference counting and garbage collection are different, yes. But in terms of classifying "no garbage collection" under "things that Swift took from Rust", Swift's pervasive reference counting is much closer to classic tracing GC than it is to Rust's system of single ownership.
Re:Swift Static Linux SDK by pcwalton on Tuesday June 11, 2024 @10:10PM (#40653787)
Automatic memory management is a synonym for garbage collection. Reference counting is a form of garbage collection.