Re: ping
[email protected] (Felipe Gasper) Fri, 10 Jul 2026 15:10:32 -0400
| Newsgroups | perl.dbi.users |
|---|---|
| Message-ID | <[email protected]> |
> On Jul 10, 2026, at 3:32=E2=80=AFAM, David Nicol = <[email protected]> wrote: >=20 > 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=E2=80=99s 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=E2=80=99s hard for me to = say, =E2=80=9CI wish everyone would just use X.=E2=80=9D That said, Perl = would be much improved, in my opinion, if a good standard for I/O = polling could emerge. -FG=