Python for Java developers

Python for Java developers

D7d3f3dd5063d56c96151d433c303c1a?s=128

Javier Honduvilla Coto

November 24, 2014
Tweet

Transcript

  1. 1.

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

    Javier Honduvilla Coto @javierhonduco
  2. 10.

    Why python rocks? • Function parameters • GC ◦ Reference

    counting • Decorators • Types (WTF) • List-Stack-Queue-[...] • PyPI
  3. 11.

    Concurrency is not parallelism • Concurrency ◦ GIL: Global Interpreter

    Lock (</3) i. threads vs processes • celery ii. tasks iii. groups iv. pipes • cpython, pypy
  4. 13.

    Cpython and moar • cpython ◦ Guido’s Python Interpreter •

    pypy ◦ “an implementation of the Python programming language written in Python itself”
  5. 19.

    Is (c)python slow? • Overhead • Cache misses • Complex

    data structures • Any variable can change its type • (dynamic)
  6. 20.
  7. 21.

    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/