Re:Mac Apps That Use Garbage Collection Must Move to ARC
by jimrandomh on Saturday February 21, 2015 @10:21AM
(#9085712)
What the fuck? This is a really bad technical decision. As written, it sounds like they're planning to reject garbage collection in-general, which would be a ban on most major programming languages. If you assume they only mean garbage collection in Objective C, it's still a head-scratchingly stupid decision. Modifying an app to not use garbage collection is, in many cases, a major project that will introduce a lot of bugs. And the benefit is... very dubious at best.
[ Parent
| on HN ]
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by wsc981 on Saturday February 21, 2015 @10:34AM
(#9085744)
I'm pretty sure this notification is only meant for apps using the Objective-C garbage collector, as the notification mentions that the GC was deprecated a while ago. I don't think a lot of Mac developers used the Objective-C GC anyway.
Finally Apple mentions the following in it's migration document [0]:
Is GC (Garbage Collection) deprecated on the Mac?
Garbage collection is deprecated in OS X Mountain Lion v10.8, and will
be removed in a future version of OS X. Automatic Reference Counting is
the recommended replacement technology. To aid in migrating existing
applications, the ARC migration tool in Xcode 4.3 and later supports
migration of garbage collected OS X applications to ARC.
Based on the above statement, my guess is that's Xcode has some build-in tools to convert GC code to ARC code, making the transition easier. ---
[0]: https://developer.apple.com/library/ios/releasenotes/Objecti...
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by tptacek on Saturday February 21, 2015 @10:58AM
(#9085807)
This is not a ban on garbage-collected programming languages.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by ZenoArrow on Saturday February 21, 2015 @11:07AM
(#9085832)
Perhaps, but I see no reference to 'Objective-C apps', the current wording of this summary is broad enough to include other languages as well. Do you have additional information that exempts Java, Mono, etc...?
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by parasubvert on Saturday February 21, 2015 @11:32AM
(#9085930)
All Mac native apps need an Objective-C Wrapper at minimum to give them an executable entry point (all apps are actually directory structures). You also on the App Store need to vendor in your dependencies. There's no language restriction in play. You can even still use the old GC if you want - just not on their store. The Mac App Store isn't the only game in town.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by ZenoArrow on Saturday February 21, 2015 @02:01PM
(#9086460)
Thank you for the information, useful to know about the requirement to build an application entry point in Objective-C.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by eknkc on Saturday February 21, 2015 @11:12AM
(#9085848)
Well it says "Move to ARC" so that narrows down the scope.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by ZenoArrow on Saturday February 21, 2015 @03:23PM
(#9086742)
That depends. AFAIK two languages support ARC right now, Objective-C and Swift. It's certainly possible for more languages to support it.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by dbaupp on Sunday February 22, 2015 @02:49AM
(#9088645)
That's slightly different: in Swift/Objective-C ARC == "Automatic Reference Counting". In Rust, Arc == "Atomic reference counting".
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by ZenoArrow on Saturday February 21, 2015 @02:00PM
(#9086450)
To those marking me down, it was a legitimate question, your reaction speaks volumes.
[deleted]
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by jimrandomh on Saturday February 21, 2015 @11:03AM
(#9085819)
Er, what? Transitioning from GC to ARC doesn't make code cleaner or reduce bugs. It eliminates GC pauses, which is a slight speedup, but the set of bugs that a garbage-collected program has are roughly a subset of the bugs that a reference-counted program can have.