Re:How fast can we make interpreted Python?
by tomrod on Saturday July 27, 2013 @04:20PM
(#6114279)
Sounds intriguing. I know a fair bit of C, python, Fortran. I've used f2py a bit. Do you have any good Cython tutorial you like to recommend?
[ Parent
| on HN ]
Re:How fast can we make interpreted Python?
by ProblemFactory on Saturday July 27, 2013 @04:33PM
(#6114334)
For my use cases, the standard documentation and tutorials (http://docs.cython.org/index.html) have been enough.
* Install it with pip, the packages in your OS distribution may be out of date,
* Rename your numeric code module's .py file to .pyx,
* Use pyximport from the main script ( http://docs.cython.org/src/userguide/source_files_and_compil...) to have it compiled at runtime without any extra build steps, and then
* Start experimenting with adding a few "cdef"s (http://docs.cython.org/src/quickstart/cythonize.html and http://docs.cython.org/src/tutorial/numpy.html)