Comment by dupontcyborg

2 months ago

we make extensive use of simd at work, usually through highway: https://github.com/google/highway

imo this is one of the greatest libs ever written. it handles dynamic dispatching of correct simd instructions / lane widths for various hardware with just one simd loop written (handling NEON/AVX/AVX2/AVX512/extensions) with comparable performance to handwritten native intrinsics

No, not really. Highway generates rather bad code as soon as you step outside a pretty narrow vertically-oriented scope, in my experience.

  • That is not at all my experience :) Please expand on what "vertically-oriented scope" means.