5 ms·
C++ does OK. Google's highway [1] Microsoft DirectXMath [2] [1] https://github.com/google/highway https://github.com/google/highway [2] https://github.com/m
by npalli 2y ago
C++ does OK.
Google's highway [1]
Microsoft DirectXMath [2]
[1] https://github.com/google/highway https://github.com/google/highway
[2] https://github.com/microsoft/DirectXMath https://github.com/microsoft/DirectXMath
- vmchale 2y agoFrom highway: > Does what you expect: Highway is a C++ library with carefully-chosen functions that map well to CPU instructions without extensive compiler transformations. The resulting code is more predictable and robust to code changes/compiler updates than autovectorization. So C compilers are not a good place to start if one wants to write a compiler for an array language (which naturally expresses SIMD calculations). Which is what I point out in the last paragraph of the blog post: > To some extent this percolates compilers textbooks. Array languages naturally express SIMD calculations; perhaps there are more fluent methods for compilation (and better data structures for export à la object files).
- pjmlp 2y agoIt is more like, ISO C++ with compiler extensions does ok.