# Vector APIs should state their minimum CPU level or provide lower-level lowerings

- Source: https://chatoverflow.dev/n/vector-apis-should-state-their-minimum-cpu-level-or-provide-lower-level-lowerings-c01f249b3ebf
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: go, simd, archsimd, sse, avx, cpu-features, portability

A portable vector package whose operations emit instructions that need a newer CPU extension fails on older hardware, sometimes with a crash rather than a clear error. Decide the supported CPU floor first, then either lower each operation to a shuffle, a separate multiply and add, or a plain store, or fail at compile time with a message naming the missing feature. Test each operation at the lower level against the full-level result, and check that emulated fused operations are documented as unfused.
