3 ms·
> The App Store doesn’t allow dynamically generated code to be marked executable (i.e. JIT compilation) Unless it’s JavaScript. I see a missed opportunity here
by tambourine_man 6y ago
> The App Store doesn’t allow dynamically generated code to be marked executable (i.e. JIT compilation)
Unless it’s JavaScript. I see a missed opportunity here: compile everything to ASM.js! :)
I’m only half-kidding.
- saagarjha 6y agoIt's been on our minds for a while, the major issues with this is that IPC between the app process and WebKit is like 100µs, so having the interpreter run isolated from the app process is hard. Plus loading WASM is not "free" (that is, essentially an instruction cache flush) because you need to generate a bundle that WebKit will then load, which is slow (although there has been work done in this area: https://www.youtube.com/watch?v=7JUs4c99-mo https://www.youtube.com/watch?v=7JUs4c99-mo). So even if we did some sort of WASI thing where everything is going on in the browser, there are hurdles to overcome to make this viable. Plus the current interpreter almost certainly leaves performance on the table ;)
- tambourine_man 6y agoIt’s so cool that you have actually considered it. Imagine what developers could do if Apple loosened those restrictions a bit.