Differences between revisions 20 and 21
Revision 20 as of 2011-04-15 21:33:15
Size: 6762
Editor: DanStromberg
Comment:
Revision 21 as of 2011-05-06 16:24:03
Size: 6899
Editor: l49-121-194
Comment: group greenlet-based frameworks together, add presentation on concurrency
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
 * [[http://www.gevent.org/ | Gevent]] - coroutine-based networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. It features standard library-inspired API and high performance.
Line 29: Line 30:
 * [[http://twistedmatrix.com | Twisted]] - Full-featured and well-tested asynchronous networking library. Concurrency model: Asynchronous code written around central objects known as Deferreds. Cooperative task scheduler via the [[http://twistedmatrix.com/trac/browser/trunk/twisted/internet/task.py#L182 | Cooperator]] object. Time based scheduling with [[http://twistedmatrix.com/trac/browser/trunk/twisted/internet/task.py#L23 | LoopingCall]] and reactor.callLater.   * [[http://twistedmatrix.com | Twisted]] - Full-featured and well-tested asynchronous networking library. Concurrency model: Asynchronous code written around central objects known as Deferreds. Cooperative task scheduler via the [[http://twistedmatrix.com/trac/browser/trunk/twisted/internet/task.py#L182 | Cooperator]] object. Time based scheduling with [[http://twistedmatrix.com/trac/browser/trunk/twisted/internet/task.py#L23 | LoopingCall]] and reactor.callLater.
Line 38: Line 39:
 * [[http://www.gevent.org/ | gevent]] - gevent is a coroutine-based networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. It features standard library-inspired API and high performance.
Line 41: Line 42:
 * '''Using Coroutines to Create Efficient, High-Concurrency Web Applications''' - Matt Spitz, Pycon 2011 [[http://blip.tv/file/4883016 | Video]]

Concurrency

Central clearing house for Concurency related issues and discussion

Standard Library

Frameworks

See also: ParallelProcessing, Pypi Distributed Computing Trove

  • StacklessPython - A Python Implementation That Does Not Use The C Stack. It purportedly can handle thousands of threads (tasklets) in the context of a very parallel game application, but remains pretty single-core.

  • Fibra - Fibra provides advanced cooperatve concurrency using Python generators.

  • Cogen - cogen is a crossplatform library for network oriented, coroutine based programming using the enhanced generators. The project aims to provide a simple straightforward programming model similar to threads but without all the problems and costs.

  • Greenlet - The "greenlet" package is a spin-off of StacklessPython, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on "channels". Documentation

  • Gevent - coroutine-based networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. It features standard library-inspired API and high performance.

  • Eventlet - Eventlet is a networking library written in Python. It achieves high scalability by using non-blocking io while at the same time retaining high programmer usability by using coroutines to make the non-blocking io operations appear blocking at the source code level.

  • Circuits - circuits is a Lightweight, Event driven Framework with a strong Component Architecture.

  • Twisted - Full-featured and well-tested asynchronous networking library. Concurrency model: Asynchronous code written around central objects known as Deferreds. Cooperative task scheduler via the Cooperator object. Time based scheduling with LoopingCall and reactor.callLater.

  • Kamaelia - In Kamaelia you build systems from simple components that talk to each other. This speeds development, massively aids maintenance and also means you build naturally concurrent software. It's intended to be accessible by any developer, including novices. It also makes it fun.

  • Concurrence - Concurrence is a framework for creating massively concurrent network applications in Python. It takes a Lightweight-tasks-with-message-passing approach to concurrency.

  • Parallel Python - Parallel Python is a python module which provides mechanism for parallel execution of python code on SMP (systems with multiple processors or cores) and clusters (computers connected via network).

  • pprocess - The pprocess module provides elementary support for parallel programming in Python using a fork-based process creation model in conjunction with a channel-based communications model implemented using socketpair and poll.

  • pysage - lightweight high-level message passing library supporting actor based concurrency

  • pypes - Pypes is a framework for designing highly scalable concurrent Flow-Based applications. It uses a component model (Stackless tasklets) to achieve modularity (very loose coupling) along with the 2.6 multiprocessing module to achieve parallelism (multi-processing support). The goals are focused on performance (capable of processing millions of documents) and ease of use. Building custom components is simple and pypes offers Paste templates for generating boiler plate component code along with supporting build files (plugins/components are eggs). Pypes also provides a full Web 2.0 WSGI user interface that allows users to create, destroy, configure, and connect components together using simple drag-n-drop functionality from any standards based web browser.

  • diesel - Diesel is a framework for writing network applications using asynchronous I/O in Python. It uses Python's generators to provide a friendly syntax for coroutines and continuations. It performs well and handles high concurrency with ease.

  • Chiral - Chiral is a lightweight coroutine-based networking framework for high-performance internet and Web services.

Presentations etc.

  • Using Coroutines to Create Efficient, High-Concurrency Web Applications - Matt Spitz, Pycon 2011 Video

  • Concurrency and Distributed Systems - Jesse Noller, Pycon 2009 Slides Video

  • Introduction to Multiprocessing - Jesse Noller, Pycon 2009 Slides Video

  • Inside the GIL - a detailed analysis of how the GIL is even worse than we thought by David Beazley, ChiPy June 2009 Slides Video

Concurrency (last edited 2020-07-26 19:54:21 by ChrisM)

Unable to edit the page? See the FrontPage for instructions.