~/talk

A Physical Units Library For C++

Talkat NDC TechTown 2021 · 2021-08-30..09-02· [c-and-cpp, software-architecture]
slides:none on file

mp-units is a C++20 library (GitHub, Conan, Godbolt, Gitpod) that encodes quantities, units, dimensions and prefixed SI units with concepts and NTTPs, eliminating macros. It claims zero runtime overhead versus raw doubles and often compiles to fewer ops (one division vs multiple divides in naïve code). It provides quantity_cast, nice debugger/type names via a "doncasting" facility, integrates with linear-algebra proposals, supports GCC10+/Clang/MSVC and is already used in production (≈100+ companies).

AI-written summary · about

  1. 0:00Introduction
  2. 1:48Agenda
  3. 5:32Results
  4. 9:39Example
  5. 10:25Doubles
  6. 11:27Boost Units
  7. 12:21Implicit Conversion
  8. 13:33Labor
  9. 14:53Use Case
  10. 15:57Return Type
  11. 16:39NYX Library
  12. 17:12Concepts
  13. 17:40Interfaces
  14. 17:51Generic Code
  15. 19:15Performance
  16. 20:12Overhead
  17. 20:36User Experience
  18. 23:48Dimension Mismatch
  19. 24:45Doncaster Facility
  20. 26:19Debugging Experience
  21. 27:38Strong interfaces
  22. 29:23Unit concepts
  23. 35:53Universal template parameter
  24. 37:31Conversions
  25. 38:34Meta Programming Tricks
  26. 39:36Benefits of Using Concepts
  27. 40:40Defining New Units
  28. 42:26Converting to Ratio
  29. 43:09New Use Cases
  30. 43:59Streams
  31. 44:32Official Definition
  32. 46:17Next Steps
  33. 51:18Github
  34. 52:55Users
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.