You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for adding support to modus!
The $moonbit.malloc is an internal function used by wasm linear to allocate memory, which is of course absent in wasm-gc. I think you can check out tonyfettes/memory as @tonyfettes has implemented support for both wasm backend and wasm-gc backend.
With that said, modus uses wazero, which does not have gc support yet. Same applies to component model, and that's why I didn't bother implement for the wasm-gc backend. I think you need to stick to the wasm backend for now.
Of course, we shouldn't just crash when an inline function is absent @myfreess@Guest0x0 . We'll see how we can improve this.
In this repo and directory:
https://github.com/gmlewis/modus/tree/add-moonbit-sdk/sdk/moonbit
I get this:
The
--target wasm
problem is probably a bug in my code, but I thought you would be interested in the--target wasm-gc
one above.The text was updated successfully, but these errors were encountered: