3 ms·
Always nice to see janet getting some attention. shout out to one modern feature: sandbox "Disable feature sets to prevent the interpreter from using certain
by ramblurr 4mo ago
Always nice to see janet getting some attention.
shout out to one modern feature: sandbox
"Disable feature sets to prevent the interpreter from using certain system resources. Once a feature is disabled, there is no way to re-enable it."
https://janet-lang.org/api/misc.html#sandbox https://janet-lang.org/api/misc.html#sandbox
- declan_roberts 4mo agoIt's a really cool feature but what is a scenario when your average programmer needs such sandboxing?
- myaccountonhn 4mo agoI sandbox all my utilities and programs in case some compromised third-party dependency decides to run lose. It's a way to limit the blast radius.
- briaoeuidhtns 4mo agoyou're embedding it as a scripting api and want to limit permissions to just what's needed
- petee 4mo agoThe TIC-80 game engine embeds Janet, and if i recall sandboxes the games created