Get the latest tech news
Zig's New Async I/O
Asynchronicity is not concurrency.
This implementation will be present in the stdlib and is designed to generate machine code equivalent to using C (i.e. no extra machinery introduced in the executable, see later how that relates to virtual function calls). A side effect of proposal#23367, which is needed for determining upper bound stack size, is guaranteed de-virtualization when there is only one Io implementation being used (also in debug builds! This makes communication across a chain of Reader s more efficient, leaving to the final Writer(the sink) the duty to turn a splat operation into concrete bytes.
Or read this on Hacker News