haraldh commented on issue #3729:
rebased
haraldh commented on issue #3729:
add
mio
for wasi example
haraldh edited a comment on issue #3729:
added
mio
for wasi example to first comment
sunfishcode commented on issue #3729:
This looks like it will be a good way to enable experimentation with the new WASI accept functionality.
Looking forward, the convention of having applications implicitly assume they can get environment variables like
LISTEN_FDS
is problematic for WASI. To make WASI programs modular and statically analyzable, we want to make API contracts explicit in imports and exports, rather than in dynamic environment-variable conventions. I expect what we'll want in the future is for this to use the Typed Main feature, and then to have WASI libc on the inside translate that back into makinggetenv("LISTEN_FDS")
return this information for compatibility.However, we can address that as the pieces needed to use Typed Main come online. For now, this looks good.
Last updated: Dec 23 2024 at 12:05 UTC