High level problem:
I have a piece of Rust code that is compiled to wasm32 and running in the browser.
Inside the browser, I want to generate wasm32 code on the fly, and call it, passing it float* or int*
Previously, there were claims that this is not possible due to wasm32 not being designed for jit / dynamic code generation.
However, if I'm reading https://stackoverflow.com/questions/54348108/is-it-possible-to-do-dynamic-linking-in-webassembly-with-rust correctly, the following is possible:
4a. from rust running in browser/wasm32: generate some wast/wasm32 on the fly
4b. load the wasm32 module, sharing the 'address space' (i.e. something like a dlopen)
4c. call functions in the new module
If the above is true, does anyone have an example of doing this in Rust ?