perl.loop...overview over the EV module family by Marc Lehmann- December 30, 2007 It&39;s been a while since I announced EV, and in the meantime, not onlyhas EV proven itself in a lot of apps, the module family around it grewconsiderably.With version 2.0, EV gained support for multiple event loops and embedwatchers (a bit scarcely documented), so one can now use e.g. kqueue forsockets only and poll for overall event polling.A number of new modules are now available, separately from the main EVdistro:- EV::ADNS This is an interface to libadns, an asynchronous dns resolver...http://www.nntp.perl.org/group/perl.loop/2007/12/msg1099.html Re: announcing the new EV module, a modern redesign of Event by Marc Lehmann- December 13, 2007 On Fri, Dec 14, 2007 at 12:22:00AM +0100, Jochen Stenzel <perljochen-stenzel.de> wrote:> > So far, it seems everything works right. While EV is young and certainly> > has some bugs, it is used in a lot of projects, and really can&39;t be> > _totally_ broken.> > I never thought it was broken. If there was an impression as if I wanted> to express something like that, or even "totally broken", I&39;m very> sorry.Nono, I didn&39;t get that impression at.http://www.nntp.perl.org/group/perl.loop/2007/12/msg1098.html Re: announcing the new EV module, a modern redesign of Event by Jochen Stenzel- December 13, 2007 Hi Marc,> So far, it seems everything works right. While EV is young and certainly> has some bugs, it is used in a lot of projects, and really can&39;t be> _totally_ broken.I never thought it was broken. If there was an impression as if I wantedto express something like that, or even "totally broken", I&39;m verysorry. I was curious, I played a bit, I hoped to use EV in a project(and actually started to do so now), some things didn&39;t seem to workperfectly and so I made...http://www.nntp.perl.org/group/perl.loop/2007/12/msg1097.html iotimer combo examples Was: Re: Replacement of Event with EV by Marc Lehmann- December 6, 2007 > As it is trivial to create a separate timeout (and much faster than with> Event, too), there is no drawback to this design.As it might not be too obvious, here is (in pseudocode) an exampleof an idle timeout, i.e. a timeout that triggers afetr some time ofinactivity. It uses two watchers (which is not required but customary): 60 seconds idle timeout my $to = EV::timer_ns 0, 60, sub close $fh; ... log error; ; $fh = ... new socket; $to->again; my $wr = EV::io $fh,...http://www.nntp.perl.org/group/perl.loop/2007/12/msg1096.html Re: Replacement of Event with EV by Uri Guttman- December 6, 2007 >>>>> "ML" == Marc Lehmann <schmorpschmorp.de> writes: ML> Its a design decision. Combining timers with io watchers is unnatural, ML> because: ML> - you often don&39;t need both, so shouldn&39;t be forced to pay for them ML> - you can&39;t choose the type of timeout (event only has absolute timers ML> anyways, though, which are unsuitable for many tasks such as idle timeouts ML> for io, where you need relative timeouts). ML> - you...http://www.nntp.perl.org/group/perl.loop/2007/12/msg1095.html Re: FAIL Event-1.09 i686-linux 2.4.20-8smp by Joshua N Pritikin- December 6, 2007 On Thu, Dec 06, 2007 at 12:35:12PM +0200, Alexandr Ciornii wrote:> Yes, I can build many other modules fine.> You can see similar failures here:> http:www.nntp.perl.orggroupperl.cpan.testers200710msg712278.html> http:www.nntp.perl.orggroupperl.cpan.testers200710msg670107.htmlOh, that helps. All these failures occurred with perl 5.5.5. That&39;s a really old version.> In general all testing errors are shown here:> http:cpantesters.perl.orgshowEvent.htmlEvent-1.09Can you retry...http://www.nntp.perl.org/group/perl.loop/2007/12/msg1094.html Re: announcing the new EV module, a modern redesign of Event by Marc Lehmann- December 5, 2007 On Thu, Dec 06, 2007 at 01:07:21AM +0100, Jochen Stenzel <perljochen-stenzel.de> wrote:> I could stop the loop in the debugger today, but it took a while:Although the behaviour is consistent with any other extension module forperl, I tried to document this in the next EV release: =head1 PERL SIGNALS While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour with EV is as with any other C library: signals will only be handled when Perl runs, which means...http://www.nntp.perl.org/group/perl.loop/2007/12/msg1093.html Re: announcing the new EV module, a modern redesign of Event by Marc Lehmann- December 5, 2007 On Thu, Dec 06, 2007 at 01:07:21AM +0100, Jochen Stenzel <perljochen-stenzel.de> wrote:> > any signals, and in fatc, I cannot reproduce this. Are you sure that your> > tty settings actually do anything with CTRL-C (such as sending an INT)> > I am - I retried it today, other programs receive the signal and the> effect is the same if I send the signal via kill from another terminal.Here is what happens on windows btw: at least activestate perl overridesthe system...http://www.nntp.perl.org/group/perl.loop/2007/12/msg1092.html Re: Replacement of Event with EV by Marc Lehmann- December 5, 2007 On Wed, Dec 05, 2007 at 05:40:47PM -0700, Rusty Conover <rconoverinfogears.com> wrote:> I&39;m looking into using EV rather then Event for my needs but it seems > the IO timers don&39;t have a nice way to schedule both a timeout and a > IO callback at the same time into the same callback.Thats a feature, and compared to Event, actually a bugfix.> Such as setting the timeout parameter to the IO watcher.> > Is this just my oversight or a design decisionIts a design...http://www.nntp.perl.org/group/perl.loop/2007/12/msg1091.html Replacement of Event with EV by Rusty Conover- December 5, 2007 I&39;m looking into using EV rather then Event for my needs but it seems the IO timers don&39;t have a nice way to schedule both a timeout and a IO callback at the same time into the same callback.Such as setting the timeout parameter to the IO watcher.Is this just my oversight or a design decisionThanks,Rustyhttp://www.nntp.perl.org/group/perl.loop/2007/12/msg1090.html |