Undefined Behaviour is awesome!

Play Undefined Behaviour is awesome!
Sign in to queue

Description

Undefined behavior (UB) is one of the features of C++ that is both loved and hated. Every C++ developer cares about performance, which is why it is very important to understand what the compiler can optimize and what are the language guarantees. Many times programmers are too optimistic about what the compiler can optimize, or they waste time optimizing code by hand. In this talk you will learn: - what is the “as-if” rule - why compilers know less than the programmer — the main problem with Translation Units - why compilers optimize based on UB, but don't warn about it - why Undefined Behavior can transcend time, removing your whole code without running 88mph - why having a more constrained language is better — optimizations that you can’t do in C

Day:

5

Session Type:

Presentation

Code:

134

Embed

Download

Download this episode

Download captions

The Discussion

Add Your 2 Cents