3 ms·
Great article, triggers some memories. When you get to think about branchless programming, especially for SIMD optimizations in the real world, you always lear
by rmnclmnt 1y ago
Great article, triggers some memories.
When you get to think about branchless programming, especially for SIMD optimizations in the real world, you always learn a lot and it’s as if you get a +1 level on your algorithmic skills. The hardest part then is make sure the tricks are clearly laidout so that someone else can take it from here next time
- kccqzy 1y agoIt also triggered some memories for me too. A college professor wanted to teach all the bit manipulating stuff and gave an assignment where students had to transform branchy code into branchless code using shifts and bit operators. Had a lot of fun doing that.
- rmnclmnt 1y agoYeah this is the kind of thinking opening up new heights when you get it! These type of exercises should be mandatory for all compute intensive related jobs, especially for all data science people (i know some of them know this stuff but that does not seem to be the majority)