| ▲ | lifty 2 hours ago | |||||||
If you have used WASI in the past, can you mention your use case? Very curious if you found it to give you an edge compared to other sandboxing like containers or VMs. | ||||||||
| ▲ | CharlesW 11 minutes ago | parent | next [-] | |||||||
> If you have used WASI in the past, can you mention your use case? For my "TagLib for TypeScript" library, I use WASI for local filesystem operations when used with Node.js/Deno/Bun. https://github.com/CharlesWiltgen/taglib-wasm | ||||||||
| ▲ | pie_flavor 29 minutes ago | parent | prev | next [-] | |||||||
WASI is the best format for code submitted by users, entirely untrusted, which is in principle of any complexity but expected to be pretty simple. It works on any platform, in any environment, with extreme and direct control over its access to every resource and its ability to execute at all. Wasmtime's "fuel" feature is not something you can do with containers, and if you can do it with VMs then I don't know about it, but VMs are behemoths for the task of executing a simple function that would in an alternate universe be CEL. | ||||||||
| ▲ | utopiah 2 hours ago | parent | prev | next [-] | |||||||
I tinkered with https://extism.org and basically the use case is that they suggest, namely you can extend software in another programming language but without having to setup a container or VMs on the client. They "just" run the code in the browser and it can be JavaScript, sure, but can also be Python, Go, whatever. It's quite specific though as I'm working on support programming in the browser. If you are not deep into letting a very specific kind of user extend, it's probably overkill. Even then it's a very VERY niche thing because it has to be simultaneously : - someone who is opinionated about a programming language (either because they know too much, i.e. expert, or not enough, i.e beginner) - is dedicated enough to want to try to build something on top of an existing system - does not want to bother with solutions you mentioned | ||||||||
| ||||||||
| ▲ | feznyng an hour ago | parent | prev | next [-] | |||||||
In-process sandboxed llm-generated code execution. Considerably lighter weight, faster to boot (assuming pre-compilation) than Docker or spinning up micro-VMs. | ||||||||
| ▲ | airstrike 2 hours ago | parent | prev | next [-] | |||||||
Extending my Rust binary with a marketplace of WASM-based extensions like VSCode | ||||||||
| ▲ | spankalee an hour ago | parent | prev | next [-] | |||||||
I'm using it for a secure, language agnostic workflow orchestrator. Components have very finely-grained and controller permissions and access to data. They don't even get clocks by default (to mitigate against Spectre-style attacks) and credentials and tainted data are sequestered. | ||||||||
| ▲ | jedisct1 2 hours ago | parent | prev | next [-] | |||||||
The best usage example of WASI I know of is the Zig compiler: https://ziglang.org/news/goodbye-cpp/ | ||||||||
| ▲ | tdhz77 2 hours ago | parent | prev | next [-] | |||||||
Edge rural farm systems | ||||||||
| ▲ | OtomotO 2 hours ago | parent | prev | next [-] | |||||||
extending software with a plugin system | ||||||||
| ▲ | visha1v 5 minutes ago | parent | prev | next [-] | |||||||
[dead] | ||||||||
| ▲ | hectaman an hour ago | parent | prev [-] | |||||||
[flagged] | ||||||||