HNHacker News
TopNewBestAskShowJobs

random4726427

4 karma · joined March 13, 2022

submissionscomments
random4726427··on S2: Computational geometry and spatial indexing on the sphere
S2 cell IDs are usually uint64, so the Ruby version looks wrong. If you cast that int64 to uint64 you get the same value as the python version.

Level 1 IDs look like large random numbers in decimal, but when viewed in binary they have many trailing zeros, that are used to truncate to make the tokens.