Cython: Difference between revisions

Content deleted Content added
OAbot (talk | contribs)
m Open access bot: doi updated in citation with #oabot.
Design: | Altered template type. Add: chapter-url, chapter, title. Removed or converted URL. | Use this tool. Report bugs. | #UCB_Gadget
Line 31:
 
A Cython program that implements the same algorithm as a corresponding Python program may consume fewer computing resources such as core memory and processing cycles due to differences between the CPython and Cython execution models. A basic Python program is loaded and executed by the CPython [[virtual machine]], so both the runtime and the program itself consume computing resources. A Cython program is compiled to C code, which is further compiled to machine code, so the virtual machine is used only briefly when the program is loaded.<ref>{{cite web |last=Oliphant |first=Travis |date=20 June 2011 |url=http://technicaldiscovery.blogspot.com/2011/06/speeding-up-python-numpy-cython-and.html |title=Technical Discovery: Speeding up Python (NumPy, Cython, and Weave) |publisher=Technicaldiscovery.blogspot.com |access-date=21 July 2013}}</ref><ref>{{cite journal |last1=Behnel |first1=Stefan |last2=Bradshaw |first2=Robert |last3=Citro |first3=Craig |last4=Dalcin |first4=Lisandro |last5=Seljebotn |first5=Dag Sverre |last6=Smith |first6=Kurt |year=2011 |title=Cython: The Best of Both Worlds |journal=Computing in Science and Engineering |volume=13 |issue=2 |pages=31–39 |doi=10.1109/MCSE.2010.118 |bibcode=2011CSE....13b..31B |s2cid=14292107 |url=http://research.google.com/pubs/pub36727.html|hdl=11336/13103 |hdl-access=free }}
</ref><ref name="scipy09">{{cite journalbook |last=Seljebot |first=Dag Sverre |year=2009 |title=Fast numerical computations with Cython |journal=Proceedings of the 8th Python in Science Conference (SciPy 2009) |serieschapter=ProceedingsFast ofnumerical thecomputations 8thwith PythonCython in Science Conference|year=2009 |pages=15–22 |doi=10.25080/GTCA8577 |chapter-url=http://conference.scipy.org/proceedings/SciPy2009/paper_2|doi-access=free }}</ref><ref>{{cite journal |last1=Wilbers |first1=I. |last2=Langtangen |first2=H. P. |last3=Ødegård |first3=Å. |year=2009 |title=Using Cython to Speed up Numerical Python Programs |journal=Proceedings of MekIT'09 |pages=495–512 |url=http://simula.no/research/sc/publications/Simula.SC.578/simula_pdf_file |access-date=14 June 2011 |format=PDF |editor1-first=B. |editor1-last=Skallerud |editor2-first=H. I. |editor2-last=Andersson |archive-date=4 January 2017 |archive-url=https://web.archive.org/web/20170104170007/http://simula.no/research/sc/publications/Simula.SC.578/simula_pdf_file |url-status=dead }}</ref>
 
Cython employs: