What does HackerNews think of webassembly-language-runtimes?
Wasm Language Runtimes provides popular language runtimes (Ruby, Python, …) precompiled to WebAssembly that are tested for compatibility and kept up to date when new versions of upstream languages are released
- [0] https://github.com/vmware-labs/webassembly-language-runtimes
In the python WASI reactor, we load the libpython compiled for WASM and add a Rust reactor layer. Currently, it supports dynamic registration of Python lambdas and we are working on adding support for whole functions/packages.
[1] https://github.com/vmware-labs/webassembly-language-runtimes [2] https://github.com/bytecodealliance/wasmtime/blob/main/docs/...
Many server-side Wasm runtimes supports WASI out of the box. For the browser, you need to provide a polyfill to emulate these resources like the one provided by the WASI team [2].
Regarding SQLite, these builds include libsqlite so you should be able to use it :)
- [0] https://github.com/vmware-labs/webassembly-language-runtimes
- [1] https://wasi.dev/
- [0] https://github.com/vmware-labs/webassembly-language-runtimes...
$ echo salaboy | wazero run ruby-3.2.0.wasm -ne 'print "Hello "; print'
Hello salaboy
Of course getting and gems etc gets weird in wasm..
Anyway, thanks to VMware labs for publishing interpreter wasm builds, people can play around. https://github.com/vmware-labs/webassembly-language-runtimes...
Random, but enjoy.
[1] https://github.com/vmware-labs/webassembly-language-runtimes...