SlideShare a Scribd company logo
1 of 12
Download to read offline
=
Python
Flavors
Geison
Python Flavors
What is Python?
“Usually CPython, the most commonly used implementation of Python
language is called Python even it is not true since Python is the
language not the implementation. It would be possible compare the
language with an interface that have the contract which could be
implemented in different ways.
Python have a lot of implementation like CPython, Jython,
IronPython and so on”.
Python Flavors
Is Python interpreted or compiled?
“It depends of the implementation. In the most used
implementation, CPython it is interpreted but with some parts pre-
compiled to byte code.”
Python Flavors
Bytecode vs Machine Code
Basically the main diference
between machine code is
performance and portability.
Machine code is faster because
runs directly in CPU while
bytecode is more portable
because runs over a Virtual
Machine.
C compile the code to machine code so the
code runs directly from cpu.
JAVA compile the code to java bytecode and
runs the code in JVM(Java Virtual Machine)
Usually programmers think Python is compiled
when they see the .pyc files. The .pyc files are
the python bytecode that runs in the CPython
VM.
Python Flavors
Python Implementations
“Why uses a alternative Python implementation? To be able to uses all the stuff
regarding this technology stack, for example using Jython it is possible use all the
Java stuff and libraries.”
Implementation Virtual Machine Language
CPython CPythonVM C
Jython JVM Java
IronPython CLR C#
Brython Javascript Interpreter(V8) Javascript
RubyPython RubyVM Ruby
Python Flavors
Pypy a Python implementation that
deserves attention
PyPy is a Python interpreter and just-in-time
compiler. PyPy focuses on speed, efficiency and
compatibility with the original CPython interpreter.
PyPy started out as a Python interpreter written in
the Python language itself. Current PyPy versions
are translated from RPython to C code and compiled.
The PyPy JIT (short for "Just In Time") compiler is
capable of turning Python code into machine code at
run time.
Just-in-time compilation (JIT), also
known as dynamic translation, is
compilation done during execution of a
program – at run time – rather than prior
to execution. Most often this refers to
translation to machine code, which is
then executed directly, but can also
refer to translation to another format.
Python Flavors
Jython a Python implementation that solve
GIT problem
Jython is an implementation of the Python
programming language designed to run on the Java
platform.
Jython programs can import and use any Java class.
Since Jython run over the JVM it do not implement
GIT, enabling real parallelism using Threads.
Global Interpreter Lock (GIT)
Mechanism used in computer language
interpreters to synchronize the
execution of threads so that only one
thread can execute at a time.
Python Flavors
MicroPython a Python for microcontrollers
Micro Python is a lean and fast implementation of
the Python 3 programming language that is optimised
to run on a microcontroller.
The Micro Python board is a small electronic circuit
board that runs Micro Python on the bare metal, and
gives you a low-level Python operating system that
can be used to control all kinds of electronic
projects.
https://www.youtube.com/watch?v=5LbgyDmRu9s
MicroPython
Python Flavors
Conclusion
● It is possible write wherever program using just the original Python
implementation and never have the necessity to use other implementation.
● It is possible to use the Python language in the main technology stacks like Java
or .NET.
● Pypy could be a good solution to improve the performance of a Python application.
● It is possible to use Python in IoT projects.
Python Flavors
References
● https://www.python.org/
● http://cython.org/
● http://ironpython.net/
● http://www.jython.org/
● http://rubypython.rubyforge.org/
● http://pypy.org/
● http://www.toptal.com/python/por-que-h-tantos-pythons/pt
● http://micropython.org/
Python Flavors
Contact me
● Email:
○ geisonfgf@gmail.com
● Skype
○ geisonfgf
● Facebook
○ http://www.facebook.com/geisonfgf
● Twitter
○ http://www.twitter.com/geisonfgf

More Related Content

What's hot

Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
Jussi Pohjolainen
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
Laxman Puri
 

What's hot (20)

Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
C Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpoint
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)
 
