Stackless

Stackless

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 performante 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 — 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 — 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 — adjective Without the use of a stack (last in first out data structure) …   Wiktionary

  • stackless — …   Useful english dictionary

  • Пайтон — Python Класс языка: функциональный, объектно ориентированный, императивный, аспектно ориентированный Тип исполнения: интерпретация байт кода, компиляция в MSIL, компиляция в байт код Java Появился в: 1990 г …   Википедия

  • Green threads — In computer programming, Green threads are threads that are scheduled by a Virtual Machine (VM) instead of natively by the underlying operating system. Green threads emulate multithreaded environments without relying on any native OS capabilities …   Wikipedia

  • 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

Share the article and excerpts

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