Weekly Shaarli
Week 21 (May 22, 2023)
A guide on how to create a network namespace, bind interfaces, set routes, and run programs in it.
An article on dithering techniques.
Nice visualization of dynamic math. Attractors, vector fields, fractal, flocking, and more.
A really innovative way to store exact floating point numbers:
- for "safe numbers" (numbers whose value can be expressed precisely in floating point), store them as is
- for non-"safe numbers", store two safe numbers as denominator and nominator.
There is a lot of this method comparing to the other alternatives:
- BigDecimal: a lot faster than arbitrary precision BigDecimal
- Rational: denom and nom deoesn't blow up to extremely large numbers
And it is also faster and uses less space.