PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Cython

Cython

Cython is a pl created in 2007.

#255on PLDB 15Years Old 1.6kUsers
10Books 1Papers 698Repos

Cython is a superset of the Python programming language, designed to give C-like performance with code which is mostly written in Python. Cython is a compiled language that generates CPython extension modules. These extension modules can then be loaded and used by regular Python code using the import statement. Read more on Wikipedia...


Example from Wikipedia:
In [1]: %load_ext Cython In [2]: %%cython ...: def f(n): ...: a = 0 ...: for i in range(n): ...: a += i ...: return a ...: ...: cpdef g(int n): ...: cdef int a = 0, i ...: for i in range(n): ...: a += i ...: return a ...: In [3]: %timeit f(1000000) 42.7 ms ± 783 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) In [4]: %timeit g(1000000) 74 µs ± 16.6 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)

Language features

Feature Supported Example Token
Integers
Floats
Hexadecimals
Octals

Books about Cython on goodreads

title author year reviews ratings rating
Cython: A Guide for Python Programmers Kurt W Smith 2014 4 29 3.97
Learning Cython Programming Philip Herron 2013 3 11 3.91
Learning Cython Programming - Second Edition Philip Herron 0 0 0.0
Learning Cython Programming Second Edition Philip Herron 0 0 0.0

Books about Cython from ISBNdb

title authors year publisher
Learning Cython Programming Herron, Philip 2013 Packt Publishing
Cython Kurt W. Smith 20150121 O'Reilly Media, Inc.
Cython Kurt W. Smith 20150121 O'Reilly Media, Inc.
Learning Cython Programming Philip Herron 2013-09-25 Packt Publishing
Learning Cython Programming Philip Herron 22-02-2016 Packt Publishing
Learning Cython Programming - Second Edition Herron and Philip 2016 Packt Publishing

Publications about Cython from Semantic Scholar

title authors year citations influentialCitations
A Cython Interface to EPICS Channel Access for High-level Python Applications J. Chrin 2017 1 0
raml.html · cython.html · mariadb.html

View source

PLDB - Build the next great programming language · v2022 · Day 31 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com