Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How does AnyEvent work?

by Corion (Patriarch)
on Nov 17, 2022 at 22:52 UTC ( [id://11148232]=note: print w/replies, xml ) Need Help??


in reply to How does AnyEvent work?

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.

Replies are listed 'Best First'.
Re^2: How does AnyEvent work?
by Anonymous Monk on Nov 18, 2022 at 08:26 UTC
    >so you have to transfer them out of process.
    I see.So how do you do that with Perl/AnyEvent?

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148232]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-23 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found