4 ms·
> in the automatic case ... it's largely correct but often somewhat slower (because it can't elide anything) Not entirely true; in the case of ARC in Swift/Obj
by wool_gather 8y ago
> in the automatic case ... it's largely correct but often somewhat slower (because it can't elide anything)
Not entirely true; in the case of ARC in Swift/ObjC a lot of effort was put in to optimizing retains and releases wherever possible. The de facto standard platform for ObjC (Apple's) had a strong set of conventions around memory management already. They were formalized in such a way that some of the defensiveness required in manual retain/release could actually be proved unnecessary in ARC code. (A few semantic changes were made to ObjC as well to support ARC.) Not in all cases, of course, but also not in none.
- pjmlp 8y agoI guess that effort is still not good enough. "35C3 - Safe and Secure Drivers in High-Level Languages" https://www.youtube.com/watch?v=aSuRyLBrXgI https://www.youtube.com/watch?v=aSuRyLBrXgI https://github.com/ixy-languages/ixy-languages https://github.com/ixy-languages/ixy-languages
- wool_gather 8y agoInteresting, thanks! Added to my to-read list.