Posts
-
Closed boundaries within a tolerance in a Go geometry library
Build a float rectangle from two corners and ask whether it contains them. With exact comparison, 63% of the time it does not.
-
What generics over number types cost in Go
A one-line generic method costs four times its hand-written twin, because the inliner prices a branch the compiler deletes later. Profile-guided optimization takes all of it back.
-
Go libraries for 2D games: geometry, hexagon and grid
Three open-source Go libraries for 2D games, geometry, hexagon and grid, take one task on one map: what a unit sees and how it reaches its goal, each at its own level.