Skip to content

Comment on Nim version 2.0.0 release candidateparent

Comments

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.