Lurker News

Comments (57) 16 threads

Earlier comments
cbsmith1 reply#
Needs async IO variant as well...
shuss1 reply#
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.
shuss1 reply#
Oh, wow. Never knew about this. This is most certainly worth checking out.

Continue this thread — 1 reply

layoutIfNeeded1 reply#
Very nice writeup!

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 :)

shuss#
(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)
snvzz1 reply#
Notably lacks part VIII, kqueue-based server.

This is because Linux doesn't support kqueue. Got to make do with their pointless NiH syndrome fueled epoll().

shuss#
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.