Cython

Kurt W. Smith

出版时间

2015-01-31

ISBN

9781491901557

评分

★★★★★
书籍介绍
这本书最打动人的地方,是它把 Python 与 C 之间那道看似不可逾越的鸿沟,变成了一条可以稳步通行的桥。它不满足于告诉你「Cython 能提速」,而是手把手教你如何在享受性能红利的同时,把内存管理这类最容易出错的细节稳稳接住——用得好是利器,用错则隐患重重,这一点贯穿全书。书中以 Pandas、SymPy 等真实项目为锚点,让读者看到它并非理论空谈,而是被无数底层工程反复验证过的选择。它适合那些已能熟练写 Python、却常在性能瓶颈前束手无策的开发者:当你需要把关键路径压到最快,又不想放弃 Python 的简洁时,这本书会是你工具箱里那把最趁手的扳手。
作者简介
Kurt Smith has been using Python in scientific computing ever since his college days, looking for any opportunity to incorporate it into his computational physics classes. He has contributed to the Cython project as part of the 2009 Google Summer of Code, implementing the initial version of typed memoryviews and native cython arrays. He uses Cython extensively in his consulting work at Enthought, training hundreds of scientists, engineers, and researchers in Python, NumPy, Cython, and parallel and high-performance computing.
用户评论
31
很好的一本书,解除了我对python c/c++扩展的各种疑惑,改天找个项目试试。
clear and concise comprehensive coverage of Cython. The author's 3+ hours presentations in Youtube is also very good.
It is a powerful tool, but it must be used in the right way.
加速加速加速
特别有条理, 甚至还有习题章, 虽然我对性能部分并不关心, 但是写得太流畅导致一口气读了下去. 读完后产生了一种 "pyelf 性能有救了" 和 "以后所有项目都直接用 Cython 吧" 的想法...
非常好,科技文档界的一股清流
推荐
cython确实快…沉迷于提高代码速度
cython大致能当一门新语言来学了 机器生成代码比我想象中的牛逼多了。以后有性能需求的时候(maybe)可以用cython试试
下载
收藏