←back to thread

170 points judicious | 1 comments | | HN request time: 0s | source
Show context
rmnclmnt ◴[] No.45406426[source]
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

replies(1): >>45409116 #
kccqzy ◴[] No.45409116[source]
It 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.
replies(1): >>45411675 #
1. rmnclmnt ◴[] No.45411675[source]
Yeah 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)