I would like to provide end-user scripts (which will work on the server side) in the application. I read about it and found that the sandbox is much more complicated than I thought.
I don’t care what kind of language it is. LUA, Python, JavaScript, I'm fine with anyone readable.
How difficult is it to run a function in an unreliable script, passing some information and getting some more? I read the JVM Security Manager - this is non-go and that Python is almost not removable, but I have very little knowledge on this topic, and I can not judge the sources.
How can I, for example, interpret a function in JS that accepts JSON (from, say, Java, or Python, or even node.js) and returns the returned JSON?
I would like to avoid implementing the i-just-know-it-will-suck interpreter itself in python.
source
share