Re:On Apple's Love Affair with Swift
by comex on Saturday August 11, 2018 @06:56PM
(#17741986)
And Swift, which uses automatic reference counting instead of GC. This is not a “zero-overhead” design like what Rust aims for; sometimes it has quite a lot of overhead. But it is free from the phenomenon of GC pauses.
[ Parent
| on HN ]
> But it is free from the phenomenon of GC pauses.
Not really. RC algorithms can lead to stop the world in cascade deletion of highly nested data structures, and even cause stack overflow due to destructors being called.
Re:On Apple's Love Affair with Swift
by icebraining on Saturday August 11, 2018 @08:06PM
(#17742226)
Well, in that regard, so is Python; the GC is only used to resolve cycles, and can be disabled.