Please enable JavaScript.
Coggle requires JavaScript to display documents.
(Monty) Python (Chapter 2 - How Python runs a program (Python…
(Monty) Python
Chapter 2
- How Python runs a program
Python Interpreter
Source code (.py)
Byte code (.pyc) - not binary code
Runtime - PVM
For binary like compilation of Python programs: Frozen Bites (PVM and Byte Code are embedded into a portable package)
Performance Implications
a. Python is not a fully compiled language
b. PVM requires another step, to translate byte code to CPU executable one
d. As a result, execution speed: Classical Interpreted languages > Python > Classical Compiled languages
c. Python does not need to reanalyze and reparse the whole text - like the classical interpreters
Python Implementations
CPython - coded in portable ANSI C code (the standard implemenation)
jython - targeted for intergration with Java programming language
IronPython - Python for .NET
Stackless - Python for concurrency. Actually reimplementation of CPython, without saving state on C stack call, Python is easier to port to small stack architectures, provides efficient multiprocessing options, fosters novel programming structures (e.g., coroutines)
PyPy - For performance. Provides fast Python implementation with JIT (Just - in time) compiler. provides tools for a "sandbox" model and includes support of Stackless Python.
Chapter 1
- General Knowledge
Six main reasons to Choose python
Software quality
Developer productivity
Program portability
support libraries
Component integration
Readability
Companies that use Python
Google
CCP Games
Youtube
ESRI
Maya
GENERAL PACKAGES