
Building a Database with Joran Greef
Software Unscripted
00:00
IO Ring Is a Great Way to Do All Your IO
Zig code doesn't use like zig's async await at all. It's written as if it were single threaded, but really what the single threaded code is doing is using operating system primitives to say, I want to in cue this for the OS to handle the asynchronous of it. And you just have a gigantic while loop and maybe I guess you have one. Each CPU core is running one of those. But IO ring is also great because it gives you a unified IO API not only for file system access but also for networking. So all of a sudden you've got one way to do all your IO.
Transcript
Play full episode