~/talk

Get native with Cython

Talkat EuroPython 2015 · 2015-07-20..07-26· [python]
links:none on file
slides:none on file

Cython compiles Python to C/C++ producing large generated files (about 3,300 lines of C for a tiny script) and supports optional static types that convert object ops to plain C giving real speedups (benchmarks show 1.3–3× versus CPython, hand-tuned cases 4–50×, inner loops up to 100–1000×). Live demos use %cython and IPython/Jupyter cells, annotated HTML output, automatic wrapping of C functions, linking to Lua showing correct results and a 2× speed change when swapping implementations, and seamless C++ vector to Python list conversion.

AI-written summary · about

  1. 0:00Intro
  2. 0:16About me
  3. 2:49What is Cython
  4. 4:35How to use Python
  5. 5:21Python Code Example
  6. 8:01Distribution
  7. 9:28Code portability
  8. 11:05Python language features
  9. 13:08Speed
  10. 15:16Static type declarations
  11. 16:47Talking to native code
  12. 18:05Python support
  13. 20:37Compile
  14. 22:10Annotation
  15. 25:09C functions
  16. 31:08C arrays
  17. 33:25C plus
  18. 37:33Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.