PyCon Taiwan 2020|一般演講 Talks
🪧 投影片 Slides:https://www.slideshare.net/YungYuChen...
💡 摘要 Abstract 💡
Python is fast to write and deliver results, but it is not a good choice when you cannot sacrifice any runtime. It is the time to switch to C++. But we certainly don’t want to give up the productivity available to Python, and we worry about the complexity of C++. The way to go is to design the backbone system in C++ and expose the API in Python. Then we can enjoy the capabilities coming from the complex compiler and scripting it just like Python. (Actually it is Python.)
0:00 Introduction
0:58 Why move?
3:31 Example: PDES
4:59 Example: OPC
6:47 Python: the good is the bad
8:27 What is fast?
9:39 Dynamic typing is slow
12:14 Speed is the king
13:24 PyObject uses malloc
14:04 Python call stack
15:33 Best practice: glue
16:18 Pick pybind11
18:06 How cmake works
18:41 Zero-copy: do it where it fits
21:04 Check assembly
23:23 Manage resources
24:40 Translate reference count
25:37 Run Python in C++
26:16 Spend time in compilation to save time in runtime Compler does a lot of good. Make use of it as much as
26:54 Compiler reduces runtime errors
27:22 Decouple resource management from algorithms
27:39 Encapsulate complex calculation without losing performance
28:14 Conclusion
🚀 關於講者 About Speaker - Yung-Yu Chen 🚀
HPC software developer.
#python #pycontw #pycontw2020
Follow “PyCon Taiwan”
⭐️ Official Website: https://tw.pycon.org
⭐️ Facebook: / pycontw
⭐️ Instagram: / pycontw
⭐️ Twitter: / pycontw
⭐️ LinkedIn: / pycontw
⭐️ Blogger: https://pycontw.blogspot.com
Смотрите видео Notes About Moving From Python to C++|Yung-Yu Chen| PyCon TW 2020 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь PyCon Taiwan 12 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 211 раз и оно понравилось 3 людям.