Back To Schedule

Improving safety with quantities and units library

14:30 - 16:00 Friday 1st March 2024 UTC

Safety has been a huge buzzword in the C++ Community in recent years. There are many concerns about the safety of our C++ language, and projects developed using it. Many improvements are being discussed, starting from handling of the low-level fundamental types, through updating the language rules (e.g., initialization), up to providing safer high-level abstractions in the library.

This lecture presents how the usage of a Modern C++ quantities and units library can improve the safety of the code we write every day. During the talk, Mateusz will describe all issues and possible solutions discussed in P2981: Improving our safety with a physical quantities and units library. Based on the examples developed with the mp-units project, the attendees will not only learn the obvious benefits of using such a library but also some less known safety features will be presented.

During the talk, we will see typical issues of code bases that do not use a proper library. We will also learn about various mishaps in engineering that happened through the ages and were caused by human errors in handling quantities and their units. We will also see how they can be easily and safely addressed using the mp-units library.

In the end, Mateusz will describe which issues can't be solved by the quantities and units library itself for now. He will review a list of potential extensions to the C++ language and its library that would allow even more safety in our projects.

Most of the contents of P2981: Improving our safety with a physical quantities and units library will be covered during the talk.

View Slides

Mateusz Pusz

Mateusz is a software architect, principal engineer, and security champion with many years of experience in designing, writing and maintaining C++ code for fun and living.

He worked on many different projects both in large corporations and small Open Source groups. His main areas of interest and expertise are code performance, low latency, stability, and security.

Through all those years he became an expert in many different domains. IP networking, UMTS, WiMax, graphics (OpenGL and DirectX), media, OpenCL, storage devices, finance, GPS navigation are only a few of subjects he worked on up to now. His experience is ranging from creating user applications down to kernel mode drivers.

Mateusz is an active voting member of the ISO C++ Committee (WG21) where, together with the best C++ experts in the world, he shapes the next official version of the C++ language. He is also a member of WG21 Study Group 14 (SG14) responsible for driving performance and low latency subjects in the Committee. In 2013 Mateusz won “Bench Games 2013” – worldwide competition in the C++ language knowledge.