News for hackers. Stuff that matters.
Re:New in RubyMotion: Blocks Rewrite, Retain Cycle Detection... by FooBarWidget on Tuesday July 23, 2013 @07:03PM (#6093485)
What? Python is ref counted. It releases at the time an object goes out of scope and has no references anymore... exactly like ARC. Although Python says its garbage collection is implementation-defined, in practice pretty much everybody uses CPython which uses refcounting. Where does the idea come from that Python releases at undeterministic time?
Re:New in RubyMotion: Blocks Rewrite, Retain Cycle Detection... by duaneb on Tuesday July 23, 2013 @07:10PM (#6093509)
> Where does the idea come from that Python releases at undeterministic time?

It's not the time that's undeterministic, it's that the 'deconstructor' may not be called at all if python can't guarantee collecting cyclical references in the right order. The object will still be released/deallocated.

In this sense, Objective-C—mostly because you have complete control over the reference counting—has superior reference counting semantics.

I'd like to note that there's nothing stopping Python from using similar approaches.