What languages not developed by apple have implemented something similar to arc?
@snoble reference counting is pretty common, actually (and generally not considered a great approach). Python uses it; older lisps.
-
-
@avibryant fascinating... So what is the newest and hippest option? -
@snoble for the last 20 years, some version of generational GC. Super hip is Rust-style static lifetime analysis. -
@avibryant@snoble Re Cocoa and Rust, autorelease pools are in a way a poor man's Rust-like static analysis. -
@patrickc@avibryant can you sum up the core distinguishing feature of static analysis over autorelease pools? In 140 characters of course -
-
New conversation -
-
-
@snoble from what I remember, though, it's pretty deeply baked into Cocoa; I think Swift had no choice but to use it. -
@avibryant@snoble It's also not clear to me it's a bad choice. More predictable performance, arguably better on memory-constrained devices. -
@nelhage@avibryant I wonder what the minimal amount of code you'd have to write to be able to start benchmarking -
-
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@avibryant@snoble and more recently, rust: http://static.rust-lang.org/doc/master/sync/struct.Arc.html … -
@kmrhb
@avibryant@snoble Also available in fast single-threaded flavor: http://static.rust-lang.org/doc/master/std/rc/struct.Rc.html …
End of conversation
New conversation -
-
-
@avibryant@snoble Mathematica too.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.