Python programming
Python  programmingPython  programming
Python programming
 
Python Functions
Python   FunctionsPython   Functions
Python Functions
 
GCC compiler
GCC compilerGCC compiler
GCC compiler
 
Python basic
Python basicPython basic
Python basic
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Intro to Python Programming Language
Intro to Python Programming LanguageIntro to Python Programming Language
Intro to Python Programming Language
 
Golang - Overview of Go (golang) Language
Golang - Overview of Go (golang) LanguageGolang - Overview of Go (golang) Language
Golang - Overview of Go (golang) Language
 
Shell and its types in LINUX
Shell and its types in LINUXShell and its types in LINUX
Shell and its types in LINUX
 
C if else
C if elseC if else
C if else
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 

Similar to Python Flavors

Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
Manohar k
 

Similar to Python Flavors (20)

Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
 
python unit2.pptx
python unit2.pptxpython unit2.pptx
python unit2.pptx
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Python Interpreter.pdf
Python Interpreter.pdfPython Interpreter.pdf
Python Interpreter.pdf
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
Python for students step by step guidance
Python for students step by step guidancePython for students step by step guidance
Python for students step by step guidance
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdf
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
1-ppt-python.ppt
1-ppt-python.ppt1-ppt-python.ppt
1-ppt-python.ppt
 
How Python Programming Works?- GICSEH.pptx
How Python Programming Works?- GICSEH.pptxHow Python Programming Works?- GICSEH.pptx
How Python Programming Works?- GICSEH.pptx
 
Pyjion - a JIT extension system for CPython
Pyjion - a JIT extension system for CPythonPyjion - a JIT extension system for CPython
Pyjion - a JIT extension system for CPython
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Python Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech PunePython Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech Pune
 
Chapter - 1.pptx
Chapter - 1.pptxChapter - 1.pptx
Chapter - 1.pptx
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHON
 

More from Geison Goes

More from Geison Goes (11)

Kotlin multiplataforma
Kotlin multiplataformaKotlin multiplataforma
Kotlin multiplataforma
 
Why companies like Google, Alibaba and UOL choose Flutter
Why companies like Google, Alibaba and UOL choose FlutterWhy companies like Google, Alibaba and UOL choose Flutter
Why companies like Google, Alibaba and UOL choose Flutter
 
Functional Swift
Functional SwiftFunctional Swift
Functional Swift
 
Functional Go
Functional GoFunctional Go
Functional Go
 
Functional go
Functional goFunctional go
Functional go
 
Restful design principles
Restful design principlesRestful design principles
Restful design principles
 
Cucumber - use it to describe user stories and acceptance criterias
Cucumber - use it to describe user stories and acceptance criteriasCucumber - use it to describe user stories and acceptance criterias
Cucumber - use it to describe user stories and acceptance criterias
 
Gil - the responsible to unable paralellism
Gil - the responsible to unable paralellismGil - the responsible to unable paralellism
Gil - the responsible to unable paralellism
 
An introduction to the ruby ecosystem
An introduction to the ruby ecosystemAn introduction to the ruby ecosystem
An introduction to the ruby ecosystem
 
Python functional programming
Python functional programmingPython functional programming
Python functional programming
 
Ruby Functional Programming
Ruby Functional ProgrammingRuby Functional Programming
Ruby Functional Programming
 

Recently uploaded

Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Marc Lester
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
drm1699
 

Recently uploaded (20)

Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
 
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
 
GraphSummit Milan - Visione e roadmap del prodotto Neo4j
GraphSummit Milan - Visione e roadmap del prodotto Neo4jGraphSummit Milan - Visione e roadmap del prodotto Neo4j
GraphSummit Milan - Visione e roadmap del prodotto Neo4j
 
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAOpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
 
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
 
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
 
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdf
 
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfThe Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024
 
Microsoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMicrosoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdf
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
 
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
 
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
 
