Measuremancer
numbat
Measuremancer | numbat | |
---|---|---|
1 | 5 | |
20 | 872 | |
- | - | |
6.7 | 9.8 | |
3 months ago | 8 days ago | |
Nim | Rust | |
- | 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.
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
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
What are some alternatives?
insect - High precision scientific calculator with support for physical units
rink-rs - Unit conversion tool and library written in rust
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).
Desk - 🔮 The application platform for your cyberpunk desk
Squants - The Scala API for Quantities, Units of Measure and Dimensional Analysis
cpc - Text calculator with support for units and conversion
jester - A sinatra-like web framework for Nim.
fathom - 🚧 (Alpha stage software) A declarative data definition language for formally specifying binary data formats. 🚧
prologue - Powerful and flexible web framework written in Nim
gleam - ⭐️ A friendly language for building type-safe, scalable systems!