views:

781

answers:

4

According to this discussion, the iphone agreement says that it doesn't allow "loading of plugins or running interpreted code that has been downloaded".

Technically, I would like to download scripts from our server (embedded in a proprietary protocol).

Does this mean I wouldn't be allowed to run a runtime like v8 in an iphone app?

This is probably more of a legal question.

+3  A: 

I think your interpretation is correct - You would not be allowed to download and execute JavaScript code in v8.

If there were some way to run the code in an interpreter already on the iPhone (i.e. the javascript engine in MobileSafari) then that would be permitted I think.

Matt Sheppard
+1  A: 

Well I embedded Lua into my application already and am programming most of the login in Lua and then downloading it to my iPhone for fast iteration, but this is only intended during development. Once I ship the scripts will be placed in the source and compiled into byte-code shipped along with the app just like any other resource.

I'd say this applies to V8 aswell.

Robert Gould
+1  A: 

I concur. My reading is also that DOWNLOADED scripts are not allowed. Pre-installed and user-written scripts are fine. But it is a fine distinction and IANAL etc etc.

schwa
+1  A: 

This is partially a technical question too. V8 as currently implemented won't run on the iPhone. No JIT-based VM will.