- Learning Cython Programming(Second Edition)
- Philip Herron
- 167字
- 2021-07-16 09:45:26
Linking models
Linking models are extremely important when considering how we can extend or embed things in native applications. There are two main linking models for Cython:
Fully embedded Python within C/C++ code, which looks like the following screenshot:

Using this method of embedding the Python runtime into a native application means you initiate execution of code directly from any point in your C/C++ code, as opposed to the Chapter 1, Cython Won't Bite where we had to run the Python interpreter and call an import to execute native code.
For the sake of completeness, here is the import model of using Cython:

This would be a more Pythonic approach to Cython, and will be helpful if your code base is mostly Python. We will review an example of the Python lxml
module, which provides a Cython backend, later in this book, and we can compare it to the native Python backend to review the speed and execution of both code bases to perform the same task.
- Python快樂編程:人工智能深度學習基礎
- 跟“龍哥”學C語言編程
- Unity 2020 Mobile Game Development
- FFmpeg入門詳解:音視頻原理及應用
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- 計算機應用基礎(第二版)
- 大學計算機應用基礎(Windows 7+Office 2010)(IC3)
- The Statistics and Calculus with Python Workshop
- Responsive Web Design with jQuery
- Developing Java Applications with Spring and Spring Boot
- Learning D3.js 5 Mapping(Second Edition)
- ANSYS FLUENT 16.0超級學習手冊
- Java 9:Building Robust Modular Applications
- Getting Started with the Lazarus IDE
- JavaScript程序設計基礎教程(慕課版)