Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A magic shared with C, Fortran and C++ compilers, among others, so support is there.


Compiled autovectorization is miles more reliable than JIT autovectorization.


At the other hand, the explicit Vector API will use the correct "flavor" of SIMD instructions on the platform and will gracefully fall back to non-simd version if it is not supported. And as far as I know, the SIMD story is quite bad with C.


Yes it's quite bad with C. With C++ and Rust it's much much better when you do it properly.


When you do it properly is the big question.


It's pretty good in C with assembly, inline or not. SIMD usually involves a lot of aliasing violations and intrinsics have weird hard to read names, so I find assembly easier to deal with than C here.




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

Search: