AnyEvent is like NodeJS. Actually more appropriate, NodeJS is more like AnyEvent, as NodeJS is based on libuv, which I think is a fork of libev, the OG backend event loop for AnyEvent.
Just as NodeJS, CPU bound operations block the rest, so you have to transfer them out of process.
| [reply] |
>so you have to transfer them out of process.
I see.So how do you do that with Perl/AnyEvent?
| [reply] |
In general, you run a second process and send it commands to perform.
See for example AnyEvent::Run, AnyEvent::Fork or any of the RPC modules.
| [reply] |
Some sources:
A look at UV could also be interesting. Quite surprising that no one at PM seems to use it. In any case, I have not found a thread in which the module is even mentioned.
«The Crux of the Biscuit is the Apostrophe»
| [reply] |