upvote
Besides the usual C and C++, we have Java, .NET, D, Zig, Julia, Swift, Rust.

So yeah, also appreciate having Go in the group instead of manually having to write Assembly.

However not many languages adopt ways to manually write SIMD, because most of us have no idea how to write good SIMD code in first place, I surely don't.

reply
You probably weren't looking for a tutorial about SIMD, but just in case you were interested, Mitchell [0] did one recently that got on HN [1]

[0] Mitchell Hashimoto: "Everyone Should Know SIMD" https://mitchellh.com/writing/everyone-should-know-simd

[1] https://news.ycombinator.com/item?id=49010648

reply
Thanks, pretty much appreciated, always worth at least to skim through.
reply
I definitely was so... thanks!
reply
Even with languages that adopt ways to manually write SIMD, it’s mostly left to library maintainers rather than application developers.

I work for a C++ timeseries database startup that leverages SIMD about as much as we possibly can, and except for some extremely rare places we just use libraries.

reply
Yeah, that is what I have heard from some NVidia folks as well, like Bryce Adelstein, use the libraries as much as possible, and leave the kernels for experts.

However even then, it depends on how the libraries API surface looks like.

reply
With AI I'm pretty sure SIMD will be easier to integrate when necessary.
reply
But it’s not necessary at all, the whole point is that these utility libraries bring you more elegant code that work on all platforms without having to pollute your codebase with SIMD intrinsics.

Unless this was tongue in cheek, because this is in fact a problem with AI that it degrades your codebase in these types of ways.

reply
In 2026 if you are not doing A with AI you are doing it wrong /s
reply
With AI, I expect it to eventually be good enough for us to finally have 5 GLs, so it won't really matter.

"CGO 2022 Keynote: Compiler 2.0"

https://www.youtube.com/watch?v=w_sX9aZoZxg

reply
Vectorizing computations has been Matlabs secret sauce.
reply
Does matlab these days do stuff like JIT operator fusing to avoid memory roundtrips and take advantage of FMAs?
reply
Yes: https://www.mathworks.com/help/fixedpoint/ref/half.fma.html

I'm grateful that Go a non-proprietary language offers these features.

reply
Julia does that too.
reply