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.