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
20082026
-
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…
comment by cb321 · 2025-09-01 · in A review of Nim 2: The good and bad with example code -
…"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> -
…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…
comment by cb321 · 2024-08-09 · in Recent Performance Improvements in Function Calls in CPython -
…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) -
…into some C library for part of the code). [0]: https://github.com/SciNim/astGrad#extra-fun [1]: https://github.com/SciNim/Measuremancer/
comment by V1ndaar · 2023-11-17 · in Show HN: Numbat – A programming language with physical dimensions as types -
…[0] (which btw also supports Unchained units, for error propagation on unitful measurements). [0]: https://github.com/SciNim/Measuremancer
comment by V1ndaar · 2023-11-17 · in Show HN: Numbat – A programming language with physical dimensions as types -
…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/
comment by cb321 · 2023-09-06 · in Writing Small CLI Programs in Common Lisp (2021) -
…use `+-` to make a constructor for uncertain values so that `9 +- 2` builds a typed object as in https://github.com/SciNim/Measuremancer .
comment by cb321 · 2023-08-21 · in GNU Parallel, where have you been all my life?