> a WASI runtime for Python [2] to run Python code inside WASM inside the engine
This looks very interesting and relevant to our work. Can you please elaborate?
WMWare labs [1] managed to compile Python/Ruby/PHP into WASM distributions. This works if you want to run the language interpreter but is limited when you want your WASM runtime to run in parallel of your own program. This leads to the creation of the "reactor" concept by the community [2].
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/...