Am I allowed to run javascript runtime (e.g. v8) on iPhone?

According to this discussion , the iphone convention says that it does not allow β€œto load plugins or run interpreted code that has been downloaded”.

Technically, I would like to download scripts from our server (built-in to my own protocol).

Does this mean that I am not allowed to run a runtime such as v8 in an iphone application?

This is probably more of a legal issue.

+6
c ++ javascript iphone
source share
4 answers

I think your interpretation is correct - you will not be allowed to download and execute JavaScript code in version 8.

If there was any way to run the code in the interpreter already on the iPhone (i.e. the javascript engine in MobileSafari), then I would be allowed to think.

+4
source share

This is also a technical issue. V8, as currently implemented, will not work on the iPhone. No JIT-based VM.

+2
source share

Well, I already put Lua in my application and program most of the login in Lua, and then download it to my iPhone for a quick iteration, but this is for development only. As soon as I submit, the scripts will be placed in the source code and compiled into the byte code that comes with the application, like any other resource.

I would say that this also applies to V8.

+1
source share

I agree. My reading also is that DOWNLOADED scripts are not allowed. Pre-installed and user-written scripts are in order. But this is a great difference, IANAL, etc. Etc.

+1
source share