CppCon 2017: John Regehr “Undefined Behavior in 2017 (part 1 of 2)”

  Рет қаралды 10,456

CppCon

CppCon

Күн бұрын

Пікірлер: 12
@annazolkieve9235
@annazolkieve9235 4 жыл бұрын
Excellent informative talk describing details of the UB! Very useful! Many thanks!
@gubgubbubbub
@gubgubbubbub 6 ай бұрын
Excellent speaker and content!
@rafalmichalski4893
@rafalmichalski4893 4 жыл бұрын
Is it possible to have UB during compile time (assuming no compile errors) ?
@hl2mukkel
@hl2mukkel 7 жыл бұрын
Fantastic talk, highly interesting!
@Kobold666
@Kobold666 3 ай бұрын
sizeof(int) is equal to sizeof(long) no matter if it's a 32bit or 64bit architecture. They changed int from 16bit to 32bit, but never to 64bit.
@cocomonkilla
@cocomonkilla 5 жыл бұрын
Awesome lecture
@thought2007
@thought2007 7 жыл бұрын
9:12 - Why can't the Standard just say "this is implementation-defined"? The example explains UB vs. defined, but doesn't explain the advantage of undefined vs. implementation-defined.
@Zeturic
@Zeturic 5 жыл бұрын
Because UB isn't just at the language level. An architecture could exist where shifting too far is undefined, even at the hardware level. By listing it as implementation-defined rather than undefined behavior, C/C++ implementations on that architecture would be forced to add to gracefully handle that case in software every time there's a shift.
@BillyONeal
@BillyONeal 7 жыл бұрын
The memcpy example is the standard being stupid. We should fix that.
@BillyONeal
@BillyONeal 7 жыл бұрын
_moonPtr 1. I mean it should be fixed in C. 2. Allowing more things doesn't break backcompat anyway.
@omfgbunder2008
@omfgbunder2008 5 жыл бұрын
Shouldn't 32bit
@n3whous3
@n3whous3 5 жыл бұрын
Wouldn't be better to write the subtitles with somebody who is in the business? "Valgrint", j.f.c.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
PC Parts & TECH I'd Actually Spend MY Money ON!
21:17
Tech Notice
Рет қаралды 11 М.
CppCon 2017: Chandler Carruth “Going Nowhere Faster”
1:00:58
CppCon 2017: Pablo Halpern “Allocators: The Good Parts”
1:00:49
468 - x86_64 HolyC Compiler Masterclass (TempleOS) [2015]
1:23:05
Absolute Terry Davis
Рет қаралды 2,8 М.