Another way is running a WebAssembly implementation that supports this, such as Wasmi. Wasmi can also be compiled quite well to WebAssembly, so it can work in the browser. It would be slower, but better in some cases for running untrusted code.
https://t.co/GyATUB4LxB
Sandbox security is evolving with MicroQuickJS and this, which not only prevent arbitrary file and network access but also prevent CPU or memory overuse by untrusted code.
Fuck it, a bit early but here goes:
Monty: a new python implementation, from scratch, in rust, for LLMs to run code without host access.
Startup time measured in single digit microseconds, not seconds.
@mitsuhiko here's another sandbox/not-sandbox to be snarky about ����
Thanks @threepointone @dsp_ (inadvertently) for the idea.
https://t.co/UuCYneMQ9j
In plain WebAssembly there isn't a way to limit the stack size or how much CPU time is permitted through configuration, but with these two (whether run with or without WebAssembly) it can be controlled pretty easily.
7. The Vision
The future of software is composable — built from reusable pieces, not from scratch.
https://t.co/tpQtYjSNWR is building that future with a global community.
https://t.co/tpQtYjSNWR is an open-source platform that makes it easy to explore, use, and share APIs, tools, and components for building modern apps. #opensource#json#data#api
https://t.co/tpQtYjSNWR can explore any CORS-friendly API in seconds.
Today I pulled live Bitcoin Treasury data with 1 command:
request :get https://t.co/BCTNonzgDi
The console auto-parses data into a browsable tree.
Zero code 0 friction.
Try it → https://t.co/Dk9eDcEgNc