Cython mit PyPy

- das Beste aus drei Welten -

Dr. Stefan Behnel

(Python-Consultant und Cython Core-Entwickler)

http://consulting.behnel.de/

http://cython.org/

Was ist Cython?

Cython ist die Brücke zwischen
der Einfachheit von Python und
der Performance von C/C++/Fortran.
images/SimplicityVsSpeed1.png

Was ist Cython?

Cython ist die Brücke zwischen
der Einfachheit von Python und
der Performance von C/C++/Fortran.
images/SimplicityVsSpeed.png

Was ist Cython?

Cython ist

Wie geht das?

Dummes Beispiel:

def find_even_numbers(int n):
    cdef int i
    for i in range(1, n):
        if i % 2 == 0:
            yield i

"Wir schreiben C, damit ihr es nicht müsst!"

Und was ist PyPy?

PyPy ist

Code anbinden mit PyPy

PyPy bietet

Warum Cython mit PyPy?

Cython-Status

cpyext

Code-Fallen

Extension Types

Erfolgsmeldungen

Geschwindigkeit

Zusammenfassung

Aussicht

Bitte

Danke!