Hacker GitHub

← All repos

SciNim/Measuremancer

View on GitHub ↗ ★ 26 Nim

A library to handle measurement uncertainties & error propagation

8 mentions on Hacker News by 2 people: 0 stories, 8 comments · first 2023-08-21 · latest 2025-09-01

Mentions per year 8 mentions · busiest year 2023 (4)
20082026
  1. Also, very cool. For example, https://github.com/SciNim/Measuremancer has Nim make the utf8 ± character be an operator that constructs an uncertain number with which to do error propagation arithmetic upon. So, you can, e.g. say…
  2. …"downstream errors" is just simple chain rule calculus stuff. (There is a Nim library for that at https://github.com/SciNim/Measuremancer that I use at least every week or two - whenever I'm timing anything.) It usually takes some…
    comment by cb321 · 2025-08-28 · in Uncertain<T>
  3. …examples to make the abstract more concrete, in Nim you can add user-defined operators. So, with https://github.com/SciNim/Measuremancer I can have let x = a +- b or let y = c ± d construct uncertain numbers and then say y/x to get a ratio…
  4. …do-able with https://github.com/c-blake/fitl , EDIT: oh, and if you care `a` is basically shown in https://github.com/SciNim/Measuremancer/pull/12 which uses standard error propagation). The bigger point would not be ever more careful…
    comment by cb321 · 2024-01-30 · in On the Costs of Syscalls (2021)
  5. …into some C library for part of the code). [0]: https://github.com/SciNim/astGrad#extra-fun [1]: https://github.com/SciNim/Measuremancer/
  6. …[0] (which btw also supports Unchained units, for error propagation on unitful measurements). [0]: https://github.com/SciNim/Measuremancer
  7. …on the order of 100 microseconds. There are all kinds of great libs in Nim, too like @V1ndaar's https://github.com/SciNim/Measuremancer or all sorts of goodies over at https://nimble.directory/
  8. …use `+-` to make a constructor for uncertain values so that `9 +- 2` builds a typed object as in https://github.com/SciNim/Measuremancer .