-
Notifications
You must be signed in to change notification settings - Fork 330
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
FYI - Experimenting with wasm support via Node.js #1040
Comments
Hi @mhdawson , This looks amazing !! Thank you so much. I have one small doubt when I was exploring the runtimes. I have a hunch that Just for example I was unable to find support for The reason this was a concern for me because the embedding wasm runtime in crun made a lot of sense only for Again this is more of my perception towards |
WASI is still experimental in Node.js and there is work to be done before it would be reasonable to be included in crun as an option. At this point I'm interested in exploring how the WASM support in Node.js can/will be used as the more use cases we find as that is a good way to drive work in the Node.js project. In terms of sock_accept is that officially part of the WASI spec, for some reason I had thought from discussion with @font that it was still "experimental" or something like that on the WASI side? |
@mhdawson ah i see.
|
@flouthoc thanks for clarifying that. |
@mhdawson WASI API proposals have several different phases. The socket APIs e.g. |
@flouthoc, @font I was looking at the Node.js implementation of the socket proposal and I think what stalled it out was WebAssembly/WASI#4. Do you know if that has effectively been abandoned and the current 4 methods defined are what will be in place going forward or will it still likely be replaced by the streaming approach mentioned in that issue? |
As an FYI I've been experimenting with wasm support via Node.js in a similar manner to how it is provided with wasmtime, wasmedge etc.
My experiement is here: https://github.com/mhdawson/crun/tree/node-wasm-experiment
An overview of how to build and try it out is in: https://github.com/mhdawson/crun/blob/node-wasm-experiment/NODE-WASM_EXPERIMENT.md
It's uses code from a PR not landed yet in Node.js since the Node.js embedder API does not have a C interface at this point so it's not ready/suitable for a PR, but was an easier way for me to experiment/prove out the concept.
So far I've only tried it out with Hello World, trying out example that use more of the WASI interfaces is a next step.
@font
The text was updated successfully, but these errors were encountered: