← Back to context

Comment by ramblurr

5 hours 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

It's a really cool feature but what is a scenario when your average programmer needs such sandboxing?

  • I 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.

  • The TIC-80 game engine embeds Janet, and if i recall sandboxes the games created