4 ms·
> it only further convinces me what a leaky abstraction epoll(7) is epoll isn't an abstraction at all. It was never designed to be. epoll was designed as a f
by JoshTriplett 11y ago
> it only further convinces me what a leaky abstraction epoll(7) is
epoll isn't an abstraction at all. It was never designed to be. epoll was designed as a far more scalable replacement for poll and select.
- vezzy-fnord 11y agoThat's a very baffling thing to say. Just what is a file descriptor to begin with but an abstraction? And what is a mechanism to multiplex on file descriptors other than an abstraction?
- JoshTriplett 11y agoepoll isn't designed to hide anything from you. If anything, it's designed to expose more of the low-level details to allow building a more scalable event loop. For instance, see the whole edge-triggered versus level-triggered bit, a distinction wholly unavailable in poll or select. In particular, epoll wasn't designed to be a "higher-level" event loop than poll or select; while more powerful, it's arguably lower-level. Hence my comment that it isn't an abstraction.