[$] Zig’s new plan for asynchronous programs

Post Syndicated from daroc original https://lwn.net/Articles/1046084/

The designers of the

Zig programming language
have been working to find a
suitable design for asynchronous code for some time.
Zig is a carefully minimalist language, and its

initial design
for
asynchronous I/O did not fit well with its other
features. Now, the project has

announced
(in a Zig SHOWTIME video) a new approach to asynchronous I/O that
promises to solve the

function coloring
problem, and allows writing code that will execute
correctly using either synchronous or asynchronous I/O.