Settings

Theme

Show HN: Go-Highway – Portable SIMD for Go

github.com

29 points by kingcauchy 5 months ago · 2 comments · 1 min read

Reader

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.

epsniff 5 months ago

Good work, so helpful.

tgv 5 months ago

Looks nice.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection