4 ms·
Neither of those languages gives you portable SIMD. Rust is rapidly becoming the language of choice for high performance code.
by barbegal 2y ago
Neither of those languages gives you portable SIMD. Rust is rapidly becoming the language of choice for high performance code.
- npalli 2y agogoogle has a mature C++ library for portable SIMD. The original article seems to be a translation of the excellent algorithmica site which had it in C++. https://github.com/google/highway https://github.com/google/highway
- ryao 2y agoYou can do portable SIMD in GNU C/C++ using the vector extension: https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
- swiftcoder 2y agoI'm not sure that "portable" and "only works on one specific compiler vendor" are very compatible concepts
- bigpingo 2y agogcc is available on and targets more platforms than rust. So if GNU C is not considered portable you can forget about 'portable rust'.
- swiftcoder 2y agoPortability in the C and C++ worlds generally means across standard-conforming compilers, not just across platforms