Hacker News new | ask | show | jobs
by karolist 902 days ago
Is there any philosophical difference in playing your game using ScummVM versus playing a JavaScript game on some website using Safari for iOS?
2 comments

Since there are literal emulators written in JavaScript, the answer must be no.
Apple controls the JS sandbox in Safari, whereas they don’t control the ScummVM scripting sandbox. In theory it’d allow the execution of arbitrary scripts that can do anything native code can do, although I don’t know - maybe ScummVM checksums the games you load into it and will only run code it recognizes (and if so, maybe that’s why it’s allowed).
> Apple controls the JS sandbox in Safari, whereas they don’t control the ScummVM scripting sandbox.

AppStore apps themselves are sandboxed too. You can’t execute all arbitrary code just because it’s an app.