Re: [whatwg/streams] Efficient mapping to Unix-style APIs with pollable readers and writers (Issue #1265)

> I would hope that native code would use an abstraction layer on top of `poll`, `read` and `write` which would make it easier to adjust the semantics. That's what Chromium's network code does.
>
> Maybe we can just say "if you don't use an abstraction layer, you're going to get extra copies and you'll just have to accept it"?

To me that doesn't seem realistic because it means applications will need to write a custom I/O backend for their WASM port, since the native POSIX APIs don't work this way and Emscripten mimics a POSIX platform.

We should probably reach out to WASI folks to understand what their plans are for defining I/O system calls in WASI 2.0.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1265#issuecomment-1509369674
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1265/1509369674@github.com>

Received on Friday, 14 April 2023 22:52:31 UTC