-
Notifications
You must be signed in to change notification settings - Fork 206
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
Wasm components as replacement for lower level, e.g. libc implementations. Such as HTTP/time/random #2468
Comments
HttpClient implemented on top of wasi-http makes sense as part of wasm/wasi story. I think runtimelab is a good place to start experimenting with this, give that these wasi interfaces are not very baked and changing frequently. @pavelsavara @maraf @SteveSandersonMS @lewing Do you have anything to add? |
I'm looking forward to learn more from this experiment. 👀 Questions
Notes about browser implementation (for context)
|
I guess HTTP server/kestrel would be separate stream of work ? Maybe /~https://github.com/microsoft/reverse-proxy could be great test case. |
Streams (defined as
streams, (
Some tests are passing, strings, numbers for example. We are building out support for preview 2 in /~https://github.com/bytecodealliance/wit-bindgen. As for a demo, the easiest thing is the work Steve Sanderson has been doing on a SDK, /~https://github.com/dotnet/dotnet-wasi-sdk However we may have just broken that by updating the packages from 8 to 9, and including support for the new |
wasi-http does include an interface for incoming connections, so would be related, but probably separate, if I understand where you are coming from correctly. |
Wasi and Wasm components are providing some "worlds" or interfaces over functionality such as HTTP (/~https://github.com/WebAssembly/wasi-http). From a user perspective, if you were targeting wasm-wasi and wanted to use HTTP, it seems like it would be nice to continue to use
System.Net.Http.HttpClient
, set some build option and haveHttpClient
switch to importing the WIT world and allowing the implementation to be supplied as a component.Other Wasi components exists (and are dependencies of wasi-http), such as random, and time. Same would apply there. Is that an area that would be appropriate here in runtimelab, or are there deeper conversations that Microsoft would want to have internally first?
The text was updated successfully, but these errors were encountered: