4 ms·
Any suggestions for the language? The game and site are written in Python so that seemed most natural, plus it's a high-level language with a simple syntax. I c
by brandonhsiao 13y ago
Any suggestions for the language? The game and site are written in Python so that seemed most natural, plus it's a high-level language with a simple syntax. I could add more if people wanted though.
- tarikjn 13y agoMaybe Lua would be a good candidate? From the usages I have seen of Lua, it could match the use case.
- anonymoushn 13y agoOP, if you do go with Lua, this sandbox seems to work when combined with ulimit: https://github.com/jnwhiteh/luasandbox https://github.com/jnwhiteh/luasandbox If you test on Mac OS, you should be aware that ulimit is not capable of limiting memory in Mac OS.
- wtracy 13y agoIt's a little obscure, but look at Embryo: http://docs.enlightenment.org/auto/embryo/ http://docs.enlightenment.org/auto/embryo/ The interpreter was specifically designed with the assumption that Embryo scripts would come from untrusted sources. I believe that Enlightenment allows Embryo scripts to be embedded inside of theme files, for example.
- code_duck 13y agoMake it language neutral - communicate by HTTP. That would also greatly reduce security concerns.