News for hackers. Stuff that matters.
Re:Swift Ported to Android by mixedCase on Thursday February 25, 2016 @11:41AM (#11175599)
Doesn't perform well enough outside of high-end devices.
Re:Swift Ported to Android by mwcampbell on Thursday February 25, 2016 @11:57AM (#11175747)
Do you have anything to back that up?
Re:Swift Ported to Android by seivan on Thursday February 25, 2016 @12:02PM (#11175792)
Run some lists with images on them on iPhone 5. Anecdotal, and I am sure you can dig into metal to improve performance, but out of the box, it's kinda poor. I still like React and I'm hopeful React-Native will improve.
Re:Swift Ported to Android by mwcampbell on Thursday February 25, 2016 @12:12PM (#11175883)
Thanks. I wonder how much of that is due to the fact that JavaScriptCore can't use JIT compilation when running in an iOS application other than Safari.
Re:Swift Ported to Android by andrewjl on Thursday February 25, 2016 @01:46PM (#11176672)
As of iOS 8 that's no longer the case. JSC JIT compilation can be used in native apps. (It's also used by WKWebView.)

http://trac.webkit.org/wiki/JavaScriptCore

"JavaScriptCore is an optimizing virtual machine. JavaScriptCore consists of the following building blocks: lexer, parser, start-up interpreter (LLInt), baseline JIT, a low-latency optimizing JIT (DFG), and a high-throughput optimizing JIT (FTL)."

Re:Swift Ported to Android by DerekL on Thursday February 25, 2016 @05:54PM (#11178505)
Apps can use JavaScriptCore, and JavaScriptCore can use JIT, but these can't happen together, because third-party apps aren't permitted to execute writeable memory.

http://stackoverflow.com/questions/22281265/is-javascriptcor...

Re:Swift Ported to Android by andrewjl on Thursday February 25, 2016 @05:58PM (#11178529)
This is good to know. Looks like the only way to make use of JIT (by someone who isn't Apple) is to use a WKWebView to execute the JS.
Re:Swift Ported to Android by zepto on Thursday February 25, 2016 @04:36PM (#11178012)
This has been false for years.
Re:Swift Ported to Android by ewmailing on Thursday February 25, 2016 @03:01PM (#11177350)
I haven't used React Native, but I've done quite a bit with native bridging with JavaScriptCore and v8. If your performance bottlenecks are crossing the Javascript-to-native boundary, JIT can't help you. And crossing the bridge boundary isn't the cheapest operation.
Re:Swift Ported to Android by mwcampbell on Thursday February 25, 2016 @07:20PM (#11178975)
That isn't an issue with React Native, which runs JS on its own thread and implements an asynchronous, batched bridge between JS and native.