These are all entries bearing the tag python.

  • Praise for Greenlet
    Posted on January 2 2008 — programming, python, greenlets, concurrency — 6 comments

    Does this situation feel familiar to you? You're writing some kind of system that has to support several clients, or players, or just plain actors, at the same time. A networked multiplayer game would be a good example. Now, the practicalities mean that incoming data (from a network socket, for instance) needs to be handled concurrently; in other words, you can't decide to block for one client while performing some action and ignore everyone else. But you still need to preserve state.