Remix.run Logo
tcoff91 2 days ago

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.

faangguyindia 2 days ago | parent [-]

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.

Cloudef 2 days ago | parent [-]

Apple does not allow running code from internet either (even if interpreted iirc)

That said shipping JIT / interpreter with your program to recompile updates / parts of it sounds silly to me.

faangguyindia 2 days ago | parent | next [-]

>That said shipping JIT / interpreter with your program to recompile updates / parts of it sounds silly to me.

why is it silly? modern phones can easily do this (they are running local llm, what issue is with jit?), if it's done one time per update what's the problem?

what's the problem with jitting couple of hot paths which have been updated and were not part of base app?

>Apple does not allow running code from internet either (even if interpreted iirc)

And how is React native expo/eas updates are working then? Isn't it downloading a bytecode bundle?

Afaik, interpreter is allowed. JIT isn't?

tcoff91 2 days ago | parent | prev [-]

There's 2 different parts of their terms about this. One seems to forbid it. The other basically says that you can do it as long as you aren't shipping some kind of update to the app that changes its nature significantly. Basically the generally accepted viewpoint in the industry is that you can OTA bugfixes and small changes but you if you ship whole features without going through app store review first you are definitely on thin ice.