Stackless Python

Stackless Python

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, Funktionen, Prozeduren) die Rücksprungadressen und lokalen Variablen zu speichern, sondern verwendet dafür eigene Datenstrukturen. Dadurch ist ein vollständiger Kontextwechsel (bspw. bei Nebenläufigkeiten, Generatoren, Koroutinen) möglich. Damit ist außerdem die Rekursionstiefe nur noch durch den Arbeitsspeicher begrenzt, nicht aber durch die Größe des Prozessorstacks.

Diese Vorteile werden erkauft durch eine kompliziertere, weniger intuitive und weniger leistungsfähige Implementierung der virtuellen Maschine. Außerdem sind die Unterschiede zwischen dem Standardinterpreter CPython und Stackless recht deutlich, daher ist es nicht möglich, Stackless als CPython-Erweiterung zu betreiben. Stattdessen ersetzt Stackless die Python-Installation vollständig.

siehe auch

Weblinks


Wikimedia Foundation.

Игры ⚽ Нужно сделать НИР?

Schlagen Sie auch in anderen Wörterbüchern nach:

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

  • 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… …   Wikipedia

  • 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

  • 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”