3 ms·
Sounds a lot like TCL's Safe interps?
by jakobson14 2y ago
Sounds a lot like TCL's Safe interps?
- a-french-anon 2y agoYeah, first thing that came to my mind too. Though at a deeper level than simply replacing global procs. Overview for unfamiliar readers: https://www.tcl.tk/software/plugin/safetcl.html https://www.tcl.tk/software/plugin/safetcl.html https://wiki.tcl-lang.org/page/Config+file+using+slave+interp https://wiki.tcl-lang.org/page/Config+file+using+slave+inter...
- jakobson14 2y agoStill blows my mind that TCL includes a firewall and virtual filesystem layer. https://wiki.tcl-lang.org/page/firewall https://wiki.tcl-lang.org/page/firewall https://wiki.tcl-lang.org/page/VFS https://wiki.tcl-lang.org/page/VFS https://wiki.tcl-lang.org/page/tclvfs https://wiki.tcl-lang.org/page/tclvfs You can even build a FUSE filesystem in TCL!
- jakobson14 2y agoOh, side note: Safe interps now have available time limits and a few other measures, though it seems memory allocation limits are a harder nut to crack due to all the places a memory allocation can occur in the TCL interpreter. https://www.tcl-lang.org/man/tcl8.5/TclCmd/interp.htm#M46 https://www.tcl-lang.org/man/tcl8.5/TclCmd/interp.htm#M46