logoalt Hacker News

tcoff91yesterday at 11:35 PM1 replyview on HN

You can't update any AOT code due to how code signing works in these OS. And Apple completely bans JIT on iOS and iPadOS.


Replies

faangguyindiayesterday at 11:40 PM

no, i am not asking for AOT OTA update.

AOT will be in base app and it will include JIT or Interpreted OTA updates.

For Apple, JIT can simply be disabled and OTA update can run patched part in interpreter.

But JIT works on Android (well), so this Hybrid system is capable of being much faster than React Native where your JS code only runs in Hermes VM which isn't JIT.

In this system, all your crazy math and algorithms (on hot path) stay easily updatable as this small part can be run on JIT with snapshot saved for next load if it has not changed!

JIT on average is 100x faster than dumb interpreter for language like Dart.

Does it already exist? otherwise i am seriously thinking about building something like this.

show 1 reply