Implementing Physical Units Library for C++
summary
Claims a header-only physical-units library that enforces dimensional correctness at compile time while generating no runtime overhead in microbenchmarks, implements SI and common derived units, and caught real unit-mismatch examples. Uses heavy template metaprogramming with class types as NTTPs, simplifies construction with class template argument deduction (CTAD), and constrains APIs with concepts for quantity and unit types. Presents tradeoffs around user syntax vs. compile-time resolution and interoperability with existing numeric types.
AI-written summary · about
chapters (8)
- 0:00Wprowadzenie konferencji i powitanie uczestników
- 1:30Przedstawienie tematu biblioteki jednostek fizycznych w C++
- 15:00Implementation problems
- 30:00Porównanie z istniejącymi rozwiązaniami i standardami
- 45:00Demonstracja praktycznego użycia biblioteki
- 1:00:00Wydajność i optymalizacja kodu z jednostkami fizycznymi
- 1:15:00Przyszłość i dalszy rozwój biblioteki
- 1:25:00Podsumowanie i odpowiedzi na pytania uczestników
related talks
01h 08mA Physical Units Library For the Next C++
01h 02mA Physical Units Library For C++
01h 30mEnhancing Safety in C++ Code With Modern C++ Quantities and Units Library
01h 23mThe Power of C++ Templates With mp-units: Lessons Learned & a New Library Design
01h 37mRethinking the Way We Do Templates in C++ even more
01h 40mUsing Units, Qantities, and Dimensions in C++14
01h 03mHow to Improve the Safety of C++ Code With a Quantities & Units Library
55mTaking Static Type-safety to the Next Level: Physical Units for Matrices
