Hacker News new | ask | show | jobs
by actuallyalys 1276 days ago
The name is confusing, but Nim's Arc is not the same as Rust's: https://nim-lang.org/blog/2020/10/15/introduction-to-arc-orc.... Rust (and apparently Swift) uses Arc to refer to atomic reference counting, whereas Nim's means automatic. There's still overhead, but it would be more comparable to Rust's Rc, I believe.
1 comments

Swift uses ARC to mean automatic, and its use comes from Objective-C's ARC.
Huh, the Nim blog post appears to be wrong, then, or I misunderstood it.