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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of New

New

Photo of zig

zig

Photo of async

async

Related news:

News photo

AMD Merges New RDNA 3.5 iGPU Firmware Files Ahead Of Next Product Launch

News photo

Everything New in iOS 26 Beta 3

News photo

New Galaxy Z Flip 7 leak reveals a massive upgrade