Hacker News new | ask | show | jobs
by dontlaugh 31 days ago
It’s certainly sad for long it took for IOCP to be copied in the form of io_uring.
1 comments

…which is still limited compared to IOCP. I’d love to be able to wait for locks, semaphores, etc. using uring. But no, even if you fall back to POSIX semaphores, the “everything is a file” paradigm has far too many asterisks to deliver on its promise.

Pop quiz: across all kinds of FDs (including block files, dirfds, sockets, signalfds, eventfds, lock descriptors, /proc files, tmpfs files, timerfds, and so on), which features of {select/epoll, io_uring, O_NOBLOCK, inotify/fanotify, etc.} are supported?

You didn't mention the one with great consistency! You can close() all of them ;)
At least there's that :)