451
Comment:
|
3599
Added Wirbel, explanatory notes. Re-ordered sections and changed heading. Moved distributions to the appropriate page.
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
"Implementation" here means ... There have been and are several distinct implementations of what we all recognize as Python, or occasionally a variant of Python: * ActivePython * ["CPython"] * IronPython * ["Jython"] * PyMite * PyPy * ... |
= Python Implementations = An "implementation" of Python should be taken to mean a program or environment which provides support for the execution of programs written in the Python language, or some broadly similar dialect of the language. There have been and are several distinct software packages providing of what we all recognize as Python, although some of those are more like distributions or variants of some existing implementation than a completely new implementation of the language. == CPython Variants == * [[CPython]] - the reference Python implementation * [[http://www.mhuffman.com/resource/index.html|Tiny Python]] - not to be confused with tinypy, below * [[http://code.google.com/p/unladen-swallow/|unladen-swallow]] - "an optimization branch of CPython, intended to be fully compatible and significantly faster" * [[http://code.google.com/p/wpython/|wpython]] - a re-implementation of CPython using "wordcode" instead of bytecode == Other Implementations == * [[CLPython]] - Python in Common Lisp * IronPython - Python in C# for the Common Language Runtime (CLR/.NET) and the [[http://fepy.sourceforge.net/|FePy]] project's IronPython Community Edition (IPCE) * [[Jython]] - Python in Java for the Java platform * PyMite - Python for embedded devices * PyPy - Python in Python, targeting several environments * [[http://www.synapse-wireless.com/documents/whte_paper/SNAP_WP_102108.pdf|SNAPpy]] - "a subset of the Python language that has been optimized for use in low-power embedded devices" (apparently proprietary) * [[http://www.tinypy.org/|tinypy]] - a minimalist implementation of python in 64k of code == Compilers == These compilers usually implement something close to Python, although some compilers may impose restrictions that alter the nature of the language: * [[http://members.verizon.net/~olsongt/compyler/index.html|Compyler]] - an attempt to "transliterate the bytecode into x86 assembly" * [[http://cython.org/|Cython]] - an optimising Python-to-C compiler, CPython extension module generator, and wrapper language for binding external libraries * [[http://code.google.com/p/shedskin/|Shed Skin]] - a Python-to-C++ compiler * [[http://code.google.com/p/unpython/|unPython]] - a Python to C compiler using type annotations == Similar but Distinct Languages == These languages don't attempt to be directly compatible even with a subset of Python, choosing to provide their own set of features: * [[http://boo.codehaus.org/|Boo]] * [[Cobra]] * [[http://convergepl.org/|Converge]] - inspired by Python, Haskell, Icon and Smalltalk, provides macros which can be evaluated at compile-time * [[http://delight.sourceforge.net/|Delight]] - based on the D programming language * [[http://live.gnome.org/Genie|Genie]] - based on the same foundations (Gtk+, GNOME) as the Vala programming language * [[https://www.cs.cmu.edu/~music/aura/serpent-info.htm|Serpent]] * [[http://mathias-kettner.de/wirbel.html|Wirbel]] - a compilable language with similar restrictions to Shed Skin (statically typed names, lists cannot mix elements of different types) and PyMite (no user-defined classes) == Topic Guides == * EmbeddedPython * PythonDistributions |
Line 11: | Line 51: |
"[http://phaseit.net/claird/comp.lang.python/python_varieties.html Cameron Laird's personal notes on varieties of Python implementation]". | "[[http://phaseit.net/claird/comp.lang.python/python_varieties.html|Cameron Laird's personal notes on varieties of Python implementation]]". Also of interest will be IntegratingPythonWithOtherLanguages, which, among other variants, mentions ''embeddings'' of Python in other languages. |
Python Implementations
An "implementation" of Python should be taken to mean a program or environment which provides support for the execution of programs written in the Python language, or some broadly similar dialect of the language.
There have been and are several distinct software packages providing of what we all recognize as Python, although some of those are more like distributions or variants of some existing implementation than a completely new implementation of the language.
CPython Variants
CPython - the reference Python implementation
Tiny Python - not to be confused with tinypy, below
unladen-swallow - "an optimization branch of CPython, intended to be fully compatible and significantly faster"
wpython - a re-implementation of CPython using "wordcode" instead of bytecode
Other Implementations
CLPython - Python in Common Lisp
IronPython - Python in C# for the Common Language Runtime (CLR/.NET) and the FePy project's IronPython Community Edition (IPCE)
Jython - Python in Java for the Java platform
PyMite - Python for embedded devices
PyPy - Python in Python, targeting several environments
SNAPpy - "a subset of the Python language that has been optimized for use in low-power embedded devices" (apparently proprietary)
tinypy - a minimalist implementation of python in 64k of code
Compilers
These compilers usually implement something close to Python, although some compilers may impose restrictions that alter the nature of the language:
Compyler - an attempt to "transliterate the bytecode into x86 assembly"
Cython - an optimising Python-to-C compiler, CPython extension module generator, and wrapper language for binding external libraries
Shed Skin - a Python-to-C++ compiler
unPython - a Python to C compiler using type annotations
Similar but Distinct Languages
These languages don't attempt to be directly compatible even with a subset of Python, choosing to provide their own set of features:
Converge - inspired by Python, Haskell, Icon and Smalltalk, provides macros which can be evaluated at compile-time
Delight - based on the D programming language
Genie - based on the same foundations (Gtk+, GNOME) as the Vala programming language
Wirbel - a compilable language with similar restrictions to Shed Skin (statically typed names, lists cannot mix elements of different types) and PyMite (no user-defined classes)
Topic Guides
This page aims to replace one formerly maintained as "Cameron Laird's personal notes on varieties of Python implementation". Also of interest will be IntegratingPythonWithOtherLanguages, which, among other variants, mentions embeddings of Python in other languages.