← Back to context

Comment by ktimespi

5 hours ago

The biggest barrier I faced learning SIMD is the weird naming convention for intrinsics.

Once I got past that, it was fairly simple. mcyoung's articles were also super helpful

One of my favourite articles is "SIMD-friendly algorithms for substring searching" by Wojciech Muła [2]. If you were unfamiliar with SIMD and just jumped into the code, it'd be incomprehensible due to the intrinsics, but the generic algorithm description at the top is pretty simple if you take some time understand it.

It blew my mind once I understood what was happening, because it's quite clever but one of those "I could've thought of that" algorithms. There was some pretty good discussion on it last year (feat. ripgrep). [2]

1. https://news.ycombinator.com/item?id=44274001