by mildbyte · 4y ago · 0 comments
In addition, you can limit the amount of instructions [4] a certain subroutine is allowed to use up before halting.
Also, WASM subroutines can only call out to functions (including system calls) that you allow them to (they're sandboxed otherwise). By default, they can't open files / print to stdout, unless the module can import the relevant functions (which WASI [5] provides).
[1] https://www.splitgraph.com/docs/seafowl/guides/custom-udf-wa...
[2] https://www.scylladb.com/2022/04/14/wasmtime/
[3] https://blog.cloudflare.com/announcing-wasi-on-workers/
[4] https://docs.wasmtime.dev/api/wasmtime/trait.ResourceLimiter...