std.Io: introduce batching and operations API, satisfying the "poll" use case #30743

Merged
andrewrk merged 65 commits from poll into master 2026-01-31 12:07:34 +01:00
Owner

This branch introduces Io.Operation, std.Io.operate, std.Io.Batch, and implements them for FileReadStreaming. In std.Io.Threaded, the implementation is based on poll().

The idea here is that every VTable function that makes sense to have error{Canceled,Timeout} in its error set would be moved into this Operation tagged union. Note that the higher level API, e.g. std.Io.File.readFileStreaming is unchanged. We expect this to be lowerable in a reasonable fashion using IoUring, Kqueue, and Windows.

Motivation

  • general support for batching, timeouts, and non-blocking across all I/O operations
  • ability to migrate code that used poll() without causing error.ConcurrencyUnavailable on -fsingle-threaded builds
    • for example, processing stdout and stderr of child processes in a single-threaded application

Demonstration

Using std.process.run to collect both stdout and stderr in a single-threaded program using std.Threaded.Io. The point of this example is, if the parent naively reads from either stdout or stderr non-concurrently, it will deadlock.

child.zig:

const std = @import("std");
const Io = std.Io;

pub fn main(init: std.process.Init) !void {
    const io = init.io;

    var stdout: Io.File.Writer = .initStreaming(.stdout(), io, &.{});
    var stderr: Io.File.Writer = .initStreaming(.stderr(), io, &.{});

    try stdout.interface.splatByteAll('A', 5000);
    try stderr.interface.splatByteAll('B', 5000);
    try stdout.interface.splatByteAll('C', 5000);
    try stderr.interface.splatByteAll('D', 5000);
}

parent.zig

const std = @import("std");
const Io = std.Io;

pub fn main(init: std.process.Init) !void {
    const io = init.io;
    const arena = init.arena.allocator();

    const result = try std.process.run(arena, io, .{
        .argv = &.{"./child"},
    });
    std.debug.print("stdout:\n{s}\nstderr:\n{s}", .{ result.stdout, result.stderr });
}
$ stage3/bin/zig build-exe parent.zig -fsingle-threaded
$ ./parent
stdout:
AAAAAA...(x5000)CCCCC....(x5000)
stderr:
BBBBBB...(x5000)DDDDD....(x5000)
$ strace ./parent
...
pipe2([8, 9], O_CLOEXEC)                = 0
fork()                                  = 3305035
close(9)                                = 0
close(4)                                = 0
close(6)                                = 0
munmap(0x7fb1cec93000, 53248)           = 0
munmap(0x7fb1ceb40000, 131072)          = 0
read(8, "", 8)                          = 0
close(8)                                = 0
mmap(0x7fb1ceca0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1cf009000
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=129}], 1) = 129
readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=129}], 1) = 129
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=194}], 1) = 194
readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=194}], 1) = 194
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=291}], 1) = 291
readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=291}], 1) = 291
mremap(0x7fb1cf009000, 4096, 8192, 0)   = -1 ENOMEM (Cannot allocate memory)
mmap(0x7fb1cf00a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1cf007000
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=436}], 1) = 436
readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=436}], 1) = 436
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=654}], 1) = 654
readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=654}], 1) = 654
mremap(0x7fb1cf007000, 8192, 12288, 0)  = -1 ENOMEM (Cannot allocate memory)
mmap(0x7fb1cf009000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1cf003000
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=981}], 1) = 981
readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=981}], 1) = 981
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=1472}], 1) = 1472
readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=1472}], 1) = 1472
mremap(0x7fb1cf003000, 16384, 20480, 0) = -1 ENOMEM (Cannot allocate memory)
mmap(0x7fb1cf007000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1ced42000
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=2208}], 1) = 2208
readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=2208}], 1) = 2208
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"..., iov_len=3312}], 1) = 3312
readv(5, [{iov_base="DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"..., iov_len=3312}], 1) = 3312
mremap(0x7fb1ced42000, 32768, 49152, 0) = -1 ENOMEM (Cannot allocate memory)
mmap(0x7fb1ced4a000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1cec8e000
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
readv(3, [{iov_base="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"..., iov_len=4968}], 1) = 323
readv(5, [{iov_base="DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"..., iov_len=4968}], 1) = 323
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLHUP}, {fd=5, revents=POLLHUP}])
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3305035, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
...

Followup Issues

  • move more stuff from VTable to Operation

closes https://github.com/ziglang/zig/issues/25753

This branch introduces `Io.Operation`, `std.Io.operate`, `std.Io.Batch`, and implements them for `FileReadStreaming`. In `std.Io.Threaded`, the implementation is based on poll(). The idea here is that every VTable function that makes sense to have `error{Canceled,Timeout}` in its error set would be moved into this `Operation` tagged union. Note that the higher level API, e.g. `std.Io.File.readFileStreaming` is unchanged. We expect this to be lowerable in a reasonable fashion using IoUring, Kqueue, and Windows. ## Motivation * general support for batching, timeouts, and non-blocking across all I/O operations * ability to migrate code that used `poll()` without causing `error.ConcurrencyUnavailable` on `-fsingle-threaded` builds - for example, processing stdout and stderr of child processes in a single-threaded application ## Demonstration Using `std.process.run` to collect both stdout and stderr in a single-threaded program using `std.Threaded.Io`. The point of this example is, if the parent naively reads from either stdout or stderr non-concurrently, it will deadlock. child.zig: ```zig const std = @import("std"); const Io = std.Io; pub fn main(init: std.process.Init) !void { const io = init.io; var stdout: Io.File.Writer = .initStreaming(.stdout(), io, &.{}); var stderr: Io.File.Writer = .initStreaming(.stderr(), io, &.{}); try stdout.interface.splatByteAll('A', 5000); try stderr.interface.splatByteAll('B', 5000); try stdout.interface.splatByteAll('C', 5000); try stderr.interface.splatByteAll('D', 5000); } ``` parent.zig ```zig const std = @import("std"); const Io = std.Io; pub fn main(init: std.process.Init) !void { const io = init.io; const arena = init.arena.allocator(); const result = try std.process.run(arena, io, .{ .argv = &.{"./child"}, }); std.debug.print("stdout:\n{s}\nstderr:\n{s}", .{ result.stdout, result.stderr }); } ``` ``` $ stage3/bin/zig build-exe parent.zig -fsingle-threaded $ ./parent stdout: AAAAAA...(x5000)CCCCC....(x5000) stderr: BBBBBB...(x5000)DDDDD....(x5000) $ strace ./parent ... pipe2([8, 9], O_CLOEXEC) = 0 fork() = 3305035 close(9) = 0 close(4) = 0 close(6) = 0 munmap(0x7fb1cec93000, 53248) = 0 munmap(0x7fb1ceb40000, 131072) = 0 read(8, "", 8) = 0 close(8) = 0 mmap(0x7fb1ceca0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1cf009000 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=129}], 1) = 129 readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=129}], 1) = 129 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=194}], 1) = 194 readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=194}], 1) = 194 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=291}], 1) = 291 readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=291}], 1) = 291 mremap(0x7fb1cf009000, 4096, 8192, 0) = -1 ENOMEM (Cannot allocate memory) mmap(0x7fb1cf00a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1cf007000 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=436}], 1) = 436 readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=436}], 1) = 436 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=654}], 1) = 654 readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=654}], 1) = 654 mremap(0x7fb1cf007000, 8192, 12288, 0) = -1 ENOMEM (Cannot allocate memory) mmap(0x7fb1cf009000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1cf003000 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=981}], 1) = 981 readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=981}], 1) = 981 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=1472}], 1) = 1472 readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=1472}], 1) = 1472 mremap(0x7fb1cf003000, 16384, 20480, 0) = -1 ENOMEM (Cannot allocate memory) mmap(0x7fb1cf007000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1ced42000 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., iov_len=2208}], 1) = 2208 readv(5, [{iov_base="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"..., iov_len=2208}], 1) = 2208 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"..., iov_len=3312}], 1) = 3312 readv(5, [{iov_base="DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"..., iov_len=3312}], 1) = 3312 mremap(0x7fb1ced42000, 32768, 49152, 0) = -1 ENOMEM (Cannot allocate memory) mmap(0x7fb1ced4a000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1cec8e000 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}]) readv(3, [{iov_base="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"..., iov_len=4968}], 1) = 323 readv(5, [{iov_base="DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"..., iov_len=4968}], 1) = 323 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLHUP}, {fd=5, revents=POLLHUP}]) --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3305035, si_uid=1000, si_status=0, si_utime=0, si_stime=0} --- ... ``` ## Followup Issues * move more stuff from VTable to Operation ---- closes https://github.com/ziglang/zig/issues/25753
Contributor

+1 to the overall shape. Not only collectOutput now works with a single thread, I'd argue that its implementation is just more natural as a hand-coded state machine, and not as a pair of asyncConcurrent tasks.

Specific interface I am not happy with (but maybe I just misunderstand something). The issue I have with it is that it assumes readiness based IO, not completion based:

pub fn operate(io: Io, operations: []Operation, n_wait: usize, timeout: Timeout) OperateError!void {

If n_wait < operations.len, the interface needs to guarantee that each operation is "atomic" --- either it is completed, or otherwise not started. This works for poll, but doesn't work for io_uring, and arguably, "real world".

E.g, suppose I write low-level code that issues 5 write operations to an actual physical device. The way this works is that I ask the device to start the corresponding DMA operations, and then wait for interrupt which notifies me about completions.

I can wait for first 2 out of 5 operations to complete, but I still need to wait for other 3, I can't just drop them on the floor. The operate interface prevents this for two reasons:

  • there isn't affordance to wait for perviously submitted operations
  • If we fix that, the problem of memory fragmentation appears ---- If I submit a slice of 1000 ops, 999 complete, but one is slow, I'll still have to keep the entire slice pinned, I can't trivially re-use 999 completed slots.
+1 to the overall shape. Not only `collectOutput` now works with a single thread, I'd argue that its implementation is just more natural as a hand-coded state machine, and not as a pair of `asyncConcurrent` tasks. Specific interface I am not happy with (but maybe I just misunderstand something). The issue I have with it is that it assumes readiness based IO, not completion based: ``` pub fn operate(io: Io, operations: []Operation, n_wait: usize, timeout: Timeout) OperateError!void { ``` If `n_wait < operations.len`, the interface needs to guarantee that each operation is "atomic" --- either it is completed, or otherwise not started. This works for `poll`, but doesn't work for `io_uring`, and arguably, "real world". E.g, suppose I write low-level code that issues 5 write operations to an actual physical device. The way this works is that I ask the device to start the corresponding DMA operations, and then wait for interrupt which notifies me about completions. I can wait for first 2 out of 5 operations to complete, but I still need to wait for other 3, I can't just drop them on the floor. The `operate` interface prevents this for two reasons: * there isn't affordance to wait for _perviously_ submitted operations * If we fix that, the problem of memory fragmentation appears ---- If I submit a slice of 1000 ops, 999 complete, but one is slow, I'll still have to keep the entire slice pinned, I can't trivially re-use 999 completed slots.
Contributor

Oh, there's also the poll-vs-epoll big-O problem here: if operations.len is 10^6, but n_wait it 1, you still have to trawl though the million to find out which single op did complete.

Oh, there's also the poll-vs-epoll big-O problem here: if `operations.len` is 10^6, but n_wait it 1, you still have to trawl though the million to find out which single op did complete.
Owner

I agree with matklad's concerns, but can't really figure out a nice solution to them. While trying to find one, I realised that (IMO) the natural conclusion of this PR's line of thinking is to literally just expose an io_uring style API---it lets you handle completions as soon as they're available, it works with any primitive you can think of, and it allows you to reuse buffer memory. However, I strongly believe that would be a misstep: the whole point of the Io API is to abstract over these low-level event loop mechanisms, so straight-up exposing an io_uring-esque API would seriously muddy the intention behind the interface (and, of course, introduces a lot of extra complexity).

Also, I get the feeling that the use cases for this operate feature are actually pretty rare. I honestly am struggling to think of many cases where I just want to dispatch a bunch of IO operations and don't want non-trivial handling of their individual completions as they come in (if I do want that, then I should just have an async or concurrent task per operation---that's kinda the whole point of the future/group API!). However, I think that there is one very clear counterexample, which is exactly what you've done here: polling child process output streams. That's a real use case, which we really want to be able to use with a dumb single-threaded Io implementation, and it's what every call to std.Io.poll in the Zig repository is doing right now---but I think other use cases where operate would be preferable to async/concurrent are pretty damn rare. (Of course, if someone has a counterexample where they think operate is clearly preferable for something else too, do bring that up! A counterexample might make me rethink my conclusions here).

