Tech News
← Back to articles

Zig – io_uring and Grand Central Dispatch std.Io implementations landed

read original related products more articles

This page contains a curated list of recent changes to main branch Zig.

Also available as an RSS feed.

This page contains entries for the year 2026. Other years are available in the Devlog archive page.

February 13, 2026 io_uring and Grand Central Dispatch std.Io implementations landed Author: Andrew Kelley As we approach the end of the 0.16.0 release cycle, Jacob has been hard at work, bringing std.Io.Evented up to speed with all the latest API changes: io_uring implementation

Grand Central Dispatch implementation Both of these are based on userspace stack switching, sometimes called “fibers”, “stackful coroutines”, or “green threads”. They are now available to tinker with, by constructing one’s application using std.Io.Evented . They should be considered experimental because there is important followup work to be done before they can be used reliably and robustly: better error handling

remove the logging

diagnose the unexpected performance degradation when using IoMode.evented for the compiler

for the compiler a couple functions still unimplemented

more test coverage is needed

builtin function to tell you the maximum stack size of a given function to make these implementations practical to use when overcommit is off. With those caveats in mind, it seems we are indeed reaching the Promised Land, where Zig code can have Io implementations effortlessly swapped out: const std = @import ( "std" ) ; pub fn main ( init : std . process . Init . Minimal ) ! void { var debug_allocator : std . heap . DebugAllocator ( . { } ) = . init ; const gpa = debug_allocator . allocator ( ) ; var threaded : std . Io . Threaded = . init ( gpa , . { . argv0 = . init ( init . args ) , . environ = init . environ , } ) ; defer threaded . deinit ( ) ; const io = threaded . io ( ) ; return app ( io ) ; } fn app ( io : std . Io ) ! void { try std . Io . File . stdout ( ) . writeStreamingAll ( io , "Hello, World!

... continue reading