dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
5 stars 1 forks source link

Don't divide by constants. Multiply by magic numbers #343

Closed dplassgit closed 1 week ago

dplassgit commented 2 weeks ago

See https://ridiculousfish.com/blog/posts/labor-of-division-episode-i.html for the algorithm, ish.

dplassgit commented 1 week ago

I'm never going to do this, even though it's kind of cool.