4 ms·
Did sandboxing factor into the equation? My understanding is lua scripts in redis aren't sandboxed, other than the (possibly?) restricted api. But one could lim
by le-mark 8y ago
Did sandboxing factor into the equation? My understanding is lua scripts in redis aren't sandboxed, other than the (possibly?) restricted api. But one could limit heap with a custom allocator for example, and cpu cycles with a hook, if desired.
- bch 8y agoI think that wouldn’t be an argument for Lua over Tcl, as Tcl has facilities built especially for this type of environment: Safe Interpreters[0] and resource constraints[1] come to mind. [0] https://wiki.tcl.tk/4204 https://wiki.tcl.tk/4204 [1] https://www.tcl.tk/man/tcl/TclCmd/interp.htm#M47 https://www.tcl.tk/man/tcl/TclCmd/interp.htm#M47