---
title: "Platform-independent SIMD in Go"
description: "Go 1.27 adds an experimental, size-agnostic `simd` package, loosely modeled on Highway for C++."
url: "https://swe.quest/articles/platform-independent-simd-in-go-f8d408cca35d2358"
canonical: "https://go.dev/blog/simd-experiment"
source: "The Go Blog"
published: "2026-09-24"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 18
tags: ["go","performance","hardware","compilers","api-design"]
---

# Platform-independent SIMD in Go

A post on [The Go Blog](https://swe.quest/sources/go.md), published 2026-09-24, 18 min read, Deep dive. Original: [https://go.dev/blog/simd-experiment](https://go.dev/blog/simd-experiment)

## Summary

Go 1.27 adds an experimental, size-agnostic \`simd\` package, loosely modeled on Highway for C++. It hides differences in vector width, masking schemes and instruction sets across AVX/AVX2/AVX512, NEON and wasm, and falls back to emulation on platforms without SIMD support. Vector types such as \`simd.Float32s\` have no fixed length; they load from and store to slices and expose only operations in the cross-platform intersection, with gaps filled by emulation. When an operation is missing, code can drop into the architecture-specific \`archsimd\` package via \`ToArch()\`/\`FromArch\`, and the compiler specializes away the type switch, as shown with a lookup-table popcount implementation for AVX/AVX2.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Go](https://swe.quest/tags/go.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)

## Prerequisites

- SIMD vector instructions
- Go build tags ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- CPU feature detection ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

Go 1.27, simd, archsimd, AVX512, NEON, SVE, WebAssembly SIMD, Highway

## Related posts

- [Arch-specific SIMD in Go](https://swe.quest/articles/arch-specific-simd-in-go-2992a831c4663686.md): The Go Blog · 2026-10-02 · Hard · 11 min read · Go, Performance engineering, Compilers, Hardware, WebAssembly
  Go 1.27 extends the experimental architecture-specific SIMD API (simd/archsimd, enabled with GOEXPERIMENT=simd) from amd64 to arm64 NEON and wasm 128-bit SIMD.
- [fearless\_simd v0.6 brings AVX-512 and ways to disable it](https://swe.quest/articles/fearless-simd-v0-6-brings-avx-512-and-ways-to-disable-it-dbb91beeb5d3bf00.md): Linebender · 2026-07-11 · Medium · 4 min read · Rust, Performance engineering, Hardware, Compilers
  fearless\_simd v0.6 adds AVX-512 support for all operations, including safe invocation of AVX-512 intrinsics through the kernel! macro.
- [fearless\_simd v0.7: 64-bit integers, improved generics, SSE2, and upcoming v1.0](https://swe.quest/articles/fearless-simd-v0-7-64-bit-integers-improved-generics-sse2-and-upcoming-v1-0-ff362065b8979b5e.md): Linebender · 2026-08-12 · Medium · 5 min read · Rust, Performance engineering, Hardware, Build systems
  fearless\_simd v0.7 adds u64/i64 vector types, completing integer and float type coverage, plus dynamic byte shuffles via swizzle\_dyn, wrapping/saturating widen-narrow conversions, and element shift/rotate helpers.
- [SIMD Matters](https://swe.quest/articles/simd-matters-f3febffdc470bd02.md): Box2D · 2024-08-19 · Hard · 8 min read · Performance engineering, Games, Algorithms, C & C++, Hardware
  Box2D 3.0 solves contact constraints with SIMD by using greedy graph coloring to group constraints so no body appears twice within a color.
- [Fearless SIMD v1.0 is here](https://swe.quest/articles/fearless-simd-v1-0-is-here-423b1f4fe64019b8.md): Linebender · 2026-09-22 · Easy · 4 min read · Rust, Performance engineering, Memory safety, Open source
  Fearless SIMD v1.0 is a Rust crate for SIMD with no ad-hoc unsafe code.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