CERVED e Neo4j su una nuvola, migrazione ed evoluzione di un grafo mission cr...
CERVED e Neo4j su una nuvola, migrazione ed evoluzione di un grafo mission cr...CERVED e Neo4j su una nuvola, migrazione ed evoluzione di un grafo mission cr...
CERVED e Neo4j su una nuvola, migrazione ed evoluzione di un grafo mission cr...
 
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
 

Python Flavors

  • 3. Python Flavors What is Python? “Usually CPython, the most commonly used implementation of Python language is called Python even it is not true since Python is the language not the implementation. It would be possible compare the language with an interface that have the contract which could be implemented in different ways. Python have a lot of implementation like CPython, Jython, IronPython and so on”.
  • 4. Python Flavors Is Python interpreted or compiled? “It depends of the implementation. In the most used implementation, CPython it is interpreted but with some parts pre- compiled to byte code.”
  • 5. Python Flavors Bytecode vs Machine Code Basically the main diference between machine code is performance and portability. Machine code is faster because runs directly in CPU while bytecode is more portable because runs over a Virtual Machine. C compile the code to machine code so the code runs directly from cpu. JAVA compile the code to java bytecode and runs the code in JVM(Java Virtual Machine) Usually programmers think Python is compiled when they see the .pyc files. The .pyc files are the python bytecode that runs in the CPython VM.
  • 6. Python Flavors Python Implementations “Why uses a alternative Python implementation? To be able to uses all the stuff regarding this technology stack, for example using Jython it is possible use all the Java stuff and libraries.” Implementation Virtual Machine Language CPython CPythonVM C Jython JVM Java IronPython CLR C# Brython Javascript Interpreter(V8) Javascript RubyPython RubyVM Ruby
  • 7. Python Flavors Pypy a Python implementation that deserves attention PyPy is a Python interpreter and just-in-time compiler. PyPy focuses on speed, efficiency and compatibility with the original CPython interpreter. PyPy started out as a Python interpreter written in the Python language itself. Current PyPy versions are translated from RPython to C code and compiled. The PyPy JIT (short for "Just In Time") compiler is capable of turning Python code into machine code at run time. Just-in-time compilation (JIT), also known as dynamic translation, is compilation done during execution of a program – at run time – rather than prior to execution. Most often this refers to translation to machine code, which is then executed directly, but can also refer to translation to another format.
  • 8. Python Flavors Jython a Python implementation that solve GIT problem Jython is an implementation of the Python programming language designed to run on the Java platform. Jython programs can import and use any Java class. Since Jython run over the JVM it do not implement GIT, enabling real parallelism using Threads. Global Interpreter Lock (GIT) Mechanism used in computer language interpreters to synchronize the execution of threads so that only one thread can execute at a time.
  • 9. Python Flavors MicroPython a Python for microcontrollers Micro Python is a lean and fast implementation of the Python 3 programming language that is optimised to run on a microcontroller. The Micro Python board is a small electronic circuit board that runs Micro Python on the bare metal, and gives you a low-level Python operating system that can be used to control all kinds of electronic projects. https://www.youtube.com/watch?v=5LbgyDmRu9s MicroPython
  • 10. Python Flavors Conclusion ● It is possible write wherever program using just the original Python implementation and never have the necessity to use other implementation. ● It is possible to use the Python language in the main technology stacks like Java or .NET. ● Pypy could be a good solution to improve the performance of a Python application. ● It is possible to use Python in IoT projects.
  • 11. Python Flavors References ● https://www.python.org/ ● http://cython.org/ ● http://ironpython.net/ ● http://www.jython.org/ ● http://rubypython.rubyforge.org/ ● http://pypy.org/ ● http://www.toptal.com/python/por-que-h-tantos-pythons/pt ● http://micropython.org/
  • 12. Python Flavors Contact me ● Email: ○ geisonfgf@gmail.com ● Skype ○ geisonfgf ● Facebook ○ http://www.facebook.com/geisonfgf ● Twitter ○ http://www.twitter.com/geisonfgf