Grokbase Groups Perl loop
FAQ

Search Discussions

312 discussions - 1,128 posts

  • Event's var watcher depends on perl triggering the watcher when modifying the variable. This will not happen when the variable is modified by another process. Rather than using shared memory, I ...
    Joshua N PritikinJoshua N Pritikin
    Oct 10, 2012 at 12:34 pm
    Oct 10, 2012 at 12:34 pm
  • That looks like c/queue.c line 43. Try making your watcher reentrant with $wa- reentrant(1) before you enter your main loop. After doing that, does it work?
    Joshua N PritikinJoshua N Pritikin
    Dec 29, 2008 at 6:03 pm
    Dec 29, 2008 at 7:25 pm
  • Greetings, I'm new to integrating C with Perl as well as the Event module. Trying the example: -------------- use strict; use Inline with = 'Event'; use Inline C = <<'EOC'; void c_callback(pe_event * ...
    Thomas KellerThomas Keller
    Nov 20, 2008 at 6:50 pm
    Nov 20, 2008 at 6:50 pm
  • I'm upgrading an ancient (2004-era) server to the modern era: 2.6.18-92.1.6.el5 x86_64 x86_64 x86_64 GNU/Linux Perl 5.10 Event.pm 1.1 One of my applications throws the following error once it's been ...
    Jeff BoesJeff Boes
    Sep 10, 2008 at 12:40 pm
    Sep 10, 2008 at 12:40 pm
  • Hi, I have a problem using the Event module. My goal: I have several sentences that I need to parse. For a faster process, I have a dispatcher which sends the sentences to several hosts so that the ...
    Isabelle CabreraIsabelle Cabrera
    May 28, 2008 at 3:48 pm
    Jun 4, 2008 at 12:47 pm
  • I am pleased to announce AnyEvent 4.0 Why the major version bump? Lots of functionality has been added (and thus some bugs are expected), although the event core is still compatible to earlier ...
    Marc LehmannMarc Lehmann
    May 24, 2008 at 6:28 pm
    May 24, 2008 at 6:28 pm
  • Hi! The next release of AnyEvent contains support for a few more "backends", notably POE, so AnyEvent is now by definition compatible to POE (before it was only compatible when using an even loop ...
    Marc LehmannMarc Lehmann
    Apr 26, 2008 at 2:46 am
    Apr 28, 2008 at 9:19 pm
  • Using EV for a daemon re-write and have run into a little trouble. Original daemon redirected STDERR to a variable $stderr and each time through the daemon's while loop, I simply checked if the ...
    Peter MaynardPeter Maynard
    Feb 2, 2008 at 1:47 am
    Feb 2, 2008 at 1:47 am
  • It's been a while since I announced EV, and in the meantime, not only has EV proven itself in a lot of apps, the module family around it grew considerably. With version 2.0, EV gained support for ...
    Marc LehmannMarc Lehmann
    Dec 31, 2007 at 1:16 am
    Dec 31, 2007 at 1:16 am
  • Oh, that helps. All these failures occurred with perl 5.5.5. That's a really old version. Can you retry with a more recent version? Even perl 5.6 is really old by now. My development box has 5.8.8.
    Joshua N PritikinJoshua N Pritikin
    Dec 6, 2007 at 2:14 pm
    Dec 6, 2007 at 2:14 pm
  • Hi! EV version 1.5 is now out. Documentation for the perl module: http://cvs.schmorp.de/EV/README Documentation for libev library: http://cvs.schmorp.de/libev/ev.html The highlights of this release ...
    Marc LehmannMarc Lehmann
    Nov 29, 2007 at 8:03 pm
    Nov 29, 2007 at 8:03 pm
  • Hi! I used Event for many, many years, and, while its easily the best event loop out there, I had a number of issues with it (mostly scalability and bugs that the not-very-active maintainer doesn't ...
    Marc LehmannMarc Lehmann
    Nov 23, 2007 at 4:32 am
    Dec 14, 2007 at 6:56 am
  • I don't do Windows so... -- Make April 15 just another day, visit http://fairtax.org
    Joshua N PritikinJoshua N Pritikin
    Oct 26, 2007 at 2:52 am
    Nov 26, 2007 at 7:24 am
  • I don't think you can create a thread inside an event handler because of the way Event abuses perl data structures. What I suggest is to create a thread outside of event and pass messages to the ...
    Joshua N PritikinJoshua N Pritikin
    Jun 16, 2007 at 7:33 am
    Jun 16, 2007 at 7:33 am
  • This release just fixes a test which started breaking on a recent perl. -- Make April 15 just another day, visit http://fairtax.org
    Joshua N PritikinJoshua N Pritikin
    May 22, 2007 at 7:19 am
    May 22, 2007 at 7:19 am
  • I don't think this message reached the mailing list? Can somebody suggest some other read-only variable or should I just disable the test? -- Make April 15 just another day, visit http://fairtax.org
    Joshua N PritikinJoshua N Pritikin
    May 19, 2007 at 8:50 am
    May 19, 2007 at 5:14 pm
  • Can somebody suggest some other read-only variable or should I just disable the test? -- Make April 15 just another day, visit http://fairtax.org
    Joshua N PritikinJoshua N Pritikin
    May 9, 2007 at 4:21 am
    May 9, 2007 at 7:44 am
  • Hi! Negative priorities can cause random memory corruption (writing to unrelated memory areas) and endless loops in Event. The reason is that often events are being queued in loops. Negative ...
    Marc LehmannMarc Lehmann
    Jan 22, 2007 at 11:52 pm
    Jan 22, 2007 at 11:52 pm
  • Hi! When I use the following code to accept new conections, everything works: use Socket; use IO::Socket::INET; our $LISTEN = new IO::Socket::INET LocalPort = 13327, Listen = 1, ReuseAddr = 1; Event- ...
    Marc LehmannMarc Lehmann
    Dec 23, 2006 at 3:19 am
    Dec 23, 2006 at 3:24 am
  • Hi! The current value of IntervalEpsilon is way too low for poll, often resulting in repeated (10 or 100 or more) calls the poll with a timeout of 0. The reason is that the current IntervalEpsilon is ...
    Marc LehmannMarc Lehmann
    Dec 16, 2006 at 4:00 am
    Dec 16, 2006 at 4:00 am
  • Can anybody comment?
    Joshua N PritikinJoshua N Pritikin
    Dec 13, 2006 at 7:55 am
    Dec 13, 2006 at 7:55 am
  • The only change in this release is the application of the patch by JDHEDDEN@cpan.org to avoid some warnings in casts. -- Make April 15 just another day, visit http://fairtax.org
    Joshua N PritikinJoshua N Pritikin
    Nov 1, 2006 at 5:10 am
    Nov 1, 2006 at 5:10 am
  • I'd love to get a test suite addition for this change.
    Joshua N PritikinJoshua N Pritikin
    Oct 11, 2006 at 6:38 am
    Oct 11, 2006 at 6:38 am
  • Hi! Event stores (c/typemap.c) a private pointer in mg_obj. This causes perl to crash (or, worse, silent memory corruption) whenever perl tries to duplicate the magic (e.g. when creating a thread, or ...
    Marc LehmannMarc Lehmann
    Oct 9, 2006 at 11:27 pm
    Oct 10, 2006 at 10:04 am
  • Hrm, here's some info from the perl FAQ: Perl versions before 5.8 had in its C source code signal handlers which would catch the signal and possibly run a Perl function that you had set in %SIG. This ...
    Joshua N PritikinJoshua N Pritikin
    Sep 22, 2006 at 5:28 pm
    Sep 25, 2006 at 11:23 am
  • Event::loop rounds all timeouts down to the nearest second, regardless of wether Time::HiRes is used or not. Reason is likely the "use integer" inside loop. Removing it indeed fixes this bug and ...
    Marc LehmannMarc Lehmann
    Aug 15, 2006 at 6:01 pm
    Dec 16, 2006 at 4:02 am
  • Hi! I am using Event in a peculiar environment where I get called regularly every 0.12s and have to return and cannot modify the mainloop. Therefore, I do the moral equivalent of: 1 while ...
    Marc LehmannMarc Lehmann
    Jul 16, 2006 at 5:10 pm
    Jul 16, 2006 at 5:10 pm
  • Hello, it waits endlessly in max.t line 25, when I enable debug it looks like this: Event: multiplex 0.0989s at t\max.t line 25 Event: multiplex -0.3664s at t\max.t line 25 -- Key fingerprint = 40D0 ...
    EyckEyck
    Feb 18, 2006 at 3:59 pm
    Feb 18, 2006 at 3:59 pm
  • Hi, I'm writing a new module and I'm seeking for a good name for it. My current choice is Event::ExecFlow and so I'm writing to this list to discuss my plans of namespace polution ;) I try to explain ...
    Jörn RederJörn Reder
    Dec 30, 2005 at 3:48 pm
    Dec 30, 2005 at 3:48 pm
  • Hi! I am pleased to announce the (very beta-ish) release of AnyEvent. This module (which I started to write over a year ago after implementing it's basic ideas in Net::FCP, but couldn't work on till ...
    Marc LehmannMarc Lehmann
    Dec 1, 2005 at 11:05 pm
    Dec 1, 2005 at 11:05 pm
  • Hi! While writing Glib::Event, I stumbled over the following problem: Glib::Event effectively implements a kind of Event::loop. It would be very natural to actually make it call Event::loop, but ...
    Marc LehmannMarc Lehmann
    Nov 27, 2005 at 7:46 pm
    Nov 27, 2005 at 7:46 pm
  • Hi! I am pleased to announce the (very alpha-ish) release of Glib::Event. This module overwrites the poll function used by Glib by a function compatible with the Event module. The result is that you ...
    Marc LehmannMarc Lehmann
    Nov 27, 2005 at 7:41 pm
    Nov 27, 2005 at 7:41 pm
  • Does anybody have any suggestions beside threads? ----- Forwarded message from Eric Lenio <eric@lenio.net ----- From: Eric Lenio <eric@lenio.net To: jpritikin@pobox.com Subject: Event.pm usage Hi ...
    Joshua N PritikinJoshua N Pritikin
    Oct 12, 2005 at 9:13 am
    Oct 12, 2005 at 2:46 pm
  • Hi All, Here is a fixed patch that fixes one bug in the previous patch I sent. I failed to properly clear the epoll flags for the descriptor when the delete method is called. That meant that epoll ...
    Rusty ConoverRusty Conover
    Sep 15, 2005 at 7:20 am
    Sep 15, 2005 at 7:20 am
  • Hi All, I've hacked together a patch to Event-1.06 to add epoll support on Linux. Its enabled by adding -DHAS_EPOLL. I've turned on that switch by default in the attached patch. I've tested it on ...
    Rusty ConoverRusty Conover
    Sep 12, 2005 at 2:01 am
    Sep 12, 2005 at 2:01 am
  • Dunno, it's hard to change the defaults now. I highly recommend NetServer::ProcessTop for diagnosing this kind of thing. -- Make April 15 just another day, visit http://fairtax.org
    Joshua N PritikinJoshua N Pritikin
    Aug 25, 2005 at 2:39 pm
    Aug 25, 2005 at 2:39 pm
  • Hi I'm trying to install the perl Event module (1.06, but 1.0 behaves similarly) on tru64., with the following perl version Platform: osname=dec_osf, osvers=5.1b, archname=alpha-dec_osf-ld ...
    Stracchino, PeriStracchino, Peri
    Jul 26, 2005 at 3:08 pm
    Jul 27, 2005 at 4:00 am
  • i recall seeing someone mentioning that event.pm now runs under windows. is that true? is there a binary for it? activestate lists event.pm as a ppm but it only shows various unix flavors. i have ...
    Uri GuttmanUri Guttman
    Jul 17, 2005 at 3:02 am
    Jul 28, 2005 at 8:34 pm
  • Joshua N PritikinJoshua N Pritikin
    May 21, 2005 at 9:30 am
    May 21, 2005 at 9:30 am
  • Does the attached patch make Event work on 64 bit platforms? -- If you are an American then support http://fairtax.org (Permanently replace 50,000+ pages of tax law with about 200 pages.)
    Joshua N PritikinJoshua N Pritikin
    May 9, 2005 at 1:33 pm
    May 9, 2005 at 1:33 pm
  • Can you run t/eval.t with $Event::DebugLevel = 10; ? -- If you are an American then support http://fairtax.org (Permanently replace 50,000+ pages of tax law with about 200 pages.)
    Joshua N PritikinJoshua N Pritikin
    May 3, 2005 at 2:58 am
    May 3, 2005 at 2:58 am
  • This release is 1.04 + the recent memory leak fix.
    Joshua N PritikinJoshua N Pritikin
    Apr 24, 2005 at 3:40 pm
    Apr 24, 2005 at 3:40 pm
  • Joshua N PritikinJoshua N Pritikin
    Apr 23, 2005 at 2:07 am
    Apr 24, 2005 at 4:34 pm
  • Hiho, Event::RPC, a module for event driven transparent Client/Server RPC, just entered CPAN. Source distribution and documentation is also available here: http://www.exit1.org/Event-RPC/ Regards, ...
    Jörn RederJörn Reder
    Apr 10, 2005 at 10:09 pm
    Apr 10, 2005 at 10:09 pm
  • Given a timer set up like this: my $x = Event- timer( cb = \&scan_tests, repeat = 1, hard = 0, reentrant = 0, desc = 'Scan tests', at = time + 5, ); Inside "scan_tests" I have code like this: # ...
    Jeff BoesJeff Boes
    Mar 31, 2005 at 9:08 pm
    Apr 1, 2005 at 4:05 am
  • The only change in this release is preliminary /dev/poll support. It is "preliminary" because there is no config test to activate it. Sorry, I just don't have enough time for this stuff. Patches ...
    Joshua N PritikinJoshua N Pritikin
    Mar 29, 2005 at 5:24 am
    Mar 29, 2005 at 5:24 am
  • Wow, cool! Email a "diff -u" patch to me or to perl-loop@perl.org.
    Joshua N PritikinJoshua N Pritikin
    Mar 24, 2005 at 11:50 am
    Mar 24, 2005 at 2:16 pm
  • Hrm, sounds interesting. So what does Event::RPC do exactly? Can you post a summary?
    Joshua N PritikinJoshua N Pritikin
    Mar 13, 2005 at 11:37 am
    Mar 13, 2005 at 3:57 pm
  • Hi, all I have downloaded the Event-1.03 from CPAN. There is a process.pm in the demo subdirectory, but it does not to seem complete. Does anyone know of a completed process event handler? It looks ...
    Yuri ShtilYuri Shtil
    Mar 3, 2005 at 6:40 pm
    Mar 3, 2005 at 6:40 pm
  • You are the first person to ask for SysV message queues, as far as I know. I have no plans to work on this but patches are welcome.
    Joshua N PritikinJoshua N Pritikin
    Mar 1, 2005 at 10:12 am
    Mar 1, 2005 at 10:12 am
Group Navigation
period‹ prev | Latest | first ›

Top users

Joshua N Pritikin: 272 posts Uri Guttman: 105 posts Hr. Jochen Stenzel: 102 posts Joshua N Pritikin: 74 posts Joshua N Pritikin: 43 posts Marc Lehmann: 39 posts Marc) (A.) (Lehmann: 37 posts Jochen Stenzel: 30 posts Zefram: 28 posts Nick Ing-Simmons: 26 posts Uri Guttman: 26 posts Graham Barr: 23 posts Jeff Boes: 23 posts Allen Smith: 18 posts Nick: 18 posts Moore, Paul: 14 posts Joshua Pritikin: 13 posts B Brahms: 12 posts Jochen Stenzel: 9 posts Mark Mielke: 8 posts
show more