This is a simple example that follows DynamicLinking.
Essentially, we have a few wasm modules that can pass structs and strings to each other, via shared mem & host-implemented malloc/free.
- I have implemented the host in js but other hosts could follow similar pattern.
- I have implemented the wasm in C but other languages could follow similar pattern.
- I added a thin wrapper around WASI and some stdlib stuff to aid in much lighter wasm. Currently, it does not implement much of stdlib, but this could be expanded by essentially copying wasi-libc, but importing malloc/free from host.