Complementary library to firefly-go and tinymath containing math utilities not found in the other packages.
Contains tools like ffrand, a reimplementation of the Go math/rand
that is built upon the firefly.GetRandom()
function instead.
The ffmath package contains utility functions, and are using generics
extensively. Mostly as an experiment on generics usage, and because it's fun :)
I have compared the compiled output with non-generic variants to confirm
that the generic ones does not cause any regressions, even though they use
quirky hacks like switch x := any(a).(type)
go get github.com/applejag/firefly-go-mathThis project conforms to the REUSE standard. Different parts of the code base use different licenses.
In general: