For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | pehringer's commentsregister

I should have added some examples in the docs / repo :( checkout the benchmark code at the bottom of this file for an example: https://github.com/pehringer/simd/blob/main/simd_test.go


Thank you for the explanation! That makes a lot more sense :)


I think the Go std lib is focused on portability over raw performance


And ironically loses out to Java and .NET in raw performance, because language author's bias.

In this case specifically, SIMD is available, via compiler supported auto-vectorization, and intrisics, no need to go down into Assembly.


If you want to see some Plan9 in the std library check out the math package!

https://github.com/golang/go/tree/master/src/math


Plan 9 has nothing to do with assembly language nor the variant Go uses. See other comments in this thread.

It would be like calling the AT&T style of assembly used by GNU binutils a "Linux"


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You