> On Jul 10, 2026, at 3:32 AM, David Nicol <[email protected]> wrote:
> 
> I don't know if there is a standard for mapping a FD number to a 
> [on-readable, on-writable, on-error] coderef triple, aside from just doing 
> that with an AoA, but were I wanting to integrate an async system into an 
> existing select loop, I could work with that. Especially if the system 
> offered to take the same shape of data as an input for its own select 
> loop.POE might have a standard for such things, I don't know.

The three most widely-used event systems I know of in Perl are:

- AnyEvent
- IO::Async
- Mojolicious

These are all abstractions over various methods of polling: select(2), poll(2), 
or OS-specific ones like Linux’s epoll. For example, AnyEvent includes a 
select-based, pure-Perl loop but can alternatively work with libev via XS.

All of these libraries have tradeoffs, so it’s hard for me to say, “I wish 
everyone would just use X.” That said, Perl would be much improved, in my 
opinion, if a good standard for I/O polling could emerge.

-FG

Reply via email to