3 ms·
The real tragedy of JIT for games is you can't use it on consoles (AFAIK it's always been forbidden as a threat to security). I'm not sure what the rules are fo
by shaggie76 4y ago
The real tragedy of JIT for games is you can't use it on consoles (AFAIK it's always been forbidden as a threat to security). I'm not sure what the rules are for mobile but I'd be surprised if Apple allowed it either.
- monocasa 4y agoYeah, iOS doesn't allow JITs except for javascriptcore.
- MBCook 4y agoAnd it’s speculated for the same reason. They’ve loosened up on interpreters, which is nice, but there is no way to make a JIT.
- MaxBarraclough 4y agoI believe you're permitted to write a JIT that uses JavaScriptCore as its backend. This presumably includes WebAssembly.
- stevefan1999 4y ago...add that to code generation part which means you will have to run a mini compiler + mini linker for each JIT program you run...how wasteful the CPU cycles and how power inefficient that would be
- pjmlp 4y agoUnless it is an OS service like on Android, Inferno, Oberon, or the big iron computers from IBM and Unisys (where I agree power consumption isn't that relevant). Which cache the generated code between runs, unless the original code changes, avoid each application shipping their own mini-JIT toolchain, and on Android's case AOT compile the application using the PGO data gathered by the JIT (also shared via PlayStore to other devices), when the device is idle and charging.