Learning Cython Programming, 2nd Edition

0
(0)

Learning Cython Programming, 2nd Edition
 

  • Author:Philip Herron
  • Length: 110 pages
  • Edition: 2
  • Publisher: Packt Publishing
  • Publication Date: 2016-02-22
  • ISBN-10: 1783551674
  • ISBN-13: 9781783551675
  • Sales Rank: #4188547 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Key Features

    • Learn how to extend C applications with pure Python code
    • Get more from Python – you’ll not only learn Cython, you’ll also unlock a greater understanding of how to harness Python
    • Packed with tips and tricks that make Cython look easy, dive into this accessible programming guide and find out what happens when you bring C and Python together!

    Book Description

    Cython is a hybrid programming language used to write C extensions for Python language. Combining the practicality of Python and speed and ease of the C language it’s an exciting language worth learning if you want to build fast applications with ease.

    This new edition of Learning Cython Programming shows you how to get started, taking you through the fundamentals so you can begin to experience its unique powers.

    You’ll find out how to get set up, before exploring the relationship between Python and Cython. You’ll also look at debugging Cython, before moving on to C++ constructs, Caveat on C++ usage, Python threading and GIL in Cython. Finally, you’ll learn object initialization and compile time, and gain a deeper insight into Python 3, which will help you not only become a confident Cython developer, but a much more fluent Python developer too.

    What you will learn

    • Reuse Python logging in C
    • Make an IRC bot out of your C application
    • Extend an application so you have a web server for rest calls
    • Practice Cython against your C++ code
    • Discover tricks to work with Python ConfigParser in C
    • Create Python bindings for native libraries
    • Find out about threading and concurrency related to GIL
    • Expand Terminal Multiplexer Tmux with Cython

    About the Author

    Philip Herron is a developer who focuses his passion toward compilers and virtual machine implementations. When he was first accepted to Google Summer of Code 2010, he used inspiration from Paul Biggar’s PhD on the optimization of dynamic languages to develop a proof of the concept GCC frontend to compile Python. This project sparked his deep interest in how Python works.

    After completing a consecutive year on the same project in 2011, Philip applied to Cython under the Python foundation to gain a deeper appreciation of the standard Python implementation. Through this he started leveraging the advantages of Python to control the logic in systems or even add more high-level interfaces, such as embedding Flask web servers in a REST API to a system-level piece of software, without writing any C code.

    Philip currently works as a software consultant for Instil Software based in Northern Ireland. He develops mobile applications with embedded native code for video streaming. Instil has given him a lot of support in becoming a better engineer.

    He has written several tutorials for the UK-based Linux Format magazine on Python and loves to share his passion for the Python programming language.

    Table of Contents

    Chapter 1. Cython Won’t Bite
    Chapter 2. Understanding Cython
    Chapter 3. Extending Applications
    Chapter 4. Debugging Cython
    Chapter 5. Advanced Cython
    Chapter 6. Further Reading

    中文:

    书名:学习Cython编程,第2版

    主要特点

    • 了解如何使用纯Python代码扩展C应用程序
    • 从Python中获得更多-您不仅将学习Cython,还将更好地了解如何利用Python
    • 充斥着让Cython看起来简单的技巧和技巧,深入到这本易于访问的编程指南中,了解当您将C和Python结合在一起时会发生什么!

    图书描述

    Cython是一种混合编程语言,用于为Python语言编写C扩展。结合了Python语言的实用性和C语言的速度和易用性,如果您想轻松构建快速的应用程序,它是一种值得学习的令人兴奋的语言。

    这个新版的学习Cython编程向你展示了如何开始,带你通过基础知识,这样你就可以开始体验它独特的力量。

    在探索Python和Cython之间的关系之前,您将了解如何设置。在转到C++构造、C++用法说明、Python线程化和Cython中的GIL之前,您还将了解如何调试Cython。最后,您将学习对象初始化和编译时,并对Python3有更深入的了解,这将帮助您不仅成为一名自信的Cython开发人员,而且还将成为一名更加熟练的Python开发人员。

    What you will learn

    • 在C++中重用Python日志记录
    • 用你的C应用程序制作一个IRC机器人
    • 扩展应用程序,以便拥有用于REST调用的Web服务器
    • 针对您的C++代码练习Cython
    • 了解在C++中使用Python ConfigParser的技巧
    • 为本机库创建Python绑定
    • 了解与GIL相关的线程和并发性
    • 用Cython扩展终端多路复用器Tmux

    About the Author

    菲利普·赫伦。 是一名开发人员,他将热情集中在编译器和虚拟机实现上。当他第一次被Google Summer of Code2010录取时,他从Paul Bigga关于动态语言优化的博士学位中得到灵感,开发了一个概念的证明,GCC倾向于编写Python语言。这个项目激起了他对Python如何工作的浓厚兴趣。

    在2011年完成同一项目的连续一年后,Philip向Python基金会下的Cython提出了申请,以更深入地了解标准的Python实现。通过这一点,他开始利用Python的优势来控制系统中的逻辑,甚至添加更多的高级接口,例如在系统级软件的REST API中嵌入FlaskWeb服务器,而不需要编写任何C代码。

    菲利普目前在北爱尔兰的Instil Software公司担任软件顾问。他开发了带有嵌入式本地代码的移动应用程序,用于视频流。Instil给了他很多支持,让他成为一名更好的工程师。

    他已经为总部位于英国的Linux Format杂志撰写了几篇关于Python的教程,并乐于分享他对Python编程语言的热情。

    Table of Contents

    第一章:赛龙赢了!
    第2章:了解Cython
    第三章.扩展应用程序
    第4章.调试Cython
    第5章:高级Cython
    第六章:进一步阅读

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册