-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate adding support for Nim ( and reactors ) #217
Comments
Thanks Paul! I've responded in discord. This looks very doable. Is there a description somewhere of how to call a WASI binary that uses reactors? I can see that you start by calling It looks like I might have to read more about the Component model and how it composes collections of imports/exports. |
There is no specific main loop function afterwards, the intention is that the user will then call specific WASM exports as necessary, see https://github.com/WebAssembly/WASI/blob/main/legacy/application-abi.md. For comparison, see bjorn3/browser_wasi_shim#17 for how another browser WASI shim implements support for WASI reactors. For wasi.instance = instance;
wasi.memory = instance.exports.memory;
instance.exports._initialize(); but one could also add a helper function (similar to |
Thanks @amesgen! This looks pretty simple to do. I've been trying to follow the NodeJS API (https://nodejs.org/api/wasi.html). I'll have a look at implementing it that way. |
i left you a note on discord about that. I had success to build wasi app with wasm-sdk-19 + Nim but i'm having trouble to find a wasi web runner that would offer support for reactors in order to set a standard for using https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame as it should
References:
The text was updated successfully, but these errors were encountered: