4 ms·
"Zig 0.5.0 introduced async functions. This feature has no dependency on a host operating system or even heap-allocated memory. That means async functions are a
by haolez 6y ago
"Zig 0.5.0 introduced async functions. This feature has no dependency on a host operating system or even heap-allocated memory. That means async functions are available for the freestanding target.
Zig infers whether a function is async, and allows async/await on non-async functions, which means that Zig libraries are agnostic of blocking vs async I/O. Zig avoids function colors."
Nice! I had the impression that Zig wasn't so simple as I've imagined it due to features like this, but this actually sounds like a lot of thought was put into this to adhere to Zig's principles. Looks cool!
- jedisct1 6y agoSee https://kristoff.it/blog/zig-colorblind-async-await/ https://kristoff.it/blog/zig-colorblind-async-await/ for more information about Zig's “Colorblind” Async/Await.
- j1elo 6y agoThanks, I got from this a nice reading, a new video for my watch list, and a new Twitch channel to follow... not bad!
- agumonkey 6y agoFinally