Support running inside kmp wasm & js
Heyho,
What would be needed to make chasm run inside kotlin multiplatform WASM and JS targets?
Last time i checked it relied on a just based memory library, could this be ported somehow?
I have a use case where a nested/browser multiplatform target supporting custom wasm "plugins" would be great fun.
Kind Regards, Stephan
I'm not sure it makes much sense as the runtime built into the browser is both faster to interpret but can also JIT which blows chasms performance out of the water. Would you be able to expand on exactly what you're attempting to do? I feel like any scenario I can think of would be better served giving the wasm binaries to V8 instead of chasm 🤔
As of 2.0.0-1.2.0 Chasms plugin now supports generating code that works across JS targets so I'm going to close this.
Please note this does not mean chasm (the virtual machine) supports JS, the plugin is able to leverage the virtual machine embedded in the browser instead which is far superior