Stackless Python

Stackless Python

Stackless Python, or Stackless, is a Python programming language interpreter, so named because it avoids depending on the C call stack for its own stack. The most prominent feature of Stackless is microthreads, which avoid much of the overhead associated with usual operating system threads. In addition to Python features, Stackless also adds support for coroutines, communication channels and task serialization.

Stackless microthreads are managed by the language interpreter itself, not the operating system kernel — context switching and task scheduling is done purely in the interpreter. This avoids many of the overheads of threads, because no mode switching between user mode and kernel mode needs to be done, and can significantly reduce CPU load in some high concurrency situations.

Due to the considerable number of changes in the source, Stackless Python cannot be installed on a preexisting Python installation as an extension or library. It is instead a complete Python distribution in itself. The majority of Stackless' features have also been implemented in PyPy, a self-hosting Python interpreter and JIT compiler.

Stackless is used extensively in the implementation of the "EVE Online" massively multiplayer online game to provide for concurrency, [cite web|url=http://terranova.blogs.com/terra_nova/2005/10/nested_worlds.html |title=Nested Worlds |publisher="Terra Nova" |author=Combs, Nate |date=2005-10-14] "Civilization IV", as well as in IronPort's mail platform. "Second Life" is also beginning to use it. [cite web|url=http://wiki.secondlife.com/w/index.php?title=Eventlet&oldid=51543 |title=Eventlet |publisher=Second Life Wiki |accessdate=2008-03-16]

See also

* Limbo programming language
* SCOOP (software)

References

External links

* [http://www.stackless.com/ Project home page]
* [http://harkal.sylphis3d.com/2005/08/10/multithreaded-game-scripting-with-stackless-python/ Multithreaded Game Scripting with Stackless Python] by Harry Kalogirou
* [http://www.stackless.com/spcpaper.htm Continuations and Stackless Python] by Christian Tismer


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Stackless Python — Тип интерпретатор языка программирования Python Разработчик Кристиан Тисмер[1] и соавторы Написана на C[2] Операционная система Linux …   Википедия

  • Stackless Python — est une implémentation expérimentale du langage Python, nommée ainsi car elle vise à éliminer complètement l utilisation de la pile du langage C. Le langage supporte les continuations, les générateurs, les microthreads et les coroutines. À cause… …   Wikipédia en Français

  • Stackless Python — oder kurz Stackless ist eine experimentelle Implementierung der Programmiersprache Python. Stackless nutzt bei der Abarbeitung des Bytecodes in seiner Virtuellen Maschine nicht den Prozessorstack, um bei Unterprogrammaufrufen (Methoden,… …   Deutsch Wikipedia

  • Stackless — Python oder kurz Stackless ist eine experimentelle Implementierung der Programmiersprache Python. Stackless nutzt bei der Abarbeitung des Bytecodes in seiner Virtuellen Maschine nicht den Prozessorstack, um bei Unterprogrammaufrufen (Methoden,… …   Deutsch Wikipedia

  • Python (Programmiersprache) — Python Basisdaten Paradigmen: multiparadigmatisch Erscheinungsjahr: 1991 …   Deutsch Wikipedia

  • Python (programming language) — Python (langage) Pour les articles homonymes, voir Python. Python …   Wikipédia en Français

  • Python Software Foundation — PSF …   Википедия

  • Python — У этого термина существуют и другие значения, см. Python (значения). Python Класс языка: му …   Википедия

  • Python (programming language) — infobox programming language name = Python paradigm = multi paradigm: object oriented, imperative, functional year = 1991 designer = Guido van Rossum developer = Python Software Foundation latest release version = 2.6 latest release date =… …   Wikipedia

  • Python — Este artículo trata sobre el lenguaje de programación. Para el grupo de humoristas, véase Monty Python. Para otros usos de este término, véase Pitón. Python Desarrol …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”