kal
durationcheck
kal | durationcheck | |
---|---|---|
2 | 2 | |
396 | 45 | |
- | - | |
10.0 | 0.7 | |
almost 10 years ago | about 1 year ago | |
JavaScript | Go | |
MIT License | 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.
kal
-
Internals of Async / Await in JavaScript
It's obsolete now, but before async/await was part of JS proper I worked on a compile-to-JS language that handled this by compiling to callbacks: https://github.com/rzimmerman/kal
It included try/catch support and fancy stuff, like loops. The source may be interesting for anyone interested in compilers: https://github.com/rzimmerman/kal/blob/master/source/generat...
The Kal compiler is written in Kal, but it's supposed to be easy to read. Surprisingly the browser demo still works: http://rzimmerman.github.io/kal/demo.html
- Please Put Units in Names
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.
What are some alternatives?
NodaTime - A better date and time API for .NET
SI - A header only C++ library that provides type safety and user defined literals for physical units
phpmnd - PHP Magic Number Detector
go - The Go programming language
Squants - The Scala API for Quantities, Units of Measure and Dimensional Analysis
continuation - Delimited Continuations for JavasScript
dimensioned - Compile-time dimensional analysis for various unit systems using Rust's type system.
Unchained - A fully type safe, compile time only units library.
zen
effection - Structured concurrency and effects for JavaScript