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
[ Parent
| on HN ]
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