SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
=
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

Más contenido relacionado

La actualidad más candente

Python decorators
Python decoratorsPython decorators
Python decorators
Alex Su
 

La actualidad más candente (20)

Python programming : Files
Python programming : FilesPython programming : Files
Python programming : Files
 
Python decorators
Python decoratorsPython decorators
Python decorators
 
Programming with Python
Programming with PythonProgramming with Python
Programming with Python
 
File handling in Python
File handling in PythonFile handling in Python
File handling in Python
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
SQL BUILT-IN FUNCTION
SQL BUILT-IN FUNCTIONSQL BUILT-IN FUNCTION
SQL BUILT-IN FUNCTION
 
Web development with Python
Web development with PythonWeb development with Python
Web development with Python
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
 
Python
PythonPython
Python
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Python file handling
Python file handlingPython file handling
Python file handling
 
Sql subquery
Sql  subquerySql  subquery
Sql subquery
 
For Loops and Nesting in Python
For Loops and Nesting in PythonFor Loops and Nesting in Python
For Loops and Nesting in Python
 
Python programming : Strings
Python programming : StringsPython programming : Strings
Python programming : Strings
 
Functions in python
Functions in pythonFunctions in python
Functions in python
 
List in python
List in pythonList in python
List in python
 
Python PPT
Python PPTPython PPT
Python PPT
 
Database connectivity in python
Database connectivity in pythonDatabase connectivity in python
Database connectivity in python
 
Python programming
Python  programmingPython  programming
Python programming
 
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
 

Similar a 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 a 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
 

Más de Geison Goes

Más de 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
 

Último

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Último (20)

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 

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