Having pondered this a little, my current feeling is that the operate API sadly doesn't really fit. It feels like it's trying to bolt on to Io a completely different design for asynchronous operations, and tries to be useful for several things at once, therefore ending up kind of mediocre at them all. I believe that a small, focused poll API (vaguely akin to the old one) would probably be a neater and simpler addition to the interface, which handles the key use case of child processes just as well; reflects the primitives actually available on OSes so that implementations don't have to do anything too complicated; and avoids muddying the waters wrt how you're "supposed" to do certain stuff asynchronously.

I agree with matklad's concerns, but can't really figure out a nice solution to them. While trying to find one, I realised that (IMO) the natural conclusion of this PR's line of thinking is to literally just expose an io_uring style API---it lets you handle completions as soon as they're available, it works with any primitive you can think of, and it allows you to reuse buffer memory. However, I strongly believe that would be a misstep: the whole point of the `Io` API is to abstract over these low-level event loop mechanisms, so straight-up exposing an io_uring-esque API would seriously muddy the intention behind the interface (and, of course, introduces a lot of extra complexity). Also, I get the feeling that the use cases for this `operate` feature are actually pretty rare. I honestly am struggling to think of many cases where I just want to dispatch a bunch of IO operations and *don't* want non-trivial handling of their individual completions as they come in (if I do want that, then I should just have an `async` or `concurrent` task per operation---that's kinda the whole point of the future/group API!). However, I think that there is one very clear counterexample, which is exactly what you've done here: polling child process output streams. That's a real use case, which we really want to be able to use with a dumb single-threaded `Io` implementation, and it's what *every* call to `std.Io.poll` in the Zig repository is doing right now---but I think other use cases where `operate` would be preferable to `async`/`concurrent` are pretty damn rare. (Of course, if someone has a counterexample where they think `operate` is clearly preferable for something else too, do bring that up! A counterexample might make me rethink my conclusions here). Having pondered this a little, my current feeling is that the `operate` API sadly doesn't really fit. It feels like it's trying to bolt on to `Io` a completely different design for asynchronous operations, and tries to be useful for several things at once, therefore ending up kind of mediocre at them all. I believe that a small, focused `poll` API (vaguely akin to the old one) would probably be a neater and simpler addition to the interface, which handles the key use case of child processes just as well; reflects the primitives actually available on OSes so that implementations don't have to do anything too complicated; and avoids muddying the waters wrt how you're "supposed" to do certain stuff asynchronously.
Contributor

I'm likely being naive as someone who's never used the current poller directly, but what benefit does this bring that wouldn't be better solved by making any higher level "poller" interface just use io.concurrent, and then working down from there to support other use-cases: to meet a single-threaded requirement, caller can use Io.Evented, and for platforms that don't have a working Io.Evented, implement possibly-somewhat-limited Io.Evented backends for Windows and posixy poll(2) that suffice at least for this use-case, etc?

I'm likely being naive as someone who's never used the current poller directly, but what benefit does this bring that wouldn't be better solved by making any higher level "poller" interface just use `io.concurrent`, and then working down from there to support other use-cases: to meet a single-threaded requirement, caller can use `Io.Evented`, and for platforms that don't have a working `Io.Evented`, implement possibly-somewhat-limited `Io.Evented` backends for Windows and posixy `poll(2)` that suffice at least for this use-case, etc?
andrewrk force-pushed poll from 35ec7b4da8
Some checks failed
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
to f6b28ea244
Some checks failed
ci / x86_64-freebsd-debug (pull_request) Failing after 14m8s
ci / x86_64-freebsd-release (pull_request) Failing after 3m25s
ci / aarch64-linux-debug (pull_request) Failing after 8m13s
ci / aarch64-linux-release (pull_request) Failing after 5m50s
ci / x86_64-openbsd-debug (pull_request) Failing after 4m7s
ci / x86_64-openbsd-release (pull_request) Failing after 3m19s
ci / aarch64-macos-debug (pull_request) Failing after 8m48s
ci / aarch64-macos-release (pull_request) Failing after 6m15s
ci / x86_64-windows-release (pull_request) Failing after 6m32s
ci / x86_64-windows-debug (pull_request) Failing after 7m17s
ci / x86_64-linux-debug (pull_request) Failing after 8m15s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 8m26s
ci / x86_64-linux-release (pull_request) Failing after 4m11s
ci / s390x-linux-debug (pull_request) Failing after 10m10s
ci / s390x-linux-release (pull_request) Failing after 7m53s
ci / powerpc64le-linux-debug (pull_request) Failing after 9m15s
ci / powerpc64le-linux-release (pull_request) Failing after 7m9s
ci / loongarch64-linux-debug (pull_request) Failing after 3m29s
ci / loongarch64-linux-release (pull_request) Failing after 2m59s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
2026-01-08 22:05:07 +01:00
Compare
Contributor

counterexample

I think there might be two classes of objections here: performance and programming model.

For performance, I don't know an example, but that has to be something with hight natural concurrent
"width" with relatively few syscalls per unit of concurrency, so perhaps concurrent du?

For programming model, my central example would be compaction code (compaction.zig). Compaction is similar to merge,
where you turn sorted A and sorted B into sorted combined union C, except that all of A, B, and C
are on disk, and chunked. So the code here is a loop that reads chunk A, chunk B, merges them
in-memory, and writes new chunk C, with complications:

  • Elements from A and B might also cancel out, so in general it's hard to predict what happens
    first: running out of chunk A, chunk B, or in-progress chunk C.
  • To hide IO latency, we want to read ahead several chunks of A and B. Similarly, several chunks
    from C might be in flight, if in-memory merge is faster than chunk write latency.
  • But we don't want to read too far ahead, so there's a shared budget of in-memory chunks we can use
    for IO.
  • But we need to be smart with prioritizing which chunk we read next, depending whether A or B is
    consumed faster.
  • And we actually run several independent copies of the process, but they all share budget.
  • And, the kicker, the whole process is suspendable, we pause at certain well-defined safe-points
    and resume later.
  • And safe points are defined dynmaically based on the progress so far.

This adds up to a ridiculous 2k lines choreographic dance around a 10-line hot loop that actually
does all the real work.

And it does seem to me that writing that in the explicit state machine style "I've read/merged/wrote
a chunk, what should I do next, given global constraints?" is the least bad approach. Filing each
individual read as a separate async and than updating the state under mutex feels horrible. Having
a central "dispatch" async function with a mailbox where completions are posted is better, but feels
like an extra abstraction overhead over raw concurrent operations.

operate won't help there though, because each individual "read_chunk" operation isn't a single
read syscall, but rather a readAll loop.

Which I guess is another issue with operate --- not only its a separate way to express
concurrency, it also is not composable, and works only for operations that IO deems "primitive". Hm,
I wonder if we can actually flip this around? Instead of operations beeing structs, we could
submit arbitrary functions, and then IO is allowed to optimize certain operations? E.g.,
single_threaded could document that, if all ops are reads and writes, it goes via epoll without
spending concurrency budget. Not a sericous suggestion :)

> counterexample I think there might be two classes of objections here: performance and programming model. For performance, I don't know an example, but that has to be something with hight natural concurrent "width" with relatively few syscalls per unit of concurrency, so perhaps concurrent `du`? For programming model, my central example would be compaction code ([compaction.zig](https://github.com/tigerbeetle/tigerbeetle/blob/46941baa27667ec964e302954d8f2eb342b03cdc/src/lsm/compaction.zig)). Compaction is similar to merge, where you turn sorted A and sorted B into sorted combined union C, except that all of A, B, and C are on disk, and chunked. So the code here is a loop that reads chunk A, chunk B, merges them in-memory, and writes new chunk C, with complications: * Elements from A and B might also cancel out, so in general it's hard to predict what happens first: running out of chunk A, chunk B, or in-progress chunk C. * To hide IO latency, we want to read ahead several chunks of A and B. Similarly, several chunks from C might be in flight, if in-memory merge is faster than chunk write latency. * But we don't want to read too far ahead, so there's a shared budget of in-memory chunks we can use for IO. * But we need to be smart with prioritizing which chunk we read next, depending whether A or B is consumed faster. * And we actually run several independent copies of the process, but they all share budget. * And, the kicker, the whole process is suspendable, we pause at certain well-defined safe-points and resume later. * And safe points are defined dynmaically based on the progress so far. This adds up to a ridiculous 2k lines choreographic dance around a 10-line hot loop that actually does all the real work. And it does seem to me that writing that in the explicit state machine style "I've read/merged/wrote a chunk, what should I do next, given global constraints?" is the least bad approach. Filing each individual read as a separate `async` and than updating the state under mutex feels horrible. Having a central "dispatch" async function with a mailbox where completions are posted is better, but feels like an extra abstraction overhead over raw concurrent operations. `operate` won't help there though, because each individual "read_chunk" operation isn't a single read syscall, but rather a `readAll` loop. Which I guess is another issue with `operate` --- not only its a separate way to express concurrency, it also is not composable, and works only for operations that IO deems "primitive". Hm, I wonder if we can actually flip this around? Instead of `operations` beeing structs, we could submit arbitrary functions, and then IO is allowed to optimize certain operations? E.g., single_threaded could document that, if all ops are reads and writes, it goes via epoll without spending concurrency budget. Not a sericous suggestion :)
Author
Owner

Thank you, both of you, for taking a look!

Please have a look at the commit I just pushed. I simplified the interface and implementation to eliminate the n_wait and timeout parameters. Timeout can maybe be brought back in the future but it's a separate concern.

Specific interface I am not happy with (but maybe I just misunderstand something). The issue I have with it is that it assumes readiness based IO, not completion based

This is the main thing I addressed with the new commit. The std.Io.Threaded implementation based on poll() does up to 1 poll() and then always returns. With this API definition, completion-based implementations such as IoUring can send the operations to the event loop like normal and wait on them like normal, returning after all have completed. This is a valid definition of "nonblocking = true" in the operation (i.e. it does not block other operations).

I'm not concerned about operations.len being very large. Applications suffering from this problem should be solved by using a more appropriate Io implementation. Meanwhile, if you're stuck with std.Io.Threaded (i.e. poll), this batching interface is going to be strictly better than doing these operations in a loop. Much, much better, in fact, because it will prevent I/O operations from unnecessarily blocking other ones. Also the implementation has a fixed buffer for the poll set, so it's O(1) technically ;)

@blblack - the problem statement is this:

ability to migrate code that used poll() without causing error.ConcurrencyUnavailable on -fsingle-threaded builds

In other words, if you use io.concurrent() in single-threaded builds using std.Io.Threaded, you receive error.ConcurrencyUnavailable. Therefore, if users update their Zig code from using poll() to using std.Io under these conditions, their software will now fail, when it worked perfectly fine before.

Thank you, both of you, for taking a look! Please have a look at the commit I just pushed. I simplified the interface and implementation to eliminate the `n_wait` and `timeout` parameters. Timeout can maybe be brought back in the future but it's a separate concern. > Specific interface I am not happy with (but maybe I just misunderstand something). The issue I have with it is that it assumes readiness based IO, not completion based This is the main thing I addressed with the new commit. The `std.Io.Threaded` implementation based on poll() does up to 1 poll() and then always returns. With this API definition, completion-based implementations such as IoUring can send the operations to the event loop like normal and wait on them like normal, returning after all have completed. This is a valid definition of "nonblocking = true" in the operation (i.e. it does not block other operations). I'm not concerned about operations.len being very large. Applications suffering from this problem should be solved by using a more appropriate Io implementation. Meanwhile, if you're stuck with `std.Io.Threaded` (i.e. `poll`), this batching interface is going to be strictly better than doing these operations in a loop. Much, much better, in fact, because it will prevent I/O operations from unnecessarily blocking other ones. Also the implementation has a fixed buffer for the poll set, so it's O(1) technically ;) @blblack - the problem statement is this: > ability to migrate code that used poll() without causing error.ConcurrencyUnavailable on -fsingle-threaded builds In other words, if you use `io.concurrent()` in single-threaded builds using `std.Io.Threaded`, you receive `error.ConcurrencyUnavailable`. Therefore, if users update their Zig code from using poll() to using `std.Io` under these conditions, their software will now fail, when it worked perfectly fine before.
Author
Owner

