Proposals Unofficial Go proposal tracker

Graduate simd and simd/archsimd out of GOEXPERIMENT

#83009 · simd, simd/archsimd · medium impact · Likely accept ·

Go 1.26 added AMD64 SIMD intrinsics in simd/archsimd, and Go 1.27 added ARM64 NEON, WebAssembly, and a portable, vector-size-agnostic simd package (78902). All of these were available only under GOEXPERIMENT=simd. This proposal makes a large subset of both packages generally available on AMD64 (AVX, AVX2, AVX-512), ARM64 NEON, and WebAssembly, with a software fallback for simd on other platforms. It includes only operations covered by an executable pure-Go specification, which defines their exact semantics.

The portable simd package picks a vector size at startup based on the CPU, so callers never check CPU features. simd.VectorBits() and simd.Emulated() report the choice, and GODEBUG=simd=0 (emulate) or simd=128/256/512 (at most this size) overrides it. With archsimd, callers check features themselves, e.g. archsimd.X86.AVX2(), which compiles on every architecture. Calling an operation the CPU doesn't support may crash with an illegal instruction. Vectors and masks support == and !=, and ToArch/FromArch convert between the two packages.

// Portable: the vector width is chosen at startup.
var acc simd.Float32s
n := acc.Len()
for i := 0; i+n <= len(a); i += n {
    acc = acc.Add(simd.LoadFloat32s(a[i:]))
}
total := acc.ReduceSum()

// Architecture-specific: check the CPU feature first.
if archsimd.X86.AVX2() {
    x := archsimd.LoadFloat32x8(a)
    y := archsimd.LoadFloat32x8(b)
    x.Add(y).Store(dst)
}

The stable API moves to a new simdstable experiment that will be enabled by default, while new and deprecated APIs stay under GOEXPERIMENT=simd. For one release, GOEXPERIMENT=nosimdstable turns SIMD support off entirely. On WebAssembly, importing either package requires an engine with SIMD128. ARM64 SVE is not part of this proposal.

Proposal
#83009 by aclements
Status
Likely accept on Nov 18, 2026
Impact
medium
Area
simd, simd/archsimd