News for hackers. Stuff that matters.
Re:Ask HN: Rust or Swift for system programming? by pcwalton on Monday July 04, 2016 @09:10PM (#12033859)
Rust's drop flag is totally unlike Swift's atomic heap reference counting. The drop flag is just an implementation detail that procedures sometimes use to determine whether to run the destructor. It is usually optimized away. It is quite feasible to program without drop flags if you really don't want them, though they never show up in profiles (unlike swift_retain). We could statically eliminate drop flags if we wanted to, via tail duplication. (But we don't, because the drop flags have effectively zero runtime overhead, unlike RC.)

There are no comments on this comment yet.