I'd argue that its implementation is just more natural as a hand-coded state machine, and not as a pair of asyncConcurrent tasks.

I have to strong disagree with you there. If you're willing to take error.ConcurrencyUnavailable into the error set, then this is what you can write:

diff --git a/lib/std/process.zig b/lib/std/process.zig
index b5fc8541d8..15815354c8 100644
--- a/lib/std/process.zig
+++ b/lib/std/process.zig
@@ -467,6 +467,7 @@ pub fn spawnPath(io: Io, dir: Io.Dir, options: SpawnOptions) SpawnError!Child {
 
 pub const RunError = posix.GetCwdError || posix.ReadError || SpawnError || posix.PollError || error{
     StreamTooLong,
+    ConcurrencyUnavailable,
 };
 
 pub const RunOptions = struct {
diff --git a/lib/std/process/Child.zig b/lib/std/process/Child.zig
index fc31014520..e64f6106fa 100644
--- a/lib/std/process/Child.zig
+++ b/lib/std/process/Child.zig
@@ -125,14 +125,15 @@ pub fn wait(child: *Child, io: Io) WaitError!Term {
     return io.vtable.childWait(io.userdata, child);
 }
 
-pub const CollectOutputError = error{StreamTooLong} || Allocator.Error || Io.File.Reader.Error;
+pub const CollectOutputError = error{
+    StreamTooLong,
+    ConcurrencyUnavailable,
+} || Allocator.Error || Io.File.Reader.Error;
 
 pub const CollectOutputOptions = struct {
     stdout: *std.ArrayList(u8),
     stderr: *std.ArrayList(u8),
-    /// Used for `stdout` and `stderr`. If not provided, only the existing
-    /// capacity will be used.
-    allocator: ?Allocator = null,
+    allocator: Allocator,
     stdout_limit: Io.Limit = .unlimited,
     stderr_limit: Io.Limit = .unlimited,
 };
@@ -144,56 +145,24 @@ pub const CollectOutputOptions = struct {
 /// The process must have been started with stdout and stderr set to
 /// `process.SpawnOptions.StdIo.pipe`.
 pub fn collectOutput(child: *const Child, io: Io, options: CollectOutputOptions) CollectOutputError!void {
-    const files: [2]Io.File = .{ child.stdout.?, child.stderr.? };
-    const lists: [2]*std.ArrayList(u8) = .{ options.stdout, options.stderr };
-    const limits: [2]Io.Limit = .{ options.stdout_limit, options.stderr_limit };
-    var dones: [2]bool = .{ false, false };
-    var reads: [2]Io.Operation = undefined;
-    var vecs: [2][1][]u8 = undefined;
-    while (true) {
-        for (&reads, &lists, &files, dones, &vecs) |*read, list, file, done, *vec| {
-            if (done) {
-                read.* = .noop;
-                continue;
-            }
-            if (options.allocator) |gpa| try list.ensureUnusedCapacity(gpa, 1);
-            const cap = list.unusedCapacitySlice();
-            if (cap.len == 0) return error.StreamTooLong;
-            vec[0] = cap;
-            read.* = .{ .file_read_streaming = .{
-                .file = file,
-                .data = vec,
-                .nonblocking = true,
-                .result = undefined,
-            } };
-        }
-        var all_done = true;
-        var any_canceled = false;
-        var other_err: (error{StreamTooLong} || Io.File.Reader.Error)!void = {};
-        io.vtable.operate(io.userdata, &reads);
-        for (&reads, &lists, &limits, &dones) |*read, list, limit, *done| {
-            if (done.*) continue;
-            const n = read.file_read_streaming.result catch |err| switch (err) {
-                error.Canceled => {
-                    any_canceled = true;
-                    continue;
-                },
-                error.WouldBlock => continue,
-                else => |e| {
-                    other_err = e;
-                    continue;
-                },
-            };
-            if (n == 0) {
-                done.* = true;
-            } else {
-                all_done = false;
-            }
-            list.items.len += n;
-            if (list.items.len > @intFromEnum(limit)) other_err = error.StreamTooLong;
-        }
-        if (any_canceled) return error.Canceled;
-        try other_err;
-        if (all_done) return;
-    }
+    var stdout = try io.concurrent(collectStream, .{
+        io, options.allocator, child.stdout.?, options.stdout, options.stdout_limit,
+    });
+    defer stdout.cancel(io) catch {};
+
+    var stderr = try io.concurrent(collectStream, .{
+        io, options.allocator, child.stderr.?, options.stderr, options.stderr_limit,
+    });
+    defer stderr.cancel(io) catch {};
+
+    try stdout.await(io);
+    try stderr.await(io);
+}
+
+fn collectStream(io: Io, gpa: Allocator, file: File, list: *std.ArrayList(u8), limit: Io.Limit) CollectOutputError!void {
+    var fr = file.readerStreaming(io, &.{});
+    fr.interface.appendRemaining(gpa, list, limit) catch |err| switch (err) {
+        error.ReadFailed => return fr.err.?,
+        else => |e| return e,
+    };
 }

This is sooo much nicer. The only reason to suffer through the other way is to avoid possibility of failure via error.ConcurrencyUnavailable. Or, avoiding the tough question of, "after upgrading to Zig 0.16.0, why does my program spawn an extra thread now when it didn't before?"

> I'd argue that its implementation is just more natural as a hand-coded state machine, and not as a pair of asyncConcurrent tasks. I have to strong disagree with you there. If you're willing to take `error.ConcurrencyUnavailable` into the error set, then this is what you can write: ```diff diff --git a/lib/std/process.zig b/lib/std/process.zig index b5fc8541d8..15815354c8 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -467,6 +467,7 @@ pub fn spawnPath(io: Io, dir: Io.Dir, options: SpawnOptions) SpawnError!Child { pub const RunError = posix.GetCwdError || posix.ReadError || SpawnError || posix.PollError || error{ StreamTooLong, + ConcurrencyUnavailable, }; pub const RunOptions = struct { diff --git a/lib/std/process/Child.zig b/lib/std/process/Child.zig index fc31014520..e64f6106fa 100644 --- a/lib/std/process/Child.zig +++ b/lib/std/process/Child.zig @@ -125,14 +125,15 @@ pub fn wait(child: *Child, io: Io) WaitError!Term { return io.vtable.childWait(io.userdata, child); } -pub const CollectOutputError = error{StreamTooLong} || Allocator.Error || Io.File.Reader.Error; +pub const CollectOutputError = error{ + StreamTooLong, + ConcurrencyUnavailable, +} || Allocator.Error || Io.File.Reader.Error; pub const CollectOutputOptions = struct { stdout: *std.ArrayList(u8), stderr: *std.ArrayList(u8), - /// Used for `stdout` and `stderr`. If not provided, only the existing - /// capacity will be used. - allocator: ?Allocator = null, + allocator: Allocator, stdout_limit: Io.Limit = .unlimited, stderr_limit: Io.Limit = .unlimited, }; @@ -144,56 +145,24 @@ pub const CollectOutputOptions = struct { /// The process must have been started with stdout and stderr set to /// `process.SpawnOptions.StdIo.pipe`. pub fn collectOutput(child: *const Child, io: Io, options: CollectOutputOptions) CollectOutputError!void { - const files: [2]Io.File = .{ child.stdout.?, child.stderr.? }; - const lists: [2]*std.ArrayList(u8) = .{ options.stdout, options.stderr }; - const limits: [2]Io.Limit = .{ options.stdout_limit, options.stderr_limit }; - var dones: [2]bool = .{ false, false }; - var reads: [2]Io.Operation = undefined; - var vecs: [2][1][]u8 = undefined; - while (true) { - for (&reads, &lists, &files, dones, &vecs) |*read, list, file, done, *vec| { - if (done) { - read.* = .noop; - continue; - } - if (options.allocator) |gpa| try list.ensureUnusedCapacity(gpa, 1); - const cap = list.unusedCapacitySlice(); - if (cap.len == 0) return error.StreamTooLong; - vec[0] = cap; - read.* = .{ .file_read_streaming = .{ - .file = file, - .data = vec, - .nonblocking = true, - .result = undefined, - } }; - } - var all_done = true; - var any_canceled = false; - var other_err: (error{StreamTooLong} || Io.File.Reader.Error)!void = {}; - io.vtable.operate(io.userdata, &reads); - for (&reads, &lists, &limits, &dones) |*read, list, limit, *done| { - if (done.*) continue; - const n = read.file_read_streaming.result catch |err| switch (err) { - error.Canceled => { - any_canceled = true; - continue; - }, - error.WouldBlock => continue, - else => |e| { - other_err = e; - continue; - }, - }; - if (n == 0) { - done.* = true; - } else { - all_done = false; - } - list.items.len += n; - if (list.items.len > @intFromEnum(limit)) other_err = error.StreamTooLong; - } - if (any_canceled) return error.Canceled; - try other_err; - if (all_done) return; - } + var stdout = try io.concurrent(collectStream, .{ + io, options.allocator, child.stdout.?, options.stdout, options.stdout_limit, + }); + defer stdout.cancel(io) catch {}; + + var stderr = try io.concurrent(collectStream, .{ + io, options.allocator, child.stderr.?, options.stderr, options.stderr_limit, + }); + defer stderr.cancel(io) catch {}; + + try stdout.await(io); + try stderr.await(io); +} + +fn collectStream(io: Io, gpa: Allocator, file: File, list: *std.ArrayList(u8), limit: Io.Limit) CollectOutputError!void { + var fr = file.readerStreaming(io, &.{}); + fr.interface.appendRemaining(gpa, list, limit) catch |err| switch (err) { + error.ReadFailed => return fr.err.?, + else => |e| return e, + }; } ``` This is sooo much nicer. The only reason to suffer through the other way is to avoid possibility of failure via `error.ConcurrencyUnavailable`. Or, avoiding the tough question of, "after upgrading to Zig 0.16.0, why does my program spawn an extra thread now when it didn't before?"
andrewrk force-pushed poll from f6b28ea244
Some checks failed
ci / x86_64-freebsd-debug (pull_request) Failing after 14m8s
ci / x86_64-freebsd-release (pull_request) Failing after 3m25s
ci / aarch64-linux-debug (pull_request) Failing after 8m13s
ci / aarch64-linux-release (pull_request) Failing after 5m50s
ci / x86_64-openbsd-debug (pull_request) Failing after 4m7s
ci / x86_64-openbsd-release (pull_request) Failing after 3m19s
ci / aarch64-macos-debug (pull_request) Failing after 8m48s
ci / aarch64-macos-release (pull_request) Failing after 6m15s
ci / x86_64-windows-release (pull_request) Failing after 6m32s
ci / x86_64-windows-debug (pull_request) Failing after 7m17s
ci / x86_64-linux-debug (pull_request) Failing after 8m15s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 8m26s
ci / x86_64-linux-release (pull_request) Failing after 4m11s
ci / s390x-linux-debug (pull_request) Failing after 10m10s
ci / s390x-linux-release (pull_request) Failing after 7m53s
ci / powerpc64le-linux-debug (pull_request) Failing after 9m15s
ci / powerpc64le-linux-release (pull_request) Failing after 7m9s
ci / loongarch64-linux-debug (pull_request) Failing after 3m29s
ci / loongarch64-linux-release (pull_request) Failing after 2m59s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
to 5cd0c75a89
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
2026-01-10 00:07:26 +01:00
Compare
andrewrk force-pushed poll from 5cd0c75a89
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
to f5ed2d2d14
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
2026-01-10 04:13:23 +01:00
Compare
andrewrk force-pushed poll from d93db4c387
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
to 078a19cf31
Some checks failed
ci / x86_64-windows-release (pull_request) Failing after 2m52s
ci / x86_64-freebsd-release (pull_request) Failing after 2m36s
ci / x86_64-windows-debug (pull_request) Failing after 3m35s
ci / aarch64-macos-release (pull_request) Failing after 2m54s
ci / aarch64-macos-debug (pull_request) Failing after 3m40s
ci / x86_64-freebsd-debug (pull_request) Failing after 3m51s
ci / x86_64-linux-debug (pull_request) Failing after 4m9s
ci / x86_64-openbsd-release (pull_request) Failing after 4m3s
ci / x86_64-linux-release (pull_request) Failing after 3m49s
ci / x86_64-openbsd-debug (pull_request) Failing after 5m26s
ci / aarch64-linux-release (pull_request) Failing after 6m0s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 6m49s
ci / aarch64-linux-debug (pull_request) Failing after 7m47s
ci / loongarch64-linux-release (pull_request) Failing after 18s
ci / loongarch64-linux-debug (pull_request) Failing after 48s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / s390x-linux-debug (pull_request) Failing after 10m43s
ci / s390x-linux-release (pull_request) Failing after 8m16s
ci / powerpc64le-linux-debug (pull_request) Failing after 9m29s
ci / powerpc64le-linux-release (pull_request) Failing after 7m3s
2026-01-10 05:47:38 +01:00
Compare
Contributor

I have to strong disagree with you there

Thanks for calling me out on this one!

Please have a look at the commit I just pushed.

Yeah, I like the new version, don't see any footguns, it solves the read2 use-case, and it feels like it might be useful more generally.

>I have to strong disagree with you there Thanks for calling me out on this one! >Please have a look at the commit I just pushed. Yeah, I like the new version, don't see any footguns, it solves the [`read2`](https://github.com/rust-lang/cargo/blob/2e5dd3484ec047c5f825ccdc13ae188394b8708b/crates/cargo-util/src/read2.rs) use-case, and it feels like it might be useful more generally.
andrewrk force-pushed poll from 078a19cf31
Some checks failed
ci / x86_64-windows-release (pull_request) Failing after 2m52s
ci / x86_64-freebsd-release (pull_request) Failing after 2m36s
ci / x86_64-windows-debug (pull_request) Failing after 3m35s
ci / aarch64-macos-release (pull_request) Failing after 2m54s
ci / aarch64-macos-debug (pull_request) Failing after 3m40s
ci / x86_64-freebsd-debug (pull_request) Failing after 3m51s
ci / x86_64-linux-debug (pull_request) Failing after 4m9s
ci / x86_64-openbsd-release (pull_request) Failing after 4m3s
ci / x86_64-linux-release (pull_request) Failing after 3m49s
ci / x86_64-openbsd-debug (pull_request) Failing after 5m26s
ci / aarch64-linux-release (pull_request) Failing after 6m0s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 6m49s
ci / aarch64-linux-debug (pull_request) Failing after 7m47s
ci / loongarch64-linux-release (pull_request) Failing after 18s
ci / loongarch64-linux-debug (pull_request) Failing after 48s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / s390x-linux-debug (pull_request) Failing after 10m43s
ci / s390x-linux-release (pull_request) Failing after 8m16s
ci / powerpc64le-linux-debug (pull_request) Failing after 9m29s
ci / powerpc64le-linux-release (pull_request) Failing after 7m3s
to 139019739d
Some checks failed
ci / aarch64-macos-debug (pull_request) Failing after 7m38s
ci / aarch64-macos-release (pull_request) Failing after 2m57s
ci / x86_64-freebsd-release (pull_request) Failing after 2m6s
ci / x86_64-freebsd-debug (pull_request) Failing after 3m1s
ci / x86_64-windows-debug (pull_request) Failing after 4m33s
ci / aarch64-linux-debug (pull_request) Failing after 7m37s
ci / x86_64-windows-release (pull_request) Failing after 4m30s
ci / aarch64-linux-release (pull_request) Failing after 5m41s
ci / x86_64-openbsd-debug (pull_request) Failing after 4m29s
ci / x86_64-openbsd-release (pull_request) Failing after 2m50s
ci / x86_64-linux-debug (pull_request) Failing after 8m13s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 7m57s
ci / x86_64-linux-release (pull_request) Failing after 4m8s
ci / powerpc64le-linux-debug (pull_request) Failing after 9m21s
ci / powerpc64le-linux-release (pull_request) Failing after 7m10s
ci / s390x-linux-debug (pull_request) Failing after 13m29s
ci / s390x-linux-release (pull_request) Failing after 8m52s
ci / loongarch64-linux-debug (pull_request) Failing after 14m59s
ci / loongarch64-linux-release (pull_request) Failing after 13m26s
2026-01-13 08:22:44 +01:00
Compare
andrewrk force-pushed poll from 139019739d
Some checks failed
ci / aarch64-macos-debug (pull_request) Failing after 7m38s
ci / aarch64-macos-release (pull_request) Failing after 2m57s
ci / x86_64-freebsd-release (pull_request) Failing after 2m6s
ci / x86_64-freebsd-debug (pull_request) Failing after 3m1s
ci / x86_64-windows-debug (pull_request) Failing after 4m33s
ci / aarch64-linux-debug (pull_request) Failing after 7m37s
ci / x86_64-windows-release (pull_request) Failing after 4m30s
ci / aarch64-linux-release (pull_request) Failing after 5m41s
ci / x86_64-openbsd-debug (pull_request) Failing after 4m29s
ci / x86_64-openbsd-release (pull_request) Failing after 2m50s
ci / x86_64-linux-debug (pull_request) Failing after 8m13s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 7m57s
ci / x86_64-linux-release (pull_request) Failing after 4m8s
ci / powerpc64le-linux-debug (pull_request) Failing after 9m21s
ci / powerpc64le-linux-release (pull_request) Failing after 7m10s
ci / s390x-linux-debug (pull_request) Failing after 13m29s
ci / s390x-linux-release (pull_request) Failing after 8m52s
ci / loongarch64-linux-debug (pull_request) Failing after 14m59s
ci / loongarch64-linux-release (pull_request) Failing after 13m26s
to 0b4ad5b534
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
2026-01-14 06:29:55 +01:00
Compare
andrewrk changed title from std.Io: proof-of-concept "operations" API, satisfying the "poll" use case to std.Io: introduce batching and operations API, satisfying the "poll" use case 2026-01-14 07:13:04 +01:00
andrewrk force-pushed poll from 0b4ad5b534
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
to 3b71c697ab
Some checks failed
ci / aarch64-macos-release (pull_request) Failing after 1m50s
ci / x86_64-freebsd-release (pull_request) Failing after 2m2s
ci / x86_64-freebsd-debug (pull_request) Failing after 2m48s
ci / x86_64-windows-release (pull_request) Failing after 3m16s
ci / x86_64-windows-debug (pull_request) Failing after 4m21s
ci / aarch64-macos-debug (pull_request) Failing after 5m13s
ci / x86_64-openbsd-release (pull_request) Failing after 4m20s
ci / x86_64-openbsd-debug (pull_request) Failing after 6m42s
ci / x86_64-linux-release (pull_request) Failing after 31m41s
ci / x86_64-linux-debug (pull_request) Failing after 35m42s
ci / aarch64-linux-release (pull_request) Failing after 57m56s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 1h2m36s
ci / aarch64-linux-debug (pull_request) Failing after 1h10m35s
ci / powerpc64le-linux-release (pull_request) Failing after 46m0s
ci / powerpc64le-linux-debug (pull_request) Failing after 54m1s
ci / s390x-linux-debug (pull_request) Failing after 1h7m59s
ci / s390x-linux-release (pull_request) Failing after 45m4s
ci / loongarch64-linux-release (pull_request) Failing after 1h0m43s
ci / loongarch64-linux-debug (pull_request) Failing after 1h17m53s
2026-01-14 10:01:43 +01:00
Compare
First-time contributor

I was thinking about the approach taken here for a few days now. But is this approach really a good idea?

Polling is at its core a philosophy of a readiness based API, which maps quite badly to a completion based API (which not all operating systems have; same goes goes the other way around).

Let's take a step back and look at what actual uses across applications try to solve with polling:

  1. Getting bytes from multiple As to possibly multiple Bs
  2. Getting bytes from multiple As, doing something with them, putting them into possibly multiple Bs

All of that on a single thread.

Ok, one could technically say this about most single threaded programs, but I hope that people understand what I mean here.

In case of the second case, people practically build an ad-hoc event loop around it. Looking at what's in 0.15.2, that's an event loop. So if something special needs to be done, why not just use a proper event loop? Sure, std.Io.Evented isn't ready yet, but that won't stay the case long term. So I don't think that this should tackle the second problem and defer to an actual event loop. Especially because I don't think that one could properly solve this without the users passing in closures to the API if Io.async and the like aren't wanted. And with the fact that closure aren't a thing in Zig, users would need to define their own or adapt the interface wanted here for it. Both aren't really nice from a usability standpoint.

But the first use case could be solved quite easily (and is also what the collectOutput function of the process API is supposed to do). It's pretty much always streaming some amount of data in parallel and Zig mostly already has the necessary means to define that.

Here an example of how that could look like: A function like fn streamMultiple(io: std.Io, links: []Link) ?usize with

const Link = struct {
    reader: *std.Io.Reader,
    writer: *std.Io.Writer,
    streamType: StreamType,
    // only not null if an error occurred
    error: ?(std.Io.Reader.Error || std.Io.Writer.Error) = null,
};

// the values correspond to their stream function in std.Io.Reader
const StreamType = union(enum) {
    limited: std.Io.Limit,
    delimiter: u8,
    delimiterLimited: struct{u8, std.Io.Limit},
    exact: usize,
    exact64: u64,
    exactPreserve: struct{usize, usize},
    remaining: void,
};

It stops when either an error occurred, in which case it returns the index of the failed link, or until every link is finished.

This would make it possible for each implementation to implement this in whatever way they think is the most performant while still being simple for the user.

But the MultiReader here looks kinda over complicated and overengineered and not something I would like to use (I would probably break out to switch (builtin.target.os.tag) instead).

I was thinking about the approach taken here for a few days now. But is this approach really a good idea? Polling is at its core a philosophy of a readiness based API, which maps quite badly to a completion based API (which not all operating systems have; same goes goes the other way around). Let's take a step back and look at what actual uses across applications try to solve with polling: 1. Getting bytes from multiple As to possibly multiple Bs 2. Getting bytes from multiple As, doing something with them, putting them into possibly multiple Bs All of that on a single thread. Ok, one could technically say this about most single threaded programs, but I hope that people understand what I mean here. In case of the second case, people practically build an ad-hoc event loop around it. Looking at what's in 0.15.2, that's an event loop. So if something special needs to be done, why not just use a proper event loop? Sure, `std.Io.Evented` isn't ready yet, but that won't stay the case long term. So I don't think that this should tackle the second problem and defer to an actual event loop. Especially because I don't think that one could properly solve this without the users passing in closures to the API if `Io.async` and the like aren't wanted. And with the fact that closure aren't a thing in Zig, users would need to define their own or adapt the interface wanted here for it. Both aren't really nice from a usability standpoint. But the first use case could be solved quite easily (and is also what the `collectOutput` function of the process API is supposed to do). It's pretty much always streaming some amount of data in parallel and Zig mostly already has the necessary means to define that. Here an example of how that could look like: A function like `fn streamMultiple(io: std.Io, links: []Link) ?usize` with ```Zig const Link = struct { reader: *std.Io.Reader, writer: *std.Io.Writer, streamType: StreamType, // only not null if an error occurred error: ?(std.Io.Reader.Error || std.Io.Writer.Error) = null, }; // the values correspond to their stream function in std.Io.Reader const StreamType = union(enum) { limited: std.Io.Limit, delimiter: u8, delimiterLimited: struct{u8, std.Io.Limit}, exact: usize, exact64: u64, exactPreserve: struct{usize, usize}, remaining: void, }; ``` It stops when either an error occurred, in which case it returns the index of the failed link, or until every link is finished. This would make it possible for each implementation to implement this in whatever way they think is the most performant while still being simple for the user. But the MultiReader here looks kinda over complicated and overengineered and not something I would like to use (I would probably break out to `switch (builtin.target.os.tag)` instead).
Author
Owner

I don't see how your example code addresses this problem:

ability to migrate code that used poll() without causing error.ConcurrencyUnavailable on -fsingle-threaded builds

or if you are suggesting to regress this use case, then I don't understand what purpose your example code serves?

I don't see how your example code addresses this problem: > ability to migrate code that used `poll()` without causing `error.ConcurrencyUnavailable` on `-fsingle-threaded` builds or if you are suggesting to regress this use case, then I don't understand what purpose your example code serves?
First-time contributor

It depends on what the user did in their poll() event loop.

If it's simply about getting bytes from a to b like I said in 1., it would be about as simple as with std.process.Child.collectOutput, which I guess would be implemented something like this:

fn collectOutput(io: std.Io, child: *const std.process.Child, allocator: std.mem.Allocator, stdout_limit: std.Io.Limit, stderr_limit: std.Io.Limit) !struct{ []u8, []u8 } {
    var stdoutReceiver: std.Io.Writer.Allocating = .init(allocator);
    defer stdoutReceiver.deinit();
    var stderrReceiver: std.Io.Writer.Allocating = .init(allocator);
    defer stderrReceiver.deinit();

    var stdoutBuffer: [1024]u8 = undefined;
    var stdoutReader: std.Io.File.Reader = .init(child.stdout.?, io, &stdoutBuffer);
    var stderrBuffer: [1024]u8 = undefined;
    var stderrReader: std.Io.File.Reader = .init(child.stderr.?, io, &stderrBuffer);

    var links: [2]Links = .{
        .{
            .reader = &stdoutReader.interface,
            .writer = &stdoutReceiver.writer,
            .streamType = .{ .remaining = {} },
        },
        .{
            .reader = &stderrReader.interface,
            .writer = &stderrReceiver.writer,
            .streamType = .{ .remaining = {} },
        },
    };

    if (streamMultiple(io, &links)) |index| {
        return switch (links[index].@"error") {
            error.ReadFailed => switch (index) {
                0 => stdoutReader.err.?,
                1 => stderrReader.err.?,
                else => unreachable,
            },
            error.WriteFailed => error.OutOfMemory,
            error.EndOfStream => unreachable,
        };
    }

    const stdout = try stdoutReceiver.toOwnedSlice();
    errdefer allocator.free(stdout);
    const stderr = try stderrReceiver.toOwnedSlice();
    errdefer allocator.free(stderr);

    return .{ stdout, stderr };
}

On the other hand if they do something more complicated in the event loop, then they should use an event loop instead of using an ad-hoc one like it's often done.

Also, while writing this, I noticed that one could easily plug in giving stdin data (in which case the API would receive an *std.Io.Reader as an additional parameter and link that up in the links array).

It depends on what the user did in their `poll()` event loop. If it's simply about getting bytes from a to b like I said in 1., it would be about as simple as with `std.process.Child.collectOutput`, which I guess would be implemented something like this: ```Zig fn collectOutput(io: std.Io, child: *const std.process.Child, allocator: std.mem.Allocator, stdout_limit: std.Io.Limit, stderr_limit: std.Io.Limit) !struct{ []u8, []u8 } { var stdoutReceiver: std.Io.Writer.Allocating = .init(allocator); defer stdoutReceiver.deinit(); var stderrReceiver: std.Io.Writer.Allocating = .init(allocator); defer stderrReceiver.deinit(); var stdoutBuffer: [1024]u8 = undefined; var stdoutReader: std.Io.File.Reader = .init(child.stdout.?, io, &stdoutBuffer); var stderrBuffer: [1024]u8 = undefined; var stderrReader: std.Io.File.Reader = .init(child.stderr.?, io, &stderrBuffer); var links: [2]Links = .{ .{ .reader = &stdoutReader.interface, .writer = &stdoutReceiver.writer, .streamType = .{ .remaining = {} }, }, .{ .reader = &stderrReader.interface, .writer = &stderrReceiver.writer, .streamType = .{ .remaining = {} }, }, }; if (streamMultiple(io, &links)) |index| { return switch (links[index].@"error") { error.ReadFailed => switch (index) { 0 => stdoutReader.err.?, 1 => stderrReader.err.?, else => unreachable, }, error.WriteFailed => error.OutOfMemory, error.EndOfStream => unreachable, }; } const stdout = try stdoutReceiver.toOwnedSlice(); errdefer allocator.free(stdout); const stderr = try stderrReceiver.toOwnedSlice(); errdefer allocator.free(stderr); return .{ stdout, stderr }; } ``` On the other hand if they do something more complicated in the event loop, then they should use an event loop instead of using an ad-hoc one like it's often done. Also, while writing this, I noticed that one could easily plug in giving stdin data (in which case the API would receive an `*std.Io.Reader` as an additional parameter and link that up in the links array).
Author
Owner

It looks like you're describing a new VTable function that does not actually prevent error.ConcurrencyUnavailable (how would it do that if it's based on streams), which is strictly worse than doing this diff, which requires no changes to the VTable. I don't mean to be rude, but if you want to be taken seriously I suggest making a working proof of concept for your idea.

It looks like you're describing a new VTable function that does not actually prevent `error.ConcurrencyUnavailable` (how would it do that if it's based on streams), which is strictly worse than doing [this diff](https://codeberg.org/ziglang/zig/pulls/30743#issuecomment-9661919), which requires *no changes to the VTable*. I don't mean to be rude, but if you want to be taken seriously I suggest making a working proof of concept for your idea.
First-time contributor

Ok, I just pushed two commits to my fork on codeberg (using my master branch for work).

ed632a022eb568af80b9cfe87540872af233afa6 introduces it. I only implemented it for posix and only applied the function to usage in child processes and also haven't applied it to the build system (or anywhere else, really).

But it's enough to build-exe for example this including with -fsingle-threaded: da0fe722152b3c0bf9610d0061a71e97f6b6d1c6

But I guess that's enough as a proof of concept.

Ok, I just pushed two commits to my fork on codeberg (using my master branch for work). [ed632a022eb568af80b9cfe87540872af233afa6](https://codeberg.org/KilianHanich/zig/commit/ed632a022eb568af80b9cfe87540872af233afa6) introduces it. I only implemented it for posix and only applied the function to usage in child processes and also haven't applied it to the build system (or anywhere else, really). But it's enough to build-exe for example this including with `-fsingle-threaded`: [da0fe722152b3c0bf9610d0061a71e97f6b6d1c6](https://codeberg.org/KilianHanich/zig/commit/da0fe722152b3c0bf9610d0061a71e97f6b6d1c6) But I guess that's enough as a proof of concept.
Author
Owner

Thanks, taking a look. I see that you changed it from std.Io.Reader to std.Io.File.Reader so that you could access the File in there. Then, there's no point in making Io aware of the streaming API, since it can be built above the VTable on top of the File based API.

Thanks, taking a look. I see that you changed it from `std.Io.Reader` to `std.Io.File.Reader` so that you could access the `File` in there. Then, there's no point in making Io aware of the streaming API, since it can be built above the VTable on top of the File based API.
First-time contributor

Then, there's no point in making Io aware of the streaming API, since it can be built above the VTable on top of the File based API.

Not really, my idea is that the Io implementation can decide on HOW to reach the goal of moving the bytes around.

In case of a blocking IO implementation like Threaded on POSIX, that would be poll (or something else if an implementation wants to do that). In case of Windows, that would be an IO completion port (I think?) since I am not sure how else you would do that on Windows without too much overhead.

In case of a non-blocking implementation it would "just" plug into whatever event loop already exists (e.g. io_uring, IOCP, kqueue etc.).

Basically whatever would be most efficient on the platform while staying in the constraints of the overall implementation.

> Then, there's no point in making Io aware of the streaming API, since it can be built above the VTable on top of the File based API. Not really, my idea is that the Io implementation can decide on HOW to reach the goal of moving the bytes around. In case of a blocking IO implementation like Threaded on POSIX, that would be poll (or something else if an implementation wants to do that). In case of Windows, that would be an IO completion port (I think?) since I am not sure how else you would do that on Windows without too much overhead. In case of a non-blocking implementation it would "just" plug into whatever event loop already exists (e.g. io_uring, IOCP, kqueue etc.). Basically whatever would be most efficient on the platform while staying in the constraints of the overall implementation.
Author
Owner

I'm sorry, I'm reading your code, and your prose, and I'm really trying to understand the point that you're making, but it is escaping me.

I'm sorry, I'm reading your code, and your prose, and I'm really trying to understand the point that you're making, but it is escaping me.
First-time contributor

What I am trying to say is this: When it comes to single threaded reading from multiple things (files, sockets etc.), different operating systems follow different philosophies and paradigms.

But you can always build an event loop around that. That's what std.Io and especially std.Io.Evented try to do.

But sometimes you don't want the overhead of an event loop encompassing your entire application or you use a different std.Io implementation. That use case is what this PR (and related issue) is about.

This use case can be divided into two subcategories:

  1. The ones where you only read from multiple things like files and then put the bytes somewhere (a buffer, another file, etc.). One example of this would be std.process.Child.collectOutput.
  2. The ones where you read from multiple things like files, do some calculation with them, and then either drop them or put them somewhere. One example of this would be a program which creates a merged list of lines from e.g. stdout and stderr of a program (as in both get put into a single ArrayList as it comes in).

What I am saying is that this PR should only tackle subcategory (1), but not subcategory (2). (And from reading how MultiReader works, I think only tackles (1) too, although the Batch and Operation types seem to try to implement a way of doing an event loop, too.)

In case of (2), people build in practise a small ad-hoc event loop. So instead they should be directed towards an actual event loop implementation.

The code I wrote only tackles subcategory (1) because it's a necessary use case, without being too complex.

The reason why I propose to do this below the interface level instead of on top of it, is because (imo) this can be tackled a lot easier and efficiently by each implementation since they can take better advantage of the platform's abilities and constraints they want to work under.

The reason for why I started to chime in was because I think the currently proposed way of doing things with especially Batch and Operation is overly complicated for what it's trying to achieve. And I used my (incomplete) example here as a way to describe how this could look like instead.

In case that still hasn't cleared that up, you can keep asking what I mean and I can try explaining it differently again.

What I am trying to say is this: When it comes to single threaded reading from multiple things (files, sockets etc.), different operating systems follow different philosophies and paradigms. But you can always build an event loop around that. That's what `std.Io` and especially `std.Io.Evented` try to do. But sometimes you don't want the overhead of an event loop encompassing your entire application or you use a different `std.Io` implementation. That use case is what this PR (and related issue) is about. This use case can be divided into two subcategories: 1. The ones where you *only* read from multiple things like files and then put the bytes somewhere (a buffer, another file, etc.). One example of this would be `std.process.Child.collectOutput`. 2. The ones where you read from multiple things like files, do some calculation with them, and then either drop them or put them somewhere. One example of this would be a program which creates a merged list of lines from e.g. stdout and stderr of a program (as in both get put into a single ArrayList as it comes in). What I am saying is that this PR should only tackle subcategory (1), but not subcategory (2). (And from reading how MultiReader works, I think only tackles (1) too, although the Batch and Operation types seem to try to implement a way of doing an event loop, too.) In case of (2), people build in practise a small ad-hoc event loop. So instead they should be directed towards an actual event loop implementation. The code I wrote only tackles subcategory (1) because it's a necessary use case, without being too complex. The reason why I propose to do this below the interface level instead of on top of it, is because (imo) this can be tackled a lot easier and efficiently by each implementation since they can take better advantage of the platform's abilities and constraints they want to work under. The reason for why I started to chime in was because I think the currently proposed way of doing things with especially Batch and Operation is overly complicated for what it's trying to achieve. And I used my (incomplete) example here as a way to describe how this could look like instead. In case that still hasn't cleared that up, you can keep asking what I mean and I can try explaining it differently again.
andrewrk force-pushed poll from 3b71c697ab
Some checks failed
ci / aarch64-macos-release (pull_request) Failing after 1m50s
ci / x86_64-freebsd-release (pull_request) Failing after 2m2s
ci / x86_64-freebsd-debug (pull_request) Failing after 2m48s
ci / x86_64-windows-release (pull_request) Failing after 3m16s
ci / x86_64-windows-debug (pull_request) Failing after 4m21s
ci / aarch64-macos-debug (pull_request) Failing after 5m13s
ci / x86_64-openbsd-release (pull_request) Failing after 4m20s
ci / x86_64-openbsd-debug (pull_request) Failing after 6m42s
ci / x86_64-linux-release (pull_request) Failing after 31m41s
ci / x86_64-linux-debug (pull_request) Failing after 35m42s
ci / aarch64-linux-release (pull_request) Failing after 57m56s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 1h2m36s
ci / aarch64-linux-debug (pull_request) Failing after 1h10m35s
ci / powerpc64le-linux-release (pull_request) Failing after 46m0s
ci / powerpc64le-linux-debug (pull_request) Failing after 54m1s
ci / s390x-linux-debug (pull_request) Failing after 1h7m59s
ci / s390x-linux-release (pull_request) Failing after 45m4s
ci / loongarch64-linux-release (pull_request) Failing after 1h0m43s
ci / loongarch64-linux-debug (pull_request) Failing after 1h17m53s
to 33cfa2ef3e
Some checks failed
ci / x86_64-windows-debug (pull_request) Failing after 16m34s
ci / x86_64-windows-release (pull_request) Failing after 17m7s
ci / aarch64-macos-release (pull_request) Failing after 24m34s
ci / x86_64-freebsd-release (pull_request) Failing after 26m50s
ci / x86_64-freebsd-debug (pull_request) Failing after 31m11s
ci / x86_64-openbsd-release (pull_request) Failing after 40m19s
ci / aarch64-macos-debug (pull_request) Failing after 44m25s
ci / x86_64-openbsd-debug (pull_request) Failing after 51m9s
ci / x86_64-linux-debug (pull_request) Failing after 56m45s
ci / x86_64-linux-release (pull_request) Failing after 1h5m27s
ci / aarch64-linux-release (pull_request) Failing after 1h9m21s
ci / aarch64-linux-debug (pull_request) Failing after 1h46m9s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 1h50m47s
ci / powerpc64le-linux-release (pull_request) Failing after 1h15m49s
ci / s390x-linux-debug (pull_request) Failing after 2h19m54s
ci / powerpc64le-linux-debug (pull_request) Failing after 2h42m37s
ci / s390x-linux-release (pull_request) Failing after 1h33m12s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / loongarch64-linux-release (pull_request) Failing after 1h45m20s
ci / loongarch64-linux-debug (pull_request) Failing after 2h30m14s
2026-01-17 06:54:48 +01:00
Compare
Author
Owner

Thank you for explaining it again. I think I understand the argument you're aiming to make, and I'm disagreeing on which code provides the simpler primitives to satisfy use case (1). Use case (2) is handled by futures API (io.async() and io.concurrent()).

I see the code in this branch as simpler because existing functionality is moved into operations. Batch and operate functions are added to the VTable, but in exchange, many functions are removed. Overall, the number of functions in the VTable decreases by a lot, while giving timeouts and batching capabilities consistently to most I/O operations. Meanwhile, high level APIs do not change.

By comparison this streamMultiple function you proposed is brand new API. It's extra stuff on top of what's already there. It introduces unnecessary dependencies into std.Io on std.Io.File.Reader as well as std.Io.Writer. The tagged union StreamType is in an awkward position between being clumsy but lacking power. For instance, this streamMultiple could be implemented on top of the Batch API in this branch. But the Batch API could not be implemented on top of streamMultiple.

I do appreciate your input and patience while walking me through your perspective. At this point I think I am satisfied to move forward with the code in this branch.

Thank you for explaining it again. I think I understand the argument you're aiming to make, and I'm disagreeing on which code provides the simpler primitives to satisfy use case (1). Use case (2) is handled by futures API (`io.async()` and `io.concurrent()`). I see the code in this branch as simpler because existing functionality is *moved* into operations. Batch and operate functions are added to the VTable, but in exchange, many functions are removed. Overall, the number of functions in the VTable decreases by a lot, while giving timeouts and batching capabilities consistently to most I/O operations. Meanwhile, high level APIs do not change. By comparison this `streamMultiple` function you proposed is brand new API. It's extra stuff on top of what's already there. It introduces unnecessary dependencies into `std.Io` on `std.Io.File.Reader` as well as `std.Io.Writer`. The tagged union StreamType is in an awkward position between being clumsy but lacking power. For instance, this `streamMultiple` could be implemented on top of the Batch API in this branch. But the Batch API could not be implemented on top of `streamMultiple`. I do appreciate your input and patience while walking me through your perspective. At this point I think I am satisfied to move forward with the code in this branch.
andrewrk force-pushed poll from 33cfa2ef3e
Some checks failed
ci / x86_64-windows-debug (pull_request) Failing after 16m34s
ci / x86_64-windows-release (pull_request) Failing after 17m7s
ci / aarch64-macos-release (pull_request) Failing after 24m34s
ci / x86_64-freebsd-release (pull_request) Failing after 26m50s
ci / x86_64-freebsd-debug (pull_request) Failing after 31m11s
ci / x86_64-openbsd-release (pull_request) Failing after 40m19s
ci / aarch64-macos-debug (pull_request) Failing after 44m25s
ci / x86_64-openbsd-debug (pull_request) Failing after 51m9s
ci / x86_64-linux-debug (pull_request) Failing after 56m45s
ci / x86_64-linux-release (pull_request) Failing after 1h5m27s
ci / aarch64-linux-release (pull_request) Failing after 1h9m21s
ci / aarch64-linux-debug (pull_request) Failing after 1h46m9s
ci / x86_64-linux-debug-llvm (pull_request) Failing after 1h50m47s
ci / powerpc64le-linux-release (pull_request) Failing after 1h15m49s
ci / s390x-linux-debug (pull_request) Failing after 2h19m54s
ci / powerpc64le-linux-debug (pull_request) Failing after 2h42m37s
ci / s390x-linux-release (pull_request) Failing after 1h33m12s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / loongarch64-linux-release (pull_request) Failing after 1h45m20s
ci / loongarch64-linux-debug (pull_request) Failing after 2h30m14s
to 283d0c380d
Some checks failed
ci / x86_64-windows-release (pull_request) Failing after 5m11s
ci / x86_64-windows-debug (pull_request) Failing after 18m18s
ci / aarch64-macos-release (pull_request) Successful in 26m49s
ci / x86_64-freebsd-release (pull_request) Successful in 34m56s
ci / x86_64-freebsd-debug (pull_request) Successful in 39m3s
ci / x86_64-openbsd-release (pull_request) Successful in 51m30s
ci / aarch64-macos-debug (pull_request) Successful in 57m12s
ci / x86_64-linux-debug (pull_request) Successful in 1h2m20s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h7m59s
ci / aarch64-linux-release (pull_request) Successful in 1h26m27s
ci / aarch64-linux-debug (pull_request) Successful in 2h17m10s
ci / powerpc64le-linux-release (pull_request) Successful in 1h25m11s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h32m11s
ci / s390x-linux-release (pull_request) Successful in 1h52m0s
ci / s390x-linux-debug (pull_request) Successful in 2h32m46s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / x86_64-linux-release (pull_request) Successful in 2h44m2s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h52m41s
ci / riscv64-linux-release (pull_request) Has been skipped
ci / loongarch64-linux-release (pull_request) Successful in 2h19m15s
ci / loongarch64-linux-debug (pull_request) Successful in 3h27m15s
2026-01-20 00:18:54 +01:00
Compare
andrewrk force-pushed poll from 283d0c380d
Some checks failed
ci / x86_64-windows-release (pull_request) Failing after 5m11s
ci / x86_64-windows-debug (pull_request) Failing after 18m18s
ci / aarch64-macos-release (pull_request) Successful in 26m49s
ci / x86_64-freebsd-release (pull_request) Successful in 34m56s
ci / x86_64-freebsd-debug (pull_request) Successful in 39m3s
ci / x86_64-openbsd-release (pull_request) Successful in 51m30s
ci / aarch64-macos-debug (pull_request) Successful in 57m12s
ci / x86_64-linux-debug (pull_request) Successful in 1h2m20s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h7m59s
ci / aarch64-linux-release (pull_request) Successful in 1h26m27s
ci / aarch64-linux-debug (pull_request) Successful in 2h17m10s
ci / powerpc64le-linux-release (pull_request) Successful in 1h25m11s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h32m11s
ci / s390x-linux-release (pull_request) Successful in 1h52m0s
ci / s390x-linux-debug (pull_request) Successful in 2h32m46s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / x86_64-linux-release (pull_request) Successful in 2h44m2s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h52m41s
ci / riscv64-linux-release (pull_request) Has been skipped
ci / loongarch64-linux-release (pull_request) Successful in 2h19m15s
ci / loongarch64-linux-debug (pull_request) Successful in 3h27m15s
to d04aeff053
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 43m43s
ci / aarch64-macos-debug (pull_request) Successful in 1h5m30s
ci / x86_64-freebsd-release (pull_request) Successful in 34m10s
ci / x86_64-freebsd-debug (pull_request) Successful in 58m48s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h2m41s
ci / x86_64-openbsd-release (pull_request) Successful in 55m12s
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
2026-01-27 04:30:16 +01:00
Compare
andrewrk force-pushed poll from d04aeff053
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 43m43s
ci / aarch64-macos-debug (pull_request) Successful in 1h5m30s
ci / x86_64-freebsd-release (pull_request) Successful in 34m10s
ci / x86_64-freebsd-debug (pull_request) Successful in 58m48s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h2m41s
ci / x86_64-openbsd-release (pull_request) Successful in 55m12s
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
to 8905026976
Some checks failed
ci / x86_64-freebsd-debug (pull_request) Successful in 43m9s
ci / aarch64-macos-release (pull_request) Successful in 1h12m36s
ci / x86_64-freebsd-release (pull_request) Successful in 39m31s
ci / aarch64-macos-debug (pull_request) Successful in 1h23m27s
ci / aarch64-linux-release (pull_request) Successful in 1h35m21s
ci / x86_64-openbsd-release (pull_request) Successful in 57m11s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h4m11s
ci / aarch64-linux-debug (pull_request) Successful in 2h15m32s
ci / x86_64-linux-debug (pull_request) Successful in 1h22m36s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h56m2s
ci / x86_64-linux-release (pull_request) Successful in 3h15m2s
ci / powerpc64le-linux-release (pull_request) Successful in 1h30m59s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h15m10s
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
2026-01-27 07:21:03 +01:00
Compare
andrewrk force-pushed poll from 8905026976
Some checks failed
ci / x86_64-freebsd-debug (pull_request) Successful in 43m9s
ci / aarch64-macos-release (pull_request) Successful in 1h12m36s
ci / x86_64-freebsd-release (pull_request) Successful in 39m31s
ci / aarch64-macos-debug (pull_request) Successful in 1h23m27s
ci / aarch64-linux-release (pull_request) Successful in 1h35m21s
ci / x86_64-openbsd-release (pull_request) Successful in 57m11s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h4m11s
ci / aarch64-linux-debug (pull_request) Successful in 2h15m32s
ci / x86_64-linux-debug (pull_request) Successful in 1h22m36s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h56m2s
ci / x86_64-linux-release (pull_request) Successful in 3h15m2s
ci / powerpc64le-linux-release (pull_request) Successful in 1h30m59s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h15m10s
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
to dfd53c54b2
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 1h4m11s
ci / x86_64-linux-debug (pull_request) Successful in 1h14m2s
ci / x86_64-freebsd-release (pull_request) Successful in 39m44s
ci / x86_64-freebsd-debug (pull_request) Successful in 46m57s
ci / aarch64-macos-debug (pull_request) Successful in 1h34m48s
ci / aarch64-linux-release (pull_request) Successful in 1h38m34s
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
2026-01-27 20:38:40 +01:00
Compare
andrewrk force-pushed poll from 70d020edb1
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 40m33s
ci / aarch64-macos-release (pull_request) Successful in 57m11s
ci / x86_64-freebsd-debug (pull_request) Successful in 51m2s
ci / aarch64-macos-debug (pull_request) Successful in 1h1m58s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h0m29s
ci / x86_64-openbsd-release (pull_request) Successful in 57m19s
ci / x86_64-linux-debug (pull_request) Successful in 1h31m12s
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
to b3a007e29e
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 26m21s
ci / x86_64-freebsd-release (pull_request) Successful in 30m9s
ci / x86_64-freebsd-debug (pull_request) Successful in 41m32s
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
2026-01-28 01:57:25 +01:00
Compare
andrewrk force-pushed poll from b3a007e29e
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 26m21s
ci / x86_64-freebsd-release (pull_request) Successful in 30m9s
ci / x86_64-freebsd-debug (pull_request) Successful in 41m32s
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
to 687ba00f7c
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 29m1s
ci / x86_64-freebsd-release (pull_request) Successful in 31m13s
ci / x86_64-freebsd-debug (pull_request) Successful in 40m36s
ci / x86_64-openbsd-release (pull_request) Successful in 42m53s
ci / x86_64-openbsd-debug (pull_request) Successful in 47m3s
ci / aarch64-macos-debug (pull_request) Successful in 1h23m19s
ci / x86_64-linux-debug (pull_request) Successful in 1h33m6s
ci / aarch64-linux-release (pull_request) Successful in 1h38m59s
ci / x86_64-linux-release (pull_request) Successful in 1h54m22s
ci / aarch64-linux-debug (pull_request) Successful in 2h14m50s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h36m35s
ci / x86_64-windows-debug (pull_request) Failing after 3h0m35s
ci / x86_64-windows-release (pull_request) Failing after 3h0m30s
ci / powerpc64le-linux-release (pull_request) Successful in 1h42m7s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h32m56s
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
2026-01-28 02:45:46 +01:00
Compare
andrewrk force-pushed poll from 687ba00f7c
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 29m1s
ci / x86_64-freebsd-release (pull_request) Successful in 31m13s
ci / x86_64-freebsd-debug (pull_request) Successful in 40m36s
ci / x86_64-openbsd-release (pull_request) Successful in 42m53s
ci / x86_64-openbsd-debug (pull_request) Successful in 47m3s
ci / aarch64-macos-debug (pull_request) Successful in 1h23m19s
ci / x86_64-linux-debug (pull_request) Successful in 1h33m6s
ci / aarch64-linux-release (pull_request) Successful in 1h38m59s
ci / x86_64-linux-release (pull_request) Successful in 1h54m22s
ci / aarch64-linux-debug (pull_request) Successful in 2h14m50s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h36m35s
ci / x86_64-windows-debug (pull_request) Failing after 3h0m35s
ci / x86_64-windows-release (pull_request) Failing after 3h0m30s
ci / powerpc64le-linux-release (pull_request) Successful in 1h42m7s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h32m56s
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
to 4c9d22bcb1
Some checks failed
ci / riscv64-linux-debug (pull_request) Waiting to run
ci / riscv64-linux-release (pull_request) Waiting to run
ci / aarch64-macos-release (pull_request) Successful in 27m33s
ci / x86_64-freebsd-release (pull_request) Successful in 31m19s
ci / x86_64-openbsd-release (pull_request) Successful in 39m14s
ci / x86_64-freebsd-debug (pull_request) Successful in 41m3s
ci / x86_64-openbsd-debug (pull_request) Successful in 47m56s
ci / aarch64-macos-debug (pull_request) Successful in 56m13s
ci / x86_64-linux-debug (pull_request) Successful in 59m28s
ci / aarch64-linux-release (pull_request) Successful in 1h26m2s
ci / powerpc64le-linux-release (pull_request) Successful in 1h24m51s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h1m52s
ci / x86_64-linux-release (pull_request) Successful in 2h5m47s
ci / aarch64-linux-debug (pull_request) Successful in 2h19m24s
ci / x86_64-windows-release (pull_request) Failing after 3h0m41s
ci / x86_64-windows-debug (pull_request) Failing after 3h0m43s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h50m38s
ci / s390x-linux-release (pull_request) Successful in 1h22m14s
ci / s390x-linux-debug (pull_request) Successful in 2h34m7s
ci / loongarch64-linux-release (pull_request) Successful in 2h18m10s
ci / loongarch64-linux-debug (pull_request) Failing after 4h4m36s
2026-01-28 09:02:35 +01:00
Compare
andrewrk force-pushed poll from 4c9d22bcb1
Some checks failed
ci / riscv64-linux-debug (pull_request) Waiting to run
ci / riscv64-linux-release (pull_request) Waiting to run
ci / aarch64-macos-release (pull_request) Successful in 27m33s
ci / x86_64-freebsd-release (pull_request) Successful in 31m19s
ci / x86_64-openbsd-release (pull_request) Successful in 39m14s
ci / x86_64-freebsd-debug (pull_request) Successful in 41m3s
ci / x86_64-openbsd-debug (pull_request) Successful in 47m56s
ci / aarch64-macos-debug (pull_request) Successful in 56m13s
ci / x86_64-linux-debug (pull_request) Successful in 59m28s
ci / aarch64-linux-release (pull_request) Successful in 1h26m2s
ci / powerpc64le-linux-release (pull_request) Successful in 1h24m51s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h1m52s
ci / x86_64-linux-release (pull_request) Successful in 2h5m47s
ci / aarch64-linux-debug (pull_request) Successful in 2h19m24s
ci / x86_64-windows-release (pull_request) Failing after 3h0m41s
ci / x86_64-windows-debug (pull_request) Failing after 3h0m43s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h50m38s
ci / s390x-linux-release (pull_request) Successful in 1h22m14s
ci / s390x-linux-debug (pull_request) Successful in 2h34m7s
ci / loongarch64-linux-release (pull_request) Successful in 2h18m10s
ci / loongarch64-linux-debug (pull_request) Failing after 4h4m36s
to 4f0754b42e
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 44m7s
ci / x86_64-freebsd-debug (pull_request) Successful in 51m4s
ci / aarch64-macos-debug (pull_request) Successful in 1h7m33s
ci / x86_64-freebsd-release (pull_request) Successful in 35m53s
ci / x86_64-openbsd-release (pull_request) Successful in 50m53s
ci / x86_64-linux-debug (pull_request) Successful in 1h27m9s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h8m2s
ci / aarch64-linux-release (pull_request) Successful in 1h29m28s
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
2026-01-29 00:28:38 +01:00
Compare
andrewrk force-pushed poll from 9605d4450d
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
to 7211bebbb9
Some checks failed
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
2026-01-29 03:19:41 +01:00
Compare
andrewrk force-pushed poll from 033968c98c
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 29m51s
ci / aarch64-macos-release (pull_request) Successful in 30m50s
ci / x86_64-freebsd-debug (pull_request) Successful in 38m51s
ci / x86_64-openbsd-release (pull_request) Successful in 40m23s
ci / x86_64-openbsd-debug (pull_request) Successful in 51m41s
ci / aarch64-macos-debug (pull_request) Successful in 57m56s
ci / aarch64-linux-release (pull_request) Successful in 1h28m13s
ci / x86_64-linux-debug (pull_request) Successful in 1h46m6s
ci / aarch64-linux-debug (pull_request) Successful in 2h13m41s
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
to 9b92d122f4
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 31m9s
ci / x86_64-freebsd-debug (pull_request) Successful in 38m0s
ci / aarch64-macos-release (pull_request) Successful in 40m21s
ci / x86_64-openbsd-release (pull_request) Successful in 39m43s
ci / x86_64-openbsd-debug (pull_request) Successful in 51m8s
ci / aarch64-macos-debug (pull_request) Successful in 59m48s
ci / x86_64-linux-debug (pull_request) Successful in 1h19m2s
ci / aarch64-linux-release (pull_request) Successful in 1h28m45s
ci / aarch64-linux-debug (pull_request) Successful in 2h12m28s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h25m51s
ci / powerpc64le-linux-release (pull_request) Successful in 1h30m6s
ci / s390x-linux-release (pull_request) Successful in 1h15m13s
ci / x86_64-windows-release (pull_request) Failing after 4h4m27s
ci / x86_64-windows-debug (pull_request) Failing after 4h4m28s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h31m27s
ci / s390x-linux-debug (pull_request) Successful in 3h12m20s
ci / loongarch64-linux-release (pull_request) Successful in 2h1m58s
ci / x86_64-linux-release (pull_request) Successful in 1h21m46s
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
2026-01-29 06:03:12 +01:00
Compare
andrewrk force-pushed poll from 9b92d122f4
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 31m9s
ci / x86_64-freebsd-debug (pull_request) Successful in 38m0s
ci / aarch64-macos-release (pull_request) Successful in 40m21s
ci / x86_64-openbsd-release (pull_request) Successful in 39m43s
ci / x86_64-openbsd-debug (pull_request) Successful in 51m8s
ci / aarch64-macos-debug (pull_request) Successful in 59m48s
ci / x86_64-linux-debug (pull_request) Successful in 1h19m2s
ci / aarch64-linux-release (pull_request) Successful in 1h28m45s
ci / aarch64-linux-debug (pull_request) Successful in 2h12m28s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h25m51s
ci / powerpc64le-linux-release (pull_request) Successful in 1h30m6s
ci / s390x-linux-release (pull_request) Successful in 1h15m13s
ci / x86_64-windows-release (pull_request) Failing after 4h4m27s
ci / x86_64-windows-debug (pull_request) Failing after 4h4m28s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h31m27s
ci / s390x-linux-debug (pull_request) Successful in 3h12m20s
ci / loongarch64-linux-release (pull_request) Successful in 2h1m58s
ci / x86_64-linux-release (pull_request) Successful in 1h21m46s
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
to 0a5475e2f8
Some checks failed
ci / x86_64-windows-release (pull_request) Failing after 43s
ci / x86_64-windows-debug (pull_request) Failing after 45s
ci / aarch64-macos-release (pull_request) Successful in 31m6s
ci / x86_64-freebsd-release (pull_request) Successful in 34m23s
ci / aarch64-macos-debug (pull_request) Successful in 1h34m20s
ci / x86_64-freebsd-debug (pull_request) Successful in 42m14s
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
2026-01-29 20:16:08 +01:00
Compare
mlugg force-pushed poll from e0514b8a57
Some checks failed
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
to ae0a3c8635
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 26m20s
ci / x86_64-freebsd-release (pull_request) Successful in 30m4s
ci / x86_64-freebsd-debug (pull_request) Successful in 40m25s
ci / x86_64-openbsd-release (pull_request) Successful in 43m17s
ci / x86_64-openbsd-debug (pull_request) Successful in 50m14s
ci / aarch64-macos-debug (pull_request) Successful in 53m50s
ci / x86_64-linux-debug (pull_request) Successful in 1h12m31s
ci / aarch64-linux-release (pull_request) Successful in 1h26m53s
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
2026-01-30 01:58:32 +01:00
Compare
andrewrk force-pushed poll from ae0a3c8635
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 26m20s
ci / x86_64-freebsd-release (pull_request) Successful in 30m4s
ci / x86_64-freebsd-debug (pull_request) Successful in 40m25s
ci / x86_64-openbsd-release (pull_request) Successful in 43m17s
ci / x86_64-openbsd-debug (pull_request) Successful in 50m14s
ci / aarch64-macos-debug (pull_request) Successful in 53m50s
ci / x86_64-linux-debug (pull_request) Successful in 1h12m31s
ci / aarch64-linux-release (pull_request) Successful in 1h26m53s
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
to 05c071405d
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 43m48s
ci / x86_64-freebsd-release (pull_request) Successful in 31m49s
ci / aarch64-macos-debug (pull_request) Successful in 1h7m59s
ci / x86_64-freebsd-debug (pull_request) Successful in 41m4s
ci / x86_64-openbsd-debug (pull_request) Successful in 51m16s
ci / x86_64-openbsd-release (pull_request) Successful in 42m12s
ci / aarch64-linux-release (pull_request) Successful in 1h35m19s
ci / x86_64-linux-debug (pull_request) Successful in 1h59m46s
ci / aarch64-linux-debug (pull_request) Successful in 2h21m2s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h22m1s
ci / x86_64-linux-release (pull_request) Successful in 2h30m2s
ci / powerpc64le-linux-release (pull_request) Successful in 1h34m57s
ci / x86_64-windows-release (pull_request) Failing after 1h4m20s
ci / x86_64-windows-debug (pull_request) Failing after 1h52m18s
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
2026-01-30 03:49:52 +01:00
Compare
andrewrk force-pushed poll from 05c071405d
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 43m48s
ci / x86_64-freebsd-release (pull_request) Successful in 31m49s
ci / aarch64-macos-debug (pull_request) Successful in 1h7m59s
ci / x86_64-freebsd-debug (pull_request) Successful in 41m4s
ci / x86_64-openbsd-debug (pull_request) Successful in 51m16s
ci / x86_64-openbsd-release (pull_request) Successful in 42m12s
ci / aarch64-linux-release (pull_request) Successful in 1h35m19s
ci / x86_64-linux-debug (pull_request) Successful in 1h59m46s
ci / aarch64-linux-debug (pull_request) Successful in 2h21m2s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h22m1s
ci / x86_64-linux-release (pull_request) Successful in 2h30m2s
ci / powerpc64le-linux-release (pull_request) Successful in 1h34m57s
ci / x86_64-windows-release (pull_request) Failing after 1h4m20s
ci / x86_64-windows-debug (pull_request) Failing after 1h52m18s
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
to 5c735fff0e
Some checks failed
ci / riscv64-linux-debug (pull_request) Waiting to run
ci / riscv64-linux-release (pull_request) Waiting to run
ci / x86_64-freebsd-release (pull_request) Successful in 30m44s
ci / x86_64-freebsd-debug (pull_request) Successful in 52m43s
ci / aarch64-macos-release (pull_request) Successful in 1h5m59s
ci / x86_64-openbsd-release (pull_request) Successful in 54m24s
ci / aarch64-macos-debug (pull_request) Successful in 1h28m10s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h9m54s
ci / aarch64-linux-release (pull_request) Successful in 1h32m36s
ci / x86_64-linux-debug (pull_request) Successful in 1h43m7s
ci / aarch64-linux-debug (pull_request) Successful in 2h24m19s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h45m57s
ci / x86_64-linux-release (pull_request) Successful in 3h18m4s
ci / x86_64-windows-release (pull_request) Failing after 1h5m8s
ci / x86_64-windows-debug (pull_request) Failing after 1h22m40s
ci / powerpc64le-linux-release (pull_request) Successful in 1h34m14s
ci / s390x-linux-release (pull_request) Successful in 1h23m57s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h1m29s
ci / s390x-linux-debug (pull_request) Successful in 3h0m31s
ci / loongarch64-linux-release (pull_request) Successful in 2h1m5s
ci / loongarch64-linux-debug (pull_request) Successful in 3h29m20s
2026-01-30 07:59:35 +01:00
Compare
andrewrk force-pushed poll from 5c735fff0e
Some checks failed
ci / riscv64-linux-debug (pull_request) Waiting to run
ci / riscv64-linux-release (pull_request) Waiting to run
ci / x86_64-freebsd-release (pull_request) Successful in 30m44s
ci / x86_64-freebsd-debug (pull_request) Successful in 52m43s
ci / aarch64-macos-release (pull_request) Successful in 1h5m59s
ci / x86_64-openbsd-release (pull_request) Successful in 54m24s
ci / aarch64-macos-debug (pull_request) Successful in 1h28m10s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h9m54s
ci / aarch64-linux-release (pull_request) Successful in 1h32m36s
ci / x86_64-linux-debug (pull_request) Successful in 1h43m7s
ci / aarch64-linux-debug (pull_request) Successful in 2h24m19s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h45m57s
ci / x86_64-linux-release (pull_request) Successful in 3h18m4s
ci / x86_64-windows-release (pull_request) Failing after 1h5m8s
ci / x86_64-windows-debug (pull_request) Failing after 1h22m40s
ci / powerpc64le-linux-release (pull_request) Successful in 1h34m14s
ci / s390x-linux-release (pull_request) Successful in 1h23m57s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h1m29s
ci / s390x-linux-debug (pull_request) Successful in 3h0m31s
ci / loongarch64-linux-release (pull_request) Successful in 2h1m5s
ci / loongarch64-linux-debug (pull_request) Successful in 3h29m20s
to 203d75f792
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 31m30s
ci / aarch64-macos-release (pull_request) Successful in 32m17s
ci / x86_64-freebsd-debug (pull_request) Successful in 36m58s
ci / x86_64-openbsd-release (pull_request) Successful in 41m34s
ci / aarch64-macos-debug (pull_request) Successful in 52m46s
ci / x86_64-openbsd-debug (pull_request) Successful in 52m41s
ci / powerpc64le-linux-release (pull_request) Failing after 1h12m29s
ci / x86_64-linux-debug (pull_request) Successful in 1h14m35s
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
2026-01-30 21:28:19 +01:00
Compare
andrewrk force-pushed poll from 203d75f792
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 31m30s
ci / aarch64-macos-release (pull_request) Successful in 32m17s
ci / x86_64-freebsd-debug (pull_request) Successful in 36m58s
ci / x86_64-openbsd-release (pull_request) Successful in 41m34s
ci / aarch64-macos-debug (pull_request) Successful in 52m46s
ci / x86_64-openbsd-debug (pull_request) Successful in 52m41s
ci / powerpc64le-linux-release (pull_request) Failing after 1h12m29s
ci / x86_64-linux-debug (pull_request) Successful in 1h14m35s
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
to 32d91ab3fe
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 36m12s
ci / x86_64-freebsd-debug (pull_request) Successful in 43m37s
ci / aarch64-macos-release (pull_request) Successful in 44m45s
ci / aarch64-macos-debug (pull_request) Successful in 53m36s
ci / x86_64-openbsd-release (pull_request) Successful in 55m38s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h6m7s
ci / x86_64-linux-debug (pull_request) Successful in 1h9m12s
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
2026-01-30 22:59:45 +01:00
Compare
andrewrk force-pushed poll from 32d91ab3fe
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 36m12s
ci / x86_64-freebsd-debug (pull_request) Successful in 43m37s
ci / aarch64-macos-release (pull_request) Successful in 44m45s
ci / aarch64-macos-debug (pull_request) Successful in 53m36s
ci / x86_64-openbsd-release (pull_request) Successful in 55m38s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h6m7s
ci / x86_64-linux-debug (pull_request) Successful in 1h9m12s
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
to 546535c48f
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 32m15s
ci / x86_64-freebsd-release (pull_request) Successful in 39m33s
ci / x86_64-freebsd-debug (pull_request) Successful in 45m18s
ci / x86_64-openbsd-release (pull_request) Successful in 56m11s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h3m34s
ci / powerpc64le-linux-release (pull_request) Failing after 1h15m39s
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Failing after 20m16s
ci / x86_64-windows-release (pull_request) Failing after 20m18s
2026-01-31 00:16:02 +01:00
Compare
andrewrk force-pushed poll from 546535c48f
Some checks failed
ci / aarch64-macos-release (pull_request) Successful in 32m15s
ci / x86_64-freebsd-release (pull_request) Successful in 39m33s
ci / x86_64-freebsd-debug (pull_request) Successful in 45m18s
ci / x86_64-openbsd-release (pull_request) Successful in 56m11s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h3m34s
ci / powerpc64le-linux-release (pull_request) Failing after 1h15m39s
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Failing after 20m16s
ci / x86_64-windows-release (pull_request) Failing after 20m18s
to 9f6152ae93
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 29m40s
ci / x86_64-freebsd-debug (pull_request) Successful in 38m39s
ci / aarch64-macos-release (pull_request) Successful in 39m43s
ci / x86_64-openbsd-release (pull_request) Successful in 41m34s
ci / x86_64-windows-release (pull_request) Successful in 43m36s
ci / x86_64-windows-debug (pull_request) Successful in 47m27s
ci / aarch64-macos-debug (pull_request) Successful in 51m36s
ci / x86_64-openbsd-debug (pull_request) Successful in 53m18s
ci / powerpc64le-linux-release (pull_request) Failing after 1h25m32s
ci / aarch64-linux-release (pull_request) Successful in 1h26m54s
ci / x86_64-linux-debug (pull_request) Successful in 1h28m6s
ci / s390x-linux-release (pull_request) Successful in 1h51m6s
ci / x86_64-linux-release (pull_request) Failing after 2h29m43s
ci / aarch64-linux-debug (pull_request) Successful in 2h36m49s
ci / s390x-linux-debug (pull_request) Successful in 2h44m33s
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
2026-01-31 04:21:29 +01:00
Compare
andrewrk force-pushed poll from 9f6152ae93
Some checks failed
ci / x86_64-freebsd-release (pull_request) Successful in 29m40s
ci / x86_64-freebsd-debug (pull_request) Successful in 38m39s
ci / aarch64-macos-release (pull_request) Successful in 39m43s
ci / x86_64-openbsd-release (pull_request) Successful in 41m34s
ci / x86_64-windows-release (pull_request) Successful in 43m36s
ci / x86_64-windows-debug (pull_request) Successful in 47m27s
ci / aarch64-macos-debug (pull_request) Successful in 51m36s
ci / x86_64-openbsd-debug (pull_request) Successful in 53m18s
ci / powerpc64le-linux-release (pull_request) Failing after 1h25m32s
ci / aarch64-linux-release (pull_request) Successful in 1h26m54s
ci / x86_64-linux-debug (pull_request) Successful in 1h28m6s
ci / s390x-linux-release (pull_request) Successful in 1h51m6s
ci / x86_64-linux-release (pull_request) Failing after 2h29m43s
ci / aarch64-linux-debug (pull_request) Successful in 2h36m49s
ci / s390x-linux-debug (pull_request) Successful in 2h44m33s
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
to 9646801bed
All checks were successful
ci / x86_64-freebsd-release (pull_request) Successful in 36m42s
ci / x86_64-openbsd-release (pull_request) Successful in 46m55s
ci / x86_64-freebsd-debug (pull_request) Successful in 50m9s
ci / aarch64-macos-release (pull_request) Successful in 52m3s
ci / x86_64-windows-release (pull_request) Successful in 52m19s
ci / x86_64-windows-debug (pull_request) Successful in 55m42s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h2m4s
ci / x86_64-linux-debug (pull_request) Successful in 1h6m9s
ci / aarch64-macos-debug (pull_request) Successful in 1h13m45s
ci / s390x-linux-release (pull_request) Successful in 1h14m22s
ci / powerpc64le-linux-release (pull_request) Successful in 1h38m59s
ci / aarch64-linux-release (pull_request) Successful in 1h42m31s
ci / aarch64-linux-debug (pull_request) Successful in 2h16m28s
ci / s390x-linux-debug (pull_request) Successful in 2h53m56s
ci / powerpc64le-linux-debug (pull_request) Successful in 4h14m26s
ci / x86_64-linux-release (pull_request) Successful in 2h48m47s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 2h50m38s
ci / loongarch64-linux-release (pull_request) Successful in 2h16m3s
ci / loongarch64-linux-debug (pull_request) Successful in 3h2m18s
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
2026-01-31 07:06:59 +01:00
Compare
andrewrk scheduled this pull request to auto merge when all checks succeed 2026-01-31 08:24:34 +01:00
andrewrk merged commit 2b19134c86 into master 2026-01-31 12:07:34 +01:00
andrewrk deleted branch poll 2026-01-31 12:07:35 +01:00
Contributor
Also closes https://github.com/ziglang/zig/issues/20952 and https://github.com/ziglang/zig/issues/22709 (`collectOutput()` has been removed in this PR)
Sign in to join this conversation.
No reviewers
No milestone
No assignees
6 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ziglang/zig!30743
No description provided.