3 ms·
Great to see another lua based service. I'm running http://geolua.com/ http://geolua.com/ which also uses Python (and even gunicorn) for the web interface and l
by dividuum 14y ago
Great to see another lua based service. I'm running http://geolua.com/ http://geolua.com/ which also uses Python (and even gunicorn) for the web interface and lua (in a custom libevent based server) for running user provided lua code. I sandboxed lua using chroot, a custom allocator function, runtime limits using signals and an "outer" lua environment which interfaces with the python code. The inner environment should be safe. I guess :-)
How do you handle 'a = " "; while true do a = a .. a end'? Do you spawn individual processes with process limits? Which version of lua are you using? Why not luajit2?
- smarx 14y agoGeolua looks cool. Thanks for sharing it. It sounds like we're doing some similar things. Custom allocators are definitely the way to go to limit memory usage. We also use process-level isolation to limit the amount of execution time. We're Lua 5.1 and not luajit2 for now for vague technical integration reasons that we may very well revisit as this takes off.