4 ms·
They are currently only targeting desktop but I wonder how would you port something like this to iOS, I don't think iOS let's you run a WASM AOT/JIT or similar
by dathinab 2y ago
They are currently only targeting desktop but I wonder how would you port something like this to iOS, I don't think iOS let's you run a WASM AOT/JIT or similar on iOS. Would you AOT compile WASM to ARM64 and ship that?
- SirGiggles 2y agoa-Shell [1][2] has WebAssembly (and WASI) support and ships with a compiler that compiles to, you guessed it, Wasm. Though there are limitations on what can be done, such as no sockets, no forks, and etc... [1] https://github.com/holzschu/a-shell https://github.com/holzschu/a-shell [2] https://holzschu.github.io/a-Shell_iOS/ https://holzschu.github.io/a-Shell_iOS/
- dathinab 2y agoI did a bit of research: around 2020 Apples iOS added technical support for JIT, but the chances that your app gets approved are slim you can AOT wasm to a normal dynamic library and ship that various wasm runtimes support an interpreter mode, this slow but might still be fast enough JavaScripCore supports WASM so you can make apple run the WASM for you ... but more or less in a browser sandbox. The app store still has rules forbidding any form of dynamic execution of code which wasn't either shipped with the app or typed by the user independent of technical solution.