Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Learning Cython Programming

Buy
Learning Cython Programming, 9781783280797 (1783280794), Packt Publishing, 2013

Developers who like C/C++ will love the added dynamism of Cython. This practical guide gives you everything you need to start programming with Cython and enhancing your existing applications. It could change your working life.

Overview

  • Extend C applications with pure Python code
  • Expand low-level C open source projects with pure Python – Tmux
  • Get the most out of highly computational Python code using Cython
  • Integrate your C applications with Python Distutils and Automake/Autoconf

In Detail

Cython is a very powerful combination of Python and C. Using Cython, you can write Python code that calls back and forth from and to C or C++ code natively at any point. It is a language with extra syntax allowing for optional static type declarations. It is also a very popular language as it can be used for multicore programming.

Learning Cython Programming will provide you with a detailed guide to extending your native applications in pure Python; imagine embedding a twisted web server into your native application with pure Python code. You will also learn how to get your new applications up and running by reusing Python’s extensive libraries such as Logging and Config Parser to name a few.

With Learning Cython Programming, you will learn that writing your own Python module in C from scratch is not only hard, but is also unsafe. Cython will automatically handle all type-conversion issues as well as garbage collection on your code. You can also still write all your code in Python but have it compiled and called directly in C as if it was just another function or data.

This book also demonstrates how you can take the open source project Tmux and extend it to add new commands directly in pure Python. With this book, you will learn everything you need to know to get up and running with Cython and how you can reuse examples in a practical way.

What you will learn from this book

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

Approach

A practical and a fast-paced guide that gives you all the information you need to start programming using Cython.

Who this book is written for

This book is for developers who love C/C++ for low latency and speed but who also require the ability to add more dynamic features to applications both fast and reliably. It will also show you how you can get new applications off the ground by reusing Python libraries to get started.

(HTML tags aren't allowed.)

Joining: Understanding the Basics
Joining: Understanding the Basics

Extending ASM's Understanding the Basics series into fabrication technologies, this book is an introduction to the most important industrial joining methods: welding, brazing, soldering, fastening, and adhesive bonding. It addresses metallurgical issues that must be understood during welding, and provides an overview of issues to consider...

Reinforcement Learning: With Open AI, TensorFlow and Keras Using Python
Reinforcement Learning: With Open AI, TensorFlow and Keras Using Python
Master reinforcement learning, a popular area of machine learning, starting with the basics: discover how agents and the environment evolve and then gain a clear picture of how they are inter-related. You’ll then work with theories related to reinforcement learning and see the concepts that build up the reinforcement...
OpenGL(R) Shading Language
OpenGL(R) Shading Language
The OpenGL® Shading Language, a high-level procedural shading language for OpenGL®, is the most important new development in graphics programming to emerge in years. OpenGL is the leading cross-platform 3D-graphics API, and the OpenGL Shading Language allows developers to take total control over the most important stages of the...

101 Internet Businesses You Can Start from Home: How to Choose and Build Your Own Successful e-Business
101 Internet Businesses You Can Start from Home: How to Choose and Build Your Own Successful e-Business
Communicating with customers and other businesses has changed dramatically over the past century. It started with print, then radio, television, phone, and fax, and now all of us are operating in the fastest medium yet—the Internet. The future is bright for businesses that utilize the Net as a primary medium of communication and sales....
The Cognitive Dynamics of Computer Science
The Cognitive Dynamics of Computer Science
A groundbreaking, unifying theory of computer science for low-cost, high-quality software

The Cognitive Dynamics of Computer Science represents the culmination of more than thirty years of the author's hands-on experience in software development, which has resulted in a remarkable and sensible...

The Art of SEO (Theory in Practice)
The Art of SEO (Theory in Practice)
A well-designed, easy-to-navigate website is useless if no one can find it. If your company is going to succeed in the web economy, optimizing your site for search engine visibility is essential. In this book, four of the most noted experts in the field of search engine optimization (SEO) provide you with proven guidelines and cutting-edge...
©2021 LearnIT (support@pdfchm.net) - Privacy Policy