Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python for Java developers

Python for Java developers

Avatar for Javier Honduvilla Coto

Javier Honduvilla Coto

November 24, 2014
Tweet

More Decks by Javier Honduvilla Coto

Other Decks in Programming

Transcript

  1. Can I haz ur pythons? Rafael Medina García @rmed_dev Fco.

    Javier Honduvilla Coto @javierhonduco
  2. Why python rocks? • Function parameters • GC ◦ Reference

    counting • Decorators • Types (WTF) • List-Stack-Queue-[...] • PyPI
  3. Concurrency is not parallelism • Concurrency ◦ GIL: Global Interpreter

    Lock (</3) i. threads vs processes • celery ii. tasks iii. groups iv. pipes • cpython, pypy
  4. Cpython and moar • cpython ◦ Guido’s Python Interpreter •

    pypy ◦ “an implementation of the Python programming language written in Python itself”
  5. Is (c)python slow? • Overhead • Cache misses • Complex

    data structures • Any variable can change its type • (dynamic)
  6. 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/