Back to Basics: Class Layout - Stephen Dewhurst - CppCon 2020

  Рет қаралды 39,305

CppCon

CppCon

Күн бұрын

Пікірлер: 24
@norikazuoshiro6324
@norikazuoshiro6324 4 жыл бұрын
I learn something new and useful everytime i watch a cppcon video, especially Back to Basics series. Thank you, Mr Stephen Dewhurst for the great talk.
@georganatoly6646
@georganatoly6646 3 жыл бұрын
hate to admit but I was completely ignorant to , turned out to be an exceptionally informative talk!
@lck5217
@lck5217 4 жыл бұрын
ДОВЕРЯЙ НО ПРОВЕРЯЙ! GREAT TALK!
@QuintinMassey
@QuintinMassey 4 жыл бұрын
Proposed augmentation to the statemen that C++ is getting easier to write: it is getting easier to write more complex C++ cause I still don't understand most of it haha. After this presentation, I learned that I know even less about C++ than before. Great presentation! Thank you.
@YourCRTube
@YourCRTube 4 жыл бұрын
Imagine a newcomer watching this thinking it's "the basics" 😁 Good talk otherwise, though the second part has a strong overlap with last year talk about virtual classes
@shmekelfreckles8157
@shmekelfreckles8157 6 ай бұрын
Do they actually have “the basics”?
@yjc149
@yjc149 Жыл бұрын
this is an extremly good talk. thanks Stephen!
@rodion988
@rodion988 3 жыл бұрын
Thank you Stephen for this lecture, very informative.
@CppCon
@CppCon 3 жыл бұрын
Glad it was helpful!
@martinelzen5127
@martinelzen5127 4 жыл бұрын
This was a cool lecture, I'm glad I watched it and learned some things. The explanation of *why* the using-memcmp-across-data-members is a bad thing, could have been clearer, though. If memory serves the standard does *NOT* allow memory to be touched which hasn't been explicitly initialized, which means if any padding gets added anywhere, you've instantly gone to UB-land...
@poppmeow7586
@poppmeow7586 Ай бұрын
it's like going through the book object model within 1 hour. Lots of details to revisit and recap later.
@QaytbayALAtheer
@QaytbayALAtheer 3 жыл бұрын
What is object/type level protection mentioned @ 6:20 ?!
@Radioguy00
@Radioguy00 4 жыл бұрын
Learned a lot of new things. Very clearly explained. Thanks
@xealit
@xealit Ай бұрын
C++ is indeed terrific to program embedded systems. It just feels like you talk foreign language to those systems. But if you bend and shoehorn it with templates and meta-programming, it is indeed great. Is there a compiler directive to check that a class is standard layout type? I.e. something like override that checks a member does indeed override something. -- ok, use is_standard_layout_v and many static_asserts. Another example how C++ is just foreign to digital hardware.
@zzzXopHeTzzz
@zzzXopHeTzzz 2 жыл бұрын
A lot of useful information. Thanks!
@CppCon
@CppCon 2 жыл бұрын
Glad it was helpful! Thank you.
@KX36
@KX36 2 жыл бұрын
After watching this I'm amazed upcasting and downcasting works at all...
@peterevans6752
@peterevans6752 2 жыл бұрын
Enjoyed the virtual and vtbl discussions in this talk. I'm uncertain I would call it "basics" but more label it "essentials" for class layout. Just because inheritance and multiple inheritance doesn't seem basic at all.
@konstantinburlachenko2843
@konstantinburlachenko2843 2 жыл бұрын
It is all also relative to c++1998, and I think people who worked with c++ for 3-4 years and read book on the subject. Still it is a nice talk to highlight possible problems, even they are pretty old. To learn layouts for compilers sometimes authors of compilers share technical docs.
@hanyanglee9018
@hanyanglee9018 2 жыл бұрын
Maybe the virtual table is not a good design right from the beginning. Multiple inheritance brings whole lot of mess. If we have some meta programming mechanism in c++, while allow us to copy functions into another class, replace and remove some of them, it should be easier. Then the mess is thrown to how a container stores multiple types, or at least pointers of different types while all the pointers are of the same size.
@riderwang9770
@riderwang9770 4 жыл бұрын
Stephen is always the best
@tourdesource
@tourdesource Жыл бұрын
I was despairing about having to memorize what constitutes a standard layout class. Deeply grateful for std::is_standard_layout. Does it always work?
@ggodool
@ggodool 3 жыл бұрын
Great talk!
@alek282
@alek282 3 жыл бұрын
I guess embedded people are right not to trust C++ after all Great explanations however
Back to Basics: Pointers and Memory - Ben Saks - CppCon 2020
1:00:56
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 21 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 59 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 7 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 54 МЛН
Bjarne Stroustrup - The Essence of C++
1:39:11
The University of Edinburgh
Рет қаралды 1,2 МЛН
Back to Basics: Concurrency - Arthur O'Dwyer - CppCon 2020
1:04:28
The Return of Procedural Programming - Richard Feldman
52:53
ChariotSolutions
Рет қаралды 46 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 684 М.
Back to Basics: Exceptions - Klaus Iglberger - CppCon 2020
1:01:45
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 21 МЛН