Skip to content
Trending storyPast story

Go 1.27 adds experimental cross-platform SIMD API for near-assembly speed

1 report1 sourceupdated 4 days ago

What happened

Summary

Go 团队在 1.26 给 amd64 试水了 SIMD 接口,1.27 又补上了 arm64(NEON)和 Wasm 的支持,还搞了一个完全可移植的 simd 包,灵感来自 C++ 的 Highway 库。简单说就是:你写一套向量运算代码,它在有 AVX、AVX2、AVX512、NEON 或 Wasm SIMD 的硬件上自动用对应的指令加速,没有 S...

Coverage

Follow the reports to see the story from different sides.

Sep 25
  1. Hacker News front page
    Go 1.27 adds experimental cross-platform SIMD API for near-assembly speed

    Go 1.26 shipped an experimental SIMD API for amd64 only. Go 1.27 adds arm64 (NEON) and wasm support, plus a fully portable simd package inspired by C++ Highway. Write once, get near-assembly performance on AVX, AVX2, AVX512, NEON, and wasm SIMD—with a competent emulation fallback on platforms without SIMD. The post says it speeds up crypto, data processing, and AI workloads, but doesn't give specific speedup numbers. Go's own Green Tea GC already uses SIMD for memory scanning.