Re:How Swift Achieved Dynamic Linking Where Rust Couldn't
by skohan on Saturday November 09, 2019 @02:12PM
(#21493593)
It's an overloaded acronym to be sure. Atomic reference counting is a familiar concept in systems programming languages like C++ and Rust. It just so happens that Apple's automatic reference counting is also atomic.
Re:How Swift Achieved Dynamic Linking Where Rust Couldn't
by MaulingMonkey on Saturday November 09, 2019 @07:53PM
(#21495635)
It's a bit less confusing in practice - the full types are std::rc::Rc and std::sync::Arc (where std::sync is all multithreading stuff, and you have to actually use that name to get access to Arc in your code), and both are well documented (including spelling out the acronym):
https://doc.rust-lang.org/std/rc/struct.Rc.html
https://doc.rust-lang.org/std/sync/struct.Arc.html
...I could see this causing merry hell if trying to do advance interop between Swift and Rust, though, and it's admittedly probably going to be a minor stumbling block for Apple-first devs. (I managed to avoid confusion, but I just port to Apple targets, they're not my bread and butter.)
https://docs.swift.org/swift-book/LanguageGuide/AutomaticRef...
I never heard this alternate and very different expansion for that term.