Sessions at Strange Loop 2011 about Python

Your current filters are…

Sunday 18th September 2011

  • Intro to Django

    by Jacob Kaplan-Moss

    Django is a high-level web development framework designed for rapid development of database-backed web sites. This tutorial is designed to introduce developers to Django and to give a taste of how Django development usually “feels”. My main goal is to give a holistic impression of Django’s abilities and style: by the end, attendees should be able to decide if Django’s a good fit for them.

    A high-level outline:

    • Introduction, philosophy, and basic terminology.
    • Models, the model API, metadata and relationships.
    • Django’s admin interface.
    • Views, URLs, and the request/response cycle.

    At 3:00pm to 6:00pm, Sunday 18th September

    In Gateway 5, Hilton St. Louis at the Ballpark

    Coverage slide deck

Monday 19th September 2011

  • Chloe and the Realtime Web

    by Trotter Cashion

    There’s been a lot of talk lately surrounding Node.js, particularly around how easily it integrates with WebSockets and the realtime web. While Node.js libraries like Socket.IO and Faye.js allow JavaScript programmers to seamlessly stream data to their users, they force developers to learn the evented programming model and server side JavaScript. In this talk, I’ll show you how Chloe, an open source, realtime web server, allows you to keep using whatever framework you’re familiar with, but still take advantage of the realtime web.

    Since Chloe works with any language, we’ll start off by showing how to integrate it with Java, Ruby, and Python apps. Next we’ll look at the various use cases of the realtime web and see how Chloe’s API will support you in all of them. We’ll then go into the performance and security characteristics of Chloe. Finally, we’ll talk about the operations side of Chloe. By the time you leave, you’ll know how to deploy, monitor, and most importantly, use Chloe like a pro.

    At 1:00pm to 1:50pm, Monday 19th September

    In Gateway 1, Hilton St. Louis at the Ballpark

    Coverage slide deck

  • Distributed Systems with Gevent and ZeroMQ

    by Jeff Lindsay

    Concurrency is hard! At least, it seems hard. You might feel that unless you take up Erlang, you’ll never be able to express distributed systems in an easy way. I’ll let you in on a secret: the magic of Erlang, and Go, and any other language with good concurrency primitives can also be found in a library called ZeroMQ, which can be used in any language. It’s especially powerful and expressive when combined with an evented programming environment like Node.js, EventMachine, or Twisted.

    I’ll let you in on another secret: there is a better way to do evented async programming than having callbacks all over the place, making your program read backwards and making your mind melt. By combining the reactor pattern of async frameworks with green threads, you get something that, so far, only exists in Python as two libraries called Gevent and Eventlet. These give you the advantages of I/O based evented programming, but without the ugly callbacks. Plus, most Python libraries are likely to work, unlike the completely incompatible and reimplemented world of Twisted or EventMachine in Ruby. Your Python code ends up feeling as powerful as Go code.

    By combining these two technologies, you have a powerful toolkit for easily throwing together distributed systems in a “normal” language. Although we’ll focus on Gevent and ZeroMQ in Python, the lessons of this talk apply to any language. We’ll dive in and further explain these two technologies and then explore them together in action.

    At 3:30pm to 4:20pm, Monday 19th September

    In Gateway 4/5, Hilton St. Louis at the Ballpark

    Coverage slide deck