Our great sponsors
-
manifold
Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Scala's squants library is a nice implementation of units-of-measure/dimensional-analysis http://www.squants.com
In particular it uses types for dimensions; whilst units are just constructors. Hence `Meters(2)` and `Microns(7)` have the same type (`Length`).
The manifold[1] project for Java lets you write unit expressions directly.
Force force = 5kg * 9.807 m/s/s;
1. https://github.com/manifold-systems/manifold/tree/master/man...
For folks interested in this kind of thing, I wrote a python package called [unit-syntax](https://github.com/ahupp/unit-syntax) that adds physical unit syntax to python:
```