Hacker News new | ask | show | jobs
by cyberpunk 777 days ago
Is there any technical reason why one couldn’t run e.g clang or go compilers in this way? I assume you’re running javac on-device?
1 comments

No technical reason, but you won't be able to run a compiled binary due to policy. You need to use an interpreter.
I wonder if qemu with cpu=host counts...
Maybe run a VM inside Safari via QEMU and WASM that boots a Linux desktop environment
WASM is indeed one possible workaround. That's how a-Shell [1] manages to include a C compiler and run resulting programs at (I believe) better-than-interpreted speeds.

[1] https://holzschu.github.io/a-Shell_iOS/