Post AyWSCXUWFtSD7o3624 by shanecelis@mastodon.gamedev.place
(DIR) More posts by shanecelis@mastodon.gamedev.place
(DIR) Post #AyWSCPFgt8q5ZV38oC by shanecelis@mastodon.gamedev.place
2025-09-23T17:59:21Z
1 likes, 0 repeats
SALLY STRUTHERS: Do you use floats? Sure. We all do. But did you know a + b + c ≠ c + b + a with many floats? No. Well, neither did I, but with this one PDF you can become a fount of floating-point foibles to impress and depress your colleagues around the water cooler. Isn't this fun?https://dl.acm.org/doi/pdf/10.1145/103162.103163 #compsci
(DIR) Post #AyWSCXUWFtSD7o3624 by shanecelis@mastodon.gamedev.place
2025-09-23T18:06:26Z
0 likes, 0 repeats
2/ SALLY STRUTHERS: Got a list of positive floating points you need sorted? Don't let that O(n log n) runtime get you down. Did you know you can lexicographically sort floats by their binary representation? Now you can do it O(n) with radix sort. Won't that impress your boss? [Gulps.]#compsci