# Go-Highway – Portable SIMD for Go

Go 1.26 adds native SIMD via GOEXPERIMENT=simd. This library provides a portability layer so the same code runs on AVX2, AVX-512, or falls back to scalar. Inspired by Google's Highway C++ library. Includes vectorized math (exp, log, sin, tanh, sigmoid, erf) since those come up a lot in ML/scientifi…

- **Page:** https://magpie.gallery/i/go-highway-portable-simd-for-go-63tf
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Tags:** go, simd, performance, math, portability

## Source

Web · kingcauchy: Go-Highway – Portable SIMD for Go

- **Original:** https://news.ycombinator.com/item?id=46470342

> Go 1.26 adds native SIMD via GOEXPERIMENT=simd. This library provides a portability layer so the same code runs on AVX2, AVX-512, or falls back to scalar. Inspired by Google's Highway C++ library. Includes vectorized math (exp, log, sin, tanh, sigmoid, erf) since those come up a lot in ML/scientific code and the stdlib doesn't have SIMD versions. algo.SigmoidTransform(input, output) Requires go1.26rc1. Feedback welcome. https://github.com/ajroetker/go-highway

## GitHub projects

- https://github.com/ajroetker/go-highway

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
