3 ms·
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-in-nim.html https://nim-lang.org/bl
by actuallyalys 4y 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-in-nim.html 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.
- pjmlp 4y agoSwift uses ARC to mean automatic, and its use comes from Objective-C's ARC.
- actuallyalys 4y agoHuh, the Nim blog post appears to be wrong, then, or I misunderstood it.