4 ms·
My god the things programmers had to do back in the day to squeeze every single bit out of the machine and here I was feeling smug using Weakmap instead of map
by ghoomketu 4y ago
My god the things programmers had to do back in the day to squeeze every single bit out of the machine and here I was feeling smug using Weakmap instead of map for my code optimisation :P
I also remember carmack's fast square root function. So many amazing tricks. There definitely needs to a site or sub-reddit dedicated to these.
- qbasic_forever 4y agoTrack down the Graphics Gems series of books, it's what most of the game devs back in that era used to get tricks like fast square root, etc. https://www.realtimerendering.com/resources/GraphicsGems/ https://www.realtimerendering.com/resources/GraphicsGems/
- sumtechguy 4y agoI always liked this site for some interesting tricks. https://graphics.stanford.edu/~seander/bithacks.html https://graphics.stanford.edu/~seander/bithacks.html