Been working on redoing Zig's Reader/Writer interface in the standard library. The new interface is non-generic, and yet it manages to be syscall optimal in terms of buffering and using special syscalls like sendfile().

In this example, we see it do this even though it's streaming three different things into a pipeline: tar -> http -> network socket

screenshot of some zig code and strace output
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/andrewrk/statuses/114442282571850619 on your instance and quote it. (Note that quoting is not supported in Mastodon.)