Hacker GitHub

← All repos

SciNim/Unchained

View on GitHub ↗ ★ 122 Nim

A fully type safe, compile time only units library.

10 mentions on Hacker News by 3 people: 0 stories, 10 comments · first 2021-05-11 · latest 2025-10-04

Mentions per year 10 mentions · busiest year 2023 (6)
20082026
  1. …), mentioned elsethread Re: numeric ranges like Ada, only needs a library for this: https://github.com/SciNim/Unchained FWIW, physical dimensions like meters were the original apples-to-oranges type system that pre-dates all modern notions…
  2. …about a lot of things to think about when writing such a program / lib / programming language. [0]: https://github.com/SciNim/Unchained
  3. …now). In terms of the type creation, though, there is some hope like the Nim Unchained package: https://github.com/SciNim/Unchained
  4. …I think that helps to shield some of this type complexity from users, but the documentation README https://github.com/SciNim/Unchained does better job than I can in an HN comment. Of course, for unit system conversion, the number of…
    comment by cb321 · 2023-08-04 · in GNU Units
  5. …only numerically). Some of this shows up in an unresolved issue on that Nim library I mentioned[1]: https://github.com/SciNim/Unchained/issues/8 EDIT: { One reason to preserve a symbolic capability is that some constants have resisted…
    comment by cb321 · 2023-08-03 · in GNU Units
  6. …[1] has sufficient compile-time strength that units can be integrated with the static type system: https://github.com/SciNim/Unchained [1] https://nim-lang.org/
    comment by cb321 · 2023-08-03 · in GNU Units
  7. …(from a short look at the `au`'s docs my biased opinion is it beats `au` on usability :) ). [0]: https://github.com/SciNim/Unchained
  8. You might find this interesting: https://github.com/SciNim/Unchained
    comment by cb321 · 2022-03-21 · in Please put units in names
  9. There's Unchained for Nim: https://github.com/SciNim/Unchained
  10. …support, the code even looks nice! A more complex use case (I can link more if desired): [1] [0]: https://github.com/SciNim/Unchained/ [1]: https://github.com/SciNim/Unchained/tree/master/examples
    comment by V1ndaar · 2021-05-11 · in Atlas, a hopefully better engineering IDE