4 ms·
Does it allow sandboxing, or is Lua still the only good option for that? There are so many cases where you'd rather not give extension scripts unlimited access
by gary_0 3y ago
Does it allow sandboxing, or is Lua still the only good option for that?
There are so many cases where you'd rather not give extension scripts unlimited access to the OS and file system, you'd think this option would be more common...
- eptcyka 3y agoDepending on if it supports the various CPython APIs, it'd be non-trivial to sandbox it. On the other hand, if it doesn't expose a CPython API, is it really python?
- galangalalgol 3y agoThe CPython API is the main source of overhead in FFI. It is why using numpy to multiply lots of small matricies is so much slower than one large one. This has prompted people to support the simpler and faster HPy API. https://docs.hpyproject.org/en/latest/overview.html https://docs.hpyproject.org/en/latest/overview.html
- SkiFire13 3y agoNote that Lua is not sandboxed by default. You need to thinker a bit with it or use Luau to actually make it sandboxed.