-
Something I briefly mention in the post is pint [0] for Python, but unfortunately, I don't think dimensions can be specified via type annotations.
At least you can check the input of functions at runtime [1].
[0]: https://github.com/hgrecco/pint
[1]: https://pint.readthedocs.io/en/stable/advanced/wrapping.html
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
numbat
A statically typed programming language for scientific computations with first class support for physical dimensions and units
I haven't had the opportunity to use this in research yet, but i liked numbat [0], as it comes with relevant common units and lets you define your own. It appeared on HN before [1].
[0]: https://github.com/sharkdp/numbat
[1]: https://news.ycombinator.com/item?id=38276430
-
For those coding in Swift, there is the Physical[0] package, that has the advantage of not stating units in comments where they can easily cause mischief.
[0] https://github.com/hyperjeff/Physical
Related posts
-
Show HN: Numbat – A programming language with physical dimensions as types
-
GNU Units
-
misura: Python library for easy unit handling and conversion for scientific & engineering applications.
-
Blue Origin capsule blasts away from booster after anomaly during launch
-
Senior FPGA Engineer in quantum computing startup, Oxfordshire UK