4 ms·
You could certainly generate a new Wasm module on the fly and then execute it from Javascript. Linking and sharing of memory should be possible. Pyodide can dy
by nickmain 4y ago
You could certainly generate a new Wasm module on the fly and then execute it from Javascript. Linking and sharing of memory should be possible.
Pyodide can dynamically load libraries that are separate Wasm modules so it is worth checking out how that works.
- aidenn0 4y agoIIRC inter-module calls are more expensive than intra-module calls though. WASM also doesn't allow for functions with variadic return counts.