Tatsuhiko Miyagawa's Blog

Asynchronous programming with AnyEvent

September 10, 2009

*

View more presentations from Tatsuhiko Miyagawa.

via www.slideshare.net

Here’s my slides about AnyEvent YAPC::Asia 2009 day 1. I realized this is the first talk in years that I give a talk about software/modules that are not mine, though it indeed has a couple of examples from my AnyEvent::* modules.

Rocco, the author of POE pointed out that slides 19-21 are misleading since POE also has the POE::Loop concept so that you can run your event loop under* different backends like EV or Gtk. While that is true (and that is great), POE still can’t run with the other main loop, like IO::Async::Loop->loop_forever. You still need to call POE::Kernel->run and to do so you should rewrite your main program to use POE everywhere, since existent IO::Async based program can’t run any of POE::Component, which is totally possible with AnyEvent and AnyEvent::* modules.

**UPDATE: **see the comment below for Rocco, maybe I was misunderstanding and POE::Session->create works *with *other event loops like AnyEvent modules. I still love AnyEvent’s callback style cleaner and much saner Perl-ish API but yeah, if that is true i draw it back from the POE-AnyEvent battle table.