4 ms·
Just wondering aloud: Due to issues like no JIT on iOS, do platforms like react-native use AOT JS compilation? If not, why not?
by supermatt 5y ago
Just wondering aloud: Due to issues like no JIT on iOS, do platforms like react-native use AOT JS compilation? If not, why not?
- joshum97 5y agoHere’s the relevant section: > In most cases, React Native will use JavaScriptCore, the JavaScript engine that powers Safari. Note that on iOS, JavaScriptCore does not use JIT due to the absence of writable executable memory in iOS apps.
- kiliancs 5y agoSince recently, it's possible to use Hermes https://reactnative.dev/blog/2021/03/12/version-0.64 https://reactnative.dev/blog/2021/03/12/version-0.64
- whizzter 5y agoiirc the Hermes has AOT'd bytecode but not real native execution, from what I read they couldn't get the performance up enough to offset the size cost vs their bytecode and for many regular React-native apps absolute performance isn't as important as not being waaay too bloated.