Unfortunately, the current POSIX AIO implementation is done in user space by glibc. That's the reason why I covered poll and epoll. The next logical variant to add would be io_uring.
Although I’ve noticed that it’s written in C. I would suggest educational materials to be written in Rust, unless the topic is very low-level optimization. That way you can be sure that even if some novice blindly copies your example code, it won’t cause any security issues, thus saving you from the liability :)
(Glances at the "Programming Rust" book which has been sitting on his desk for months and thinks about writing an indemnification clause in the LICENSE file)
I've never really done any serious work on anything other than Linux. But I always wanted to try out kqueue(). Even if I don't add a separate section on kqueue(), I think it warrants a clear mention.
All comments shown.
Couldn't load more comments. Check your connection and try again.
Comments (57) 16 threads
Earlier commentshttps://blog.cloudflare.com/io_submit-the-epoll-alternative-...
Continue this thread — 1 reply
Although I’ve noticed that it’s written in C. I would suggest educational materials to be written in Rust, unless the topic is very low-level optimization.
That way you can be sure that even if some novice blindly copies your example code, it won’t cause any security issues, thus saving you from the liability :)
This is because Linux doesn't support kqueue. Got to make do with their pointless NiH syndrome fueled epoll().
All comments shown.
Couldn't load more comments. Check your connection and try again.