numbat
Measuremancer
numbat | Measuremancer | |
---|---|---|
5 | 1 | |
901 | 20 | |
- | - | |
9.8 | 6.7 | |
6 days ago | 3 months ago | |
Rust | Nim | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
numbat
-
Show HN: Numbat – A programming language with physical dimensions as types
> 365·243 ought to be 365·2425 exactly:
Yes. This is also how it is defined: https://github.com/sharkdp/numbat/blob/ba9e97b1fbf6353d24695...
The calculation above is showing a rounded result (6 significant digits by default).
- Programming Language for Scientific Computations
Measuremancer
-
Show HN: Numbat – A programming language with physical dimensions as types
Yeah, unicode characters in Nim code are supported. However, if by `x²` you'd want to square an identifier `x`, that won't work. The Nim lexer parses `x²` as a single identifier.
We do have infix unicode operators though. So `x ÷ y` (spacing required though!) could be implemented easily. I use this for `±` in Measuremancer [0] (which btw also supports Unchained units, for error propagation on unitful measurements).
[0]: https://github.com/SciNim/Measuremancer
What are some alternatives?
rink-rs - Unit conversion tool and library written in rust
insect - High precision scientific calculator with support for physical units
Desk - 🔮 The application platform for your cyberpunk desk
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
cpc - Text calculator with support for units and conversion
Squants - The Scala API for Quantities, Units of Measure and Dimensional Analysis
fathom - 🚧 (Alpha stage software) A declarative data definition language for formally specifying binary data formats. 🚧
jester - A sinatra-like web framework for Nim.
gleam - ⭐️ A friendly language for building type-safe, scalable systems!
prologue - Powerful and flexible web framework written in Nim
pen - The parallel, concurrent, and functional programming language for scalable software development
astGrad - Symbolic differentiation based on the Nim AST