[Twisted-Python] PyCon extreme Twisted talk!

Jean-Daniel jeandaniel.browne at gmail.com
Sun Oct 24 20:21:59 EDT 2010


At Pycon-fr, I presented a 20 min introduction to Twisted. Nothing
adventurous, the focus is on education:

- Twisted use and key concepts,
- Twisted's core: the reactor,
- example: a notification client (invent a client/server protocol, implement
it with Twisted's classes, then add notifications to the protocol and to the

The example shows two versions of a notification API, a blocking one and a
better one based on events. What is an event based API and why it is more
adapted in some cases are two basic questions that I tried to make clear, as
this is not obvious to many new programmers.

The presentation slides are attached in Open Office impress format (has
animations) and in pdf (no animations, an export of the OO version). The
animations are not critical to the presentation but helps with clarity. The
accompanying speech is not available in english yet, sorry. The license is
creative commons.

I am interested in feedbacks and suggestions, if you have any,


On Fri, Oct 22, 2010 at 6:40 PM, Andrew Francis <andrewfr_ice at yahoo.com>wrote:

> Hi Lauren:
> Message: 1
> Date: Thu, 21 Oct 2010 23:47:56 +0200
> From: Laurens Van Houtven <lvh at laurensvh.be>
> Subject: [Twisted-Python] PyCon extreme Twisted talk!
> To: Twisted general discussion <twisted-python at twistedmatrix.com>
> Message-ID:
>    <AANLkTintU98WZc-u7yeRgvZLNDi5M4EsGYmHW1mhmzjE at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> >Greetings fellow Twisted aficionados!
> >So, Allen (dash) and I have decided that we were going to co-do the
> >Twisted Extreme talk at PyCon US 2011. Extreme talks are like talks,
> >except with less talking and more coding, so preferably something
> >actionable for an entire 45 minutes! That most likely means many steps:
> >start small, and then do something more complex.
> I am probably going to submit an extreme talk for PyCon 2011. I'll either
> refine the "Prototyping Go's Select" talk. Or discuss about my
> work-in-progress about join conditions. Twisted has a simple join in the
> form of a deferred list.
> Inspired by the Ray Hettinger Monocle post-talk discussion and writing
> examples with stackless.select(), I thought submitting another extreme talk
> that would revisit the lost world of Stackless Python/Twisted integration.
> As we discussed, why not a special reactor that incorporates the Stackless
> scheduler? Right now, a lot my examples use Twisted for sleep(). Creating a
> Stackless reactor would hopefully allow me to get rid of stuff like
> This way I can get rid of stuff like:
> l = task.LoopingCall(stackless.schedule)
> l.start(.001)
> stackless.tasklet(startTwisted)()
> stackless.tasklet(santa)(reindeers, elves)
> stackless.run()
> and eventually
> def tick(seconds):
>    tickCh = stackless.channel()
>    reactor.callLater(seconds, tickCh.send, None)
>    tickCh.receive()
> what is particularly exciting is talk in the pypy-dev list about
> incorporating Stackless with the JIT....
> Cheers,
> Andrew
> P.S - I have provided an example of using Stackless and Twisted to solve
> the Santa Claus Problem
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20101025/e5ca1f23/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twisted-intro.pdf
Type: application/pdf
Size: 241020 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20101025/e5ca1f23/attachment-0001.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twisted-intro.odp
Type: application/vnd.oasis.opendocument.presentation
Size: 455198 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20101025/e5ca1f23/attachment-0001.odp 

More information about the Twisted-Python mailing list