durationcheck
Squants
durationcheck | Squants | |
---|---|---|
2 | 8 | |
45 | 910 | |
- | -0.1% | |
0.7 | 2.9 | |
about 1 year ago | 12 days ago | |
Go | Scala | |
Apache License 2.0 | 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.
durationcheck
-
Please put units in names
And there's also a fancy pancy linter that checks for this bug for you that's conveniently already integrated with golangci-lint for you, you just need to turn it on.
-
Please Put Units in Names
Now I insist on using the durationcheck lint to guard against this (https://github.com/charithe/durationcheck). It found a flaw in some exponential-backoff code I had refactored but couldn’t easily fully test that looked right but was wrong, and now I don’t think Go’s approach is reasonable anymore.
Squants
-
Improving our safety with a physical quantities and units library
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`).
- Show HN: Numbat – A programming language with physical dimensions as types
- The type system is a programmer's best friend
-
Is Scala a good choice for a data intensive web backend?
squants for the “Market” package to use in financial calculations.
-
Please put units in names
take a peek at https://www.squants.com looks like not in your language, but maybe you can apply some same concepts
-
Atlas, a (hopefully) better engineering IDE
You might find the Squants library for Scala interesting; it even seems like an apt usage of some oft-questioned language features.
https://github.com/typelevel/squants
- Ratio Templates?
What are some alternatives?
SI - A header only C++ library that provides type safety and user defined literals for physical units
Breeze - Breeze is a numerical processing library for Scala.
kal - A powerful, easy-to-use, and easy-to-read programming language for the future.
Axle - Axle Domain Specific Language for Scientific Cloud Computing and Visualization
go - The Go programming language
PredictionIO - PredictionIO, a machine learning server for developers and ML engineers.
dimensioned - Compile-time dimensional analysis for various unit systems using Rust's type system.
Spire - Powerful new number types and numeric abstractions for Scala.
zen
rscala - The Scala interpreter is embedded in R and callbacks to R from the embedded interpreter are supported. Conversely, the R interpreter is embedded in Scala.
Unchained - A fully type safe, compile time only units library.
Compute.scala - Scientific computing with N-dimensional arrays