Re:Mac Apps That Use Garbage Collection Must Move to ARC
by userbinator on Saturday February 21, 2015 @11:14AM
(#9085854)
I'm not so familiar with the Mac ecosystem, but is it really true that Apple decides what languages you can use to write your apps in?
[ Parent
| on HN ]
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by parasubvert on Saturday February 21, 2015 @11:22AM
(#9085891)
No. You can write it in whatever you want (even on iOS these days) though you can't depend on any third party pre-installations. IOW you need to be able to vendor in your 3rd party language and library dependencies, and use a thin Objective-C wrapper to make the whole thing natively executable.
This announcement is more about a feature in Objective-C being actively discouraged by refusing to distribute your app on their store. You can still use it if you distribute your app on your own.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by jimrandomh on Saturday February 21, 2015 @11:41AM
(#9085958)
> No. You can write it in whatever you want (even on iOS these days)
This is somewhat misleading. Apple bans all use of JIT compilation on iOS, which de facto eliminates languages that depend on it.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by greggman on Saturday February 21, 2015 @12:18PM
(#9086101)
I thought they just banned the use of code not embedded in your app. You are free to Jit. Just not files downloaded from the net. Only files embedded In your app
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by Ecco on Saturday February 21, 2015 @12:31PM
(#9086144)
No you can't jit. For a very simple reason: you cannot allocate memory that is both writable and executable.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by wging on Saturday February 21, 2015 @04:21PM
(#9086998)
For those who are wondering, you can still use an embedded webview, which does end up doing just-in-time compilation of javascript.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by m_mueller on Saturday February 21, 2015 @08:49PM
(#9087846)
Isn't JIT deactivated in webviews? I'm not even entirely sure it's activated in JavascriptCore.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by snowwrestler on Saturday February 21, 2015 @09:28PM
(#9087919)
As of iOS 8, webviews have the same JavaScript engine as Safari does, called Nitro, which I believe does do JIT compilation of JavaScript.
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by firloop on Sunday February 22, 2015 @04:41AM
(#9088870)
Well, UIWebView (the standard web view, pre iOS8) does not have Nitro, but WKWebView (introduced in iOS8) has Nitro. The only problem is that while they are similar, the WKWebview API is not feature complete with UIWebView, leading to a lack of adoption from big players such as Chromium.
[0]: https://code.google.com/p/chromium/issues/detail?id=423444
Re:Mac Apps That Use Garbage Collection Must Move to ARC
by gress on Sunday February 22, 2015 @11:03AM
(#9089768)
Jit is activated in webviews since iOS8