30 ms·
> WASI still leaves something to be desired. Why can't I have raw sockets and file access and stuff, in a POSIX-like way? FWIW, that's exactly what they shippe
by muvlon 4mo ago
> WASI still leaves something to be desired. Why can't I have raw sockets and file access and stuff, in a POSIX-like way?
FWIW, that's exactly what they shipped first, with WASI preview 1 (wasip1). You can still use this today, and all runtimes with any level of WASI support will be able to run it.
- phickey 4mo agoWasip1 did not specify sockets. Some implementations have made non-standard additions to add them, but sockets were not added to the standard until wasip2.
- muvlon 4mo agoSockets are officially specified in wasip1: https://wasi.dev/releases/wasi-p1 https://wasi.dev/releases/wasi-p1 Notably, listen and connect are missing. But sockets themselves were in there.