What does HackerNews think of simde?

Implementations of SIMD instruction sets for systems which don't natively support them.

Language: C

I note that SIMDe doesn't have RISC-V vector support yet (but it does support Loongson LoongArch):

https://github.com/simd-everywhere/simde/

There are still a ton of things to do to get the Debian riscv64 port going too:

https://wiki.debian.org/PortsDocs/New https://wiki.debian.org/Ports/riscv64

> low level code that can run on multiple hardware architectures

I thought SIMD Everywhere was a pretty interesting project for that, lets you write x86 SSE/AVX code and run it on non-x86 architectures:

https://github.com/simd-everywhere/simde

> architecture-specific features such as SSE/AVX which is not portable.

I don’t have hands-on experience, but somewhere on HN I saw this: https://github.com/simd-everywhere/simde If starting a new cross-platform project today, I would try that library first, before doing the usual intrinsics.

If you can recompile but the code was written to only target AVX-512 you can use https://github.com/simd-everywhere/simde to near effortlessly map the intrinsics to AVX2 (or lower).