Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl implementation of an esolang. It's a party, yes?

by Anonymous Monk
on Jul 09, 2012 at 22:17 UTC ( #980772=note: print w/replies, xml ) Need Help??


in reply to Perl implementation of an esolang. It's a party, yes?

Must have been named by an esolang

  • Comment on Re: Perl implementation of an esolang. It's a party, yes?

Replies are listed 'Best First'.
Re^2: Perl implementation of an esolang. It's a party, yes?
by corenth (Monk) on Jul 11, 2012 at 17:16 UTC
    Ok. I admit it. I'm lost. :P

    $state{tired}?sleep(40):eat($food);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://980772]
help
Chatterbox?
[ambrus]: Corion: what I don't understand is, if you make a one-shot AnyEvent timer with short timeout, does this code guarantee that the Prima timer can't queue two timeout events before invoking any of them?
[ambrus]: Because that could break AnyEvent code, which is why I added a guard.
[ambrus]: (It might be easier to use the callback scalar as a guard, as in $c and &$c(); $c = ();)
[Corion]: ambrus: Hurr - yes, that might happen, as Prima will queue lots of stuff (Well, Windows will)
[Corion]: But I'm really amazed that it just took this little code (plus the idle handler I have in mind and something else dk suggested)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2016-12-09 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.