Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Python for Java developers
Search
Javier Honduvilla Coto
November 24, 2014
Programming
0
89
Python for Java developers
Javier Honduvilla Coto
November 24, 2014
Tweet
Share
More Decks by Javier Honduvilla Coto
See All by Javier Honduvilla Coto
Debugging – Learning Linux @ Facebook
javierhonduco
0
110
Understanding Ruby with BPF
javierhonduco
1
56
Spying Linux processes
javierhonduco
0
120
word2vec
javierhonduco
0
84
UC3M university cafeteria redesign
javierhonduco
0
95
Mac OSX UI toolkit and design guidelines
javierhonduco
0
140
Other Decks in Programming
See All in Programming
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
8
3.1k
浮動小数の比較について
kishikawakatsumi
0
350
CSC307 Lecture 08
javiergs
PRO
0
690
AIコーディングの理想と現実 2026 | AI Coding: Expectations vs. Reality 2026
tomohisa
0
760
CSC307 Lecture 11
javiergs
PRO
0
580
Oxlint JS plugins
kazupon
1
1.1k
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
220
Claude Code、ちょっとした工夫で開発体験が変わる
tigertora7571
0
190
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
2k
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
490
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
2.1k
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
130
Featured
See All Featured
Become a Pro
speakerdeck
PRO
31
5.8k
How to build a perfect <img>
jonoalderson
1
5.2k
Documentation Writing (for coders)
carmenintech
77
5.3k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
130
Designing for humans not robots
tammielis
254
26k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
350
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
78
sira's awesome portfolio website redesign presentation
elsirapls
0
170
The SEO identity crisis: Don't let AI make you average
varn
0
400
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Designing Powerful Visuals for Engaging Learning
tmiket
0
250
Transcript
Can I haz ur pythons? Rafael Medina García @rmed_dev Fco.
Javier Honduvilla Coto @javierhonduco
Where is python?
Examples for the Java weenies
Simple TCP Socket: Java
Simple TCP Socket: Python
Reading a file: Java
Reading a file: Python
Hashtable: Java
“Hashtable”: Python
Why python rocks? • Function parameters • GC ◦ Reference
counting • Decorators • Types (WTF) • List-Stack-Queue-[...] • PyPI
Concurrency is not parallelism • Concurrency ◦ GIL: Global Interpreter
Lock (</3) i. threads vs processes • celery ii. tasks iii. groups iv. pipes • cpython, pypy
Celery • Async framework task Queue + Tasks = fun
Cpython and moar • cpython ◦ Guido’s Python Interpreter •
pypy ◦ “an implementation of the Python programming language written in Python itself”
Web frameworks + wsgi • Django • Flask • ∞
Scientific packages • ipython + notebook • cython • numba...
Our fav libs • requests (http for humans) • SQLAlchemy
(database toolkit)
SQLAlchemy I
SQLAlchemy II
Is (c)python slow? • Overhead • Cache misses • Complex
data structures • Any variable can change its type • (dynamic)
None
Bibliography • https://jakevdp.github.io/blog/2014/05/09/why-python-is- slow/ • http://docs.python-requests.org/en/latest/ • https://bitbucket.org/zzzeek/sqlalchemy • http://wsgi.readthedocs.org/en/latest/
• http://www.dabeaz.com/python/UnderstandingGIL.pdf • https://docs.python.org/2/library/gc.html • https://pypi.python.org/pypi • http://pypy.org/ • http://www.scipy.org/