Undefined Behavior in C++: A Performance Viewpoint - Fedor Pikus - CppNow 2022

Undefined Behavior in C++: A Performance Viewpoint - Fedor Pikus - CppNow 2022

6.629 Lượt nghe
Undefined Behavior in C++: A Performance Viewpoint - Fedor Pikus - CppNow 2022
​Slides: https://github.com/boostcon CppNow Website: https://www.cppnow.org​ CppNow Twitter: @CppNow​ --- Undefined Behavior in C++: A Performance Viewpoint - Fedor Pikus - CppNow 2022 This talk is about You-Know-What, the thing in our programs we don’t mention by name. What is this undefined behavior every C++ programmer has grown to fear? Just as importantly, what it isn’t? If it’s so scary, why is it allowed to exist in the language? The aim of this talk is to approach the undefined behavior rationally: without fear but with due caution. We will learn why the standard allows undefined behavior in the first place, what actually happens when a program does something the standard calls “undefined,” and why it must be taken seriously even when the program “works as-is.” As this is a practical talk, we will have live demos of programs with undefined behavior and sometimes unexpected outcomes (if you are very lucky, you might see demons fly out of the speaker’s nose). Also, as this is a practical talk, we will learn how to detect undefined behavior in one’s programs, and how to take advantage of the undefined behavior to gain better performance. --- Fedor Pikus Fedor G Pikus is a Technical Fellow and head of the Advanced Projects Team in the Siemens Digital Industries Software. His earlier positions included a Senior Software Engineer at Google and a Chief Scientist at Mentor Graphics (acquired by Siemens Software). He joined Mentor Graphics in 1998 when he made a switch from academic research in computational physics to the software industry. His responsibilities as a Technical Fellow include planning the long-term technical direction of Calibre products, directing and training the engineers who work on these products, design, and architecture of the software, and research in new design and software technologies. Fedor has over 25 patents and over 100 papers and conference presentations on physics, EDA, software design, and C++ language. --- Videos Filmed & Edited By Bash Films https://bashfilms.com/ YouTube Channel Managed By Digital Medium Ltd: https://events.digital-medium.co.uk #Boost​ #Cpp​ #CppNow​