Hacker GitHub

← All repos

mpusz/mp-units

View on GitHub ↗ ★ 1,498 C++

The Domain-Correct Quantities and Units Library for C++ — full quantity kind safety, ISO 80000 compliant, C++29 standardization candidate.

7 mentions on Hacker News by 5 people: 1 story, 6 comments · first 2020-06-24 · latest 2025-02-15

Mentions per year 7 mentions · busiest year 2022 (3)
20082026
  1. In C++, there are a few very nice libraries for computation with units, e.g.: https://github.com/mpusz/mp-units which does all sorts of checking, allows arithmetic with proper accounting for units and so on. But yes, the basic notion is…
  2. There is indeed a units library [0] aiming for standardisation in C++29. [0] https://github.com/mpusz/mp-units
  3. > units comparison and conversions even on C++ See mp-units[1]. [1]: https://github.com/mpusz/mp-units
    comment by delta_p_delta_x · 2023-08-04 · in GNU Units
  4. …not sure the Chicago reference but if you’re talking about C++ the Units library is a good option. https://github.com/mpusz/units
    comment by wirthjason · 2022-11-05 · in The type system is a programmer's best friend
  5. …helpful for kalman filters and other stuff where you have heterogeneous units in one vector. [0] https://github.com/mpusz/units [1] "Daniel Withopf - Physical Units for Matrices. How hard can it be? - Meeting C++ 2021"…
    comment by jeffreygoesto · 2022-03-21 · in Please put units in names
  6. ▲ 1
    Compile-time C++ library for compile-time dimensional analysis, units/quantities
    story by jeffreygoesto · 2022-03-21 · 0 comments
  7. …working with physicial quantities in C++ there are also [0] https://github.com/nholthaus/units [1] https://github.com/mpusz/units