Platform-Independent SIMD in Go
The Go team has introduced a new experimental package called 'syscall/js' that provides platform-independent SIMD (Single Instruction, Multiple Data) operations. SIMD operations allow a single instruction to perform operations on multiple data elements in parallel, improving performance in certain types of computations. The 'syscall/js' package is designed to work on all platforms supported by the Go programming language, including Windows, macOS, and Linux. It uses JavaScript to implement SIMD operations, allowing it to be used in browser environments as well as on the Go runtime. The package currently supports operations on 32-bit and 64-bit integers and floating-point numbers, as well as operations on vectors of integers and floating-point numbers. The Go team plans to continue developing and refining the package based on user feedback and testing.
Read the full article at go.dev →