Advertisement

CppCon 2019: Victor Ciura “A Short Life span<> For a Regular Mess”

CppCon 2019: Victor Ciura “A Short Life span<> For a Regular Mess”

Discussion & Comments:

Presentation Slides, PDFs, Source Code and other presenter materials are available at:

By now you probably heard about “Regular Types and Why Do I Care” :)
This would be Part 2 of the journey we’ll take together, where we get a chance to explore std::span<T> through our Regular lens. Don’t worry if you’ve missed Part 1; we’ll have plenty of time to revisit the important bits, as we prepare to span our grasp into C++20.
“Regular” is not exactly a new concept. If we reflect back on STL and its design principles, as best described by Alexander Stepanov in his “Fundamentals of Generic Programming” paper, we see that regular types naturally appear as necessary foundational concepts in programming. Why do we need to bother with such taxonomies ? Because STL assumes such properties about the types it deals with and imposes such conceptual requirements for its data structures and algorithms to work properly. C++20 Concepts are based on precisely defined foundational type requirements such as Semiregular, Regular, EqualityComparable, etc.
Recent STL additions such as std::string_view, std::reference_wrapper, std::optional, as well as new incoming types for C++20 like std::span or std::function_ref raise new questions regarding values types, reference types and non-owning “borrow” types. Designing and implementing regular types is crucial in everyday programing, not just library design. Properly constraining types and function prototypes will result in intuitive usage; conversely, breaking subtle contracts for functions and algorithms will result in unexpected behavior for the caller.
This talk will explore the relation between Regular types (and other concepts) and new STL additions like std::span<T> with examples, common pitfalls and guidance.

Victor Ciura
CAPHYON
Principal Engineer
Romania, EU

Victor Ciura is a Principal Engineer at CAPHYON, Technical Lead on the Advanced Installer team and a Microsoft MVP (Developer Technologies).

He’s a regular guest at Computer Science Department of his Alma Mater, University of Craiova, where he gives student lectures & workshops on using C++ STL Algorithms.

Since 2005, he has been designing and implementing several core components and libraries of Advanced Installer. Currently, he spends most of his time working with his team on improving and extending the repackaging and virtualization technologies in Advanced Installer IDE, helping clients migrate their traditional desktop apps to the modern Windows application format: MSIX.

One of his “hobbies” is tidying-up and modernizing (C++17) the aging codebase of Advanced Installer and has been known to build tools that help this process: Clang Power Tools

More details: @ciura_victor &

Videos Filmed & Edited by Bash Films:

Victor Ciura,CppCon 2019,Computer Science (Field),+ C (Programming Language),Bash Films,conference video recording services,conference recording services,nationwide conference recording services,conference videography services,conference video recording,conference filming services,conference services,conference recording,event videographers,capture presentation slides,record presentation slides,event video recording,video services,

Post a Comment

0 Comments