[Chicago] Asynchronous I/O in Python 3 (and more analogies)
Brian Herman
brianherman at gmail.com
Sun Jul 14 18:34:58 CEST 2013
Thanks for giving this talk. And putting up the slides for people that couldn't make it.
On Jul 13, 2013, at 8:21 AM, Yarko Tymciurak <yarkot1 at gmail.com> wrote:
>
> On Fri, Jul 12, 2013 at 8:30 PM, Feihong Hsu <feihong.hsu at gmail.com> wrote:
> I've upload the slides from last night's talk: http://www.slideshare.net/megafeihong/tulip-24190096
>
> And also pushed the repository for all the examples and demos from the talk: https://github.com/feihong/tulip-talk
>
> Thanks! I really wanted to attend this chipy, but couldn't - so appreciate the share. I'll use them while watching on http://pyvideo.org/category/14/chipy
>
>
> There were a few loose threads from last night that I'd like to address.
>
> Tornado.
>
> Someone had asked me about Tornado, and I said that I didn't have an opinion on it. That's actually not true, I just somehow forgot my own opinion. I looked into Tornado a while back and decided against using it because it doesn't work on Windows (Twisted, gevent, Tulip, etc. all do). I'm not saying that Tornado sucks, but I prefer a cross-platform solution for a lot of my projects.
>
> To continue my analogy, if programming with Twisted is like being a mystical ninja warrior, than programming with Tornado is like being a mystical ninja warrior who suffers from some kind of childhood trauma that prevents his shadow clones from fighting killer robots. I'd hire the Tornado ninja for a fight in Hell, but I'd leave him behind if there was a brouhaha at the Isaac Asimov museum.
>
> So, what does this suggest you say about ipython notebooks?
>
> ;-)
>
>
> Gevent and eventlet.
>
> Someone brought up gevent, and claimed that it's easier to use than Twisted and Tulip. I have to agree -- greenlets hide all the messy details so you don't need to worry about callbacks or yield from syntax. I don't have any personal experience with greenlets, but here is a very recent article that addresses the pros and cons: http://mrjoes.github.io/2013/06/21/python-realtime.html. I'll also note that gevent and eventlet aren't yet compatible with Python 3 (although the greenlet module has been ported, so it's just a matter of time).
>
> I don't love talking about things I don't understand, but I love making analogies, so I'll leave you with this: Programming with greenlets is like running around while juggling three standard beanbag balls (apparently this is called joggling). Some people you encounter will be AMAZED that you can joggle at all (usually the very old or the very young). Other bystanders will annoyingly ask if you can also joggle cats, shotguns, flamethrowers, your mom, etc. (these people are typically hipsters, Republicans, ninjas, or your dad). After a while you get distracted by all the dumbass questions and you drop all your balls -- one of them goes down a storm drain, another plops into a mud puddle, the last one bounces into your crotch for some reason and you're so mad you hurl it into the sun and swear off joggling forever. Then the next day you're back out there joggling, because hey it's a free country and some people like it so shut up you hater.
>
> Wishing you a wunderbar weekend,
> Feihong
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20130714/e70bde2e/attachment.html>
More information about the Chicago
mailing list