C++26 Shipped a SIMD Library Nobody Asked For

(lucisqr.substack.com)

4 points | by ibobev 5 hours ago

1 comments

  • mwkaufma 4 hours ago
    Jumped out at me, after reading similar int32 promotion woes in bitfields yesterday (https://news.ycombinator.com/item?id=47469945):

       Integer promotion still breaks everything. int8_t + int8_t produces int32_t in C++. This is one of the oldest pain points for SIMD programmers working with image data, where 8-bit and 16-bit arithmetic dominates. std::simd inherits this problem because it’s a library on top of the language, not a fix to the language. Writing a pixel blending operation with std::simd<uint8_t> means fighting integer promotion at every step.