C++26 Shipped a SIMD Library Nobody Asked For
The C++26 standard, finalized in early 2026, includes a SIMD (Single Instruction, Multiple Data) library that provides portable abstractions for vectorized operations. The library, proposed as P1928, introduces types like `std::simd` and `std::simd_mask` along with operations for arithmetic, logical, and memory access. While some developers question the need for yet another library, proponents argue it simplifies writing high-performance code across different hardware (e.g., SSE, AVX, NEON). The library is header-only and requires compiler support; GCC and Clang have already implemented experimental versions. A concrete consequence is that code using `std::simd` will be more portable but may incur overhead compared to hand-tuned intrinsics.
Standardized SIMD may boost portable high-performance computing but risks bloating the language.