wok-current diff python-cython/description.txt @ rev 25733
Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Dec 20 16:13:23 2024 +0000 (7 days ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python-cython/description.txt Fri Dec 20 16:13:23 2024 +0000 1.3 @@ -0,0 +1,35 @@ 1.4 +Cython is an optimising static compiler for both the Python programming 1.5 +language and the extended Cython programming language (based on Pyrex). 1.6 +It makes writing C extensions for Python as easy as Python itself. 1.7 + 1.8 +Cython gives you the combined power of Python and C to let you 1.9 + 1.10 +- write Python code that calls back and forth from and to C or C++ code 1.11 + natively at any point. 1.12 +- easily tune readable Python code into plain C performance by adding 1.13 + static type declarations, also in Python syntax. 1.14 +- use combined source code level debugging to find bugs in your Python, 1.15 + Cython and C code. 1.16 +- interact efficiently with large data sets, e.g. using multi-dimensional 1.17 + NumPy arrays. 1.18 +- quickly build your applications within the large, mature and widely 1.19 + used CPython ecosystem. 1.20 +- integrate natively with existing code and data from legacy, low-level 1.21 + or high-performance libraries and applications. 1.22 + 1.23 +The Cython language is a superset of the Python language that additionally 1.24 +supports calling C functions and declaring C types on variables and class 1.25 +attributes. This allows the compiler to generate very efficient C code 1.26 +from Cython code. 1.27 +The C code is generated once and then compiles with all major C/C++ 1.28 +compilers in CPython 2.6, 2.7 (2.4+ with Cython 0.20.x) as well as 3.3 1.29 +and all later versions. 1.30 +We regularly run integration tests against all supported CPython versions 1.31 +and their latest in-development branches to make sure that the generated 1.32 +code stays widely compatible and well adapted to each version. 1.33 +PyPy support is work in progress (on both sides) and is considered mostly 1.34 +usable since Cython 0.17. The latest PyPy version is always recommended here. 1.35 + 1.36 +All of this makes Cython the ideal language for wrapping external C libraries, 1.37 +embedding CPython into existing applications, and for fast C modules that 1.38 +speed up the execution of Python code.