Contribute Media
A thank you to everyone who makes this possible: Read More

SimpleArray between Python and C++

Description

PyCon Taiwan 2023|Talk 演講|Day 1, R0 13:45–14:15

🪄 說明 Description 🪄 Contiguous buffer is what makes code run fast. With the regular and compact layout, data can go through the memory hierarchy in a quick way to the processor. Numpy makes use of it to achieve the runtime almost as fast as C.

However, not all algorithms can be easily maintained or designed by using array operations. A more general ways is to use the contiguous buffer as an interface. The dynamic typing system of Python makes it easy to use but hard to optimize. The typed, fixed-shape buffer allows efficient data sharing between the fast code written in C++ and the Python application. In the end, the system is as easy to use as but much faster than Python. The runtime is the same as C++.

In this talk, I will show how to design a simple array system in C++ and make it available in Python. It may be made as a general-purpose library, or embedded for ad hoc optimization.

🪧 投影片 Slides:https://www.slideshare.net/YungYuChen/simplearray-between-python-and-cpdf

🚀 講者介紹 About Speaker - Yung-Yu Chen 🚀 HPC software developer.

Follow “PyCon Taiwan” ⭐️ Official Website: https://tw.pycon.org ⭐️ Facebook: https://www.facebook.com/pycontw ⭐️ Instagram: https://www.instagram.com/pycontw ⭐️ Twitter: https://twitter.com/PyConTW ⭐️ LinkedIn: https://www.linkedin.com/company/pycontw ⭐️ Blogger: https://conf.python.tw/

Details

Improve this page