Skip to content
0:00 / 0:00

#bjarnestroustrup#serialization#performance

Plenary: The Beauty and Power of "Primitive" C++ - Bjarne Stroustrup - CppCon 2020

CppCon

189K subscribers • 103 videos on Hallway • Conference channel

YouTube
  • One of the most-watched uploads on CppCon, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
  • Presented by Bjarne Stroustrup
  • Linked in the descriptionCppCon/CppCon2020
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

78K views6 years ago

Programming languagesSystems programmingC++Performance and optimizationSimplicity and complexity

Bjarne Stroustrup discusses solving simple problems simply under severe performance and reliability constraints, using byte buffer serialization as an example.

cppcon.org/ github.com/CppCon/CppCon2020/blob/main/Presentations/the_pow… --- Often, we focus on novel, clever, and advanced features of C++. To contrast, here I look at addressing relatively simple problems in relatively simple ways under severe constraints of performance, ease of use, and reliability. My main example is to read and write typed objects from and to a byte buffer. This is of course something we do a lot and in a bewildering variety of ways. Any object that needs to be stored or transmitted to another computer must go through such a process. However, the constrains on such reading and writing varies immensely based on the kind of data to be moved around, the performance and reliability requirements, the hardware available, and history. Many trade-offs are possible, and many different interfaces. That makes this an interesting design exercise. This is an exploration of a design space close to the hardware and of the use of C++ in that space, rather than a standards proposal or the presentation of a mature tool chain. And, no, by “primitive”, I don’t mean “old-fashioned, C-like” code; some of the general techniques are old, but some of the code requires C++17 and much could be done better given features we are unlikely to get even in C++23. --- Bjarne Stroustrup Technical fellow, morgan stanley C++: history, design, use, standardization, future; performance, reliability; software developer education; distributed systems Bio: www.stroustrup.com/bio.html --- Work at Hudson River Trading (HRT): tinyurl.com/safxfctf --- Streamed & Edited by Digital Medium Ltd - events.digital-medium.co.ukevents@digital-medium.co.uk *-----* Register Now For CppCon 2022: cppcon.org/registration/ *-----*

Why it's here

A top upload from a listed channel

CppCon is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.