On Sun, Jun 12, 2011 at 10:04 PM, Bill Ricker <[email protected]> wrote:
> Steve Scaffidi - YAPC preview - AnyEvent lessons-leaned
>
I should have mentioned this earlier, but due to some unexpected work
I had to do over the weekend, I haven't been able to prepare anything.
I can still do a run-through of some of the things I would have
covered, but it won't have any slides and might be a bit disorganized.
The outline of my YAPC talk is more or less like this:
Intro:
- What is AnyEvent
- What is event-driven programming
- what is asynchronous
- why is it important
- why is it considered difficult
- How is AnyEvent different from the alternatives
- How is AnyEvent similar
- What are AnyEvent's strengths
- What are AnyEvent's weaknesses
Basics:
- Asynchronous "watchers" provided by the framework
- time
- signal
- child
- IO
- Condition Variables ("condvars")
- these are important, and a little tricky. A lot of time will
probably be spent on these.
- AnyEvent::Socket
- tcp_connect (create a socket connection (as a client) and
register a callback to do stuff when its ready)
- tcp_server (create a socket listener (as a server) and '''
when clients connect)
Putting together a simple application:
- I still havent decided on what to build, probably a simple "chat server"
- should use tcp_server, possibly tcp_connect
- should use time and signal watchers
- should demonstrate both simple and complex use of condvars.
- non-blocking condvars are *important*
- should show code that demonstrates various "gotchas" and how
to work around them.
Of course, that's an outline. I clearly have a lot to fill in! :)
--
-- Steve Scaffidi <[email protected]>
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm