Improving Our Safety With a Quantities and Units Library## MP-UNITS & STANDARDIZATION ## mp-units: C++20/23 quantities and units library ## • Compile-time safety – correct handling of physical quantities, units, and numerical values ## mp-units: C++20/23 faster than working with fundamental types – no runtime overhead – no space size overhead ## mp-units: C++20/23 quantities and units library ## • Compile-time safety – correct handling of physical optimized for readable compilation errors and great debugging experience – easy to use and flexible ## mp-units: C++20/23 quantities and units library ## • Compile-time safety – correct handling of physical0 码力 | 207 页 | 6.93 MB | 1 年前3
A Physical Units Library for the Next C++s Ongoing research to provide an alternative way to create quantities... (mpusz/units#48) #### mp-units Documentation (mpusz.github.io/units)  |Compiler Explorer|Add...|More|☐|☐|x86-84 gcc |19|static\_assert(2\_q\_m * 3\_q\_m == 6\_q\_m2);||||||dlib|\-|Lua|\-|xsimd| |20|||||||Doctest|\-|mp-units|0.6.0|xtensor| |21|static\_assert(10\_q\_km / 5\_q\_km == 2);||||||EASTL|\-|NamedType|\-|xtl| |0 码力 | 172 页 | 6.17 MB | 1 年前3
Au Unitshttps://aurora-opensource.github.io/au/main/alternatives/ ### 1. Can you get it? ||Boost|nholthaus|bernedom/SI|mp-units|Au| |---|---|---|---|---|---| |C++ Version Compatibility|C++98|C++14|C++17|C++20|C++14| |Ease of https://aurora-opensource.github.io/au/main/alternatives/ ### 1. Can you get it? ||Boost|nholthaus|bernedom/SI|mp-units|Au| |---|---|---|---|---|---| |C++ Version Compatibility|C++98|C++14|C++17|C++20|C++14| |Ease of Version-stamped for full reproducibility| ### 2. What does it cost? ||Boost|nholthaus|bernedom/SI|mp-units|Au| |---|---|---|---|---|---| |Compilation Speed|(Not assessed)|Very slow, but can be greatly improved0 码力 | 191 页 | 22.37 MB | 1 年前3
Exploration of Strongly-typed Units: A Case Study from Digital Audio> ## My journey to mp-units https://github.com/mpusz/mp-units My journey to mp-units... - P1386 A Standard Audio API for C++: Motivation, Scope buffers: std::mdspan (?) - Frequency, sample time • Searched for prior art ○ Found mp-units and... ○ P1935 A C++ approach to physical units • All before Au was released ## Are physical “Don’t handle non-linear units” • nholthaus units has a technique • being explored in mp-units / Au • How are we going to deal with 3rd party float APIs hello, units... 












