3 ms·
You compile C to « js ». Then pdf readers being able to execute js, you can basically execute C.
by bsaul 6y ago
You compile C to « js ». Then pdf readers being able to execute js, you can basically execute C.
- gpvos 6y agoIf you have an eval function or some kind of API to start that execution.
- josefx 6y agoOr run your own JavaScript interpreter, of course nesting interpreters that way is going to be horribly slow.
- xg15 6y agoI mean, despite all the weirdness, it's all still run by Chrome's V8 in the end, so it might work...
- bawolff 6y agoEval() is part of the js language so you obviously do. But regardless you could make your own interpreter if neccessary. You could compile to x86 and then run it in your own VM if you felt like it.