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

First class SIMD vector support is awesome. The complaint about that not being first class matrix support kind of misses the mark: it's all vectors all the way down.

This is one glaring omission from Rust. Their SIMD integration is library specific and patchwork but improving.



Out of C3, Odin and Zig, Zig is actually the language with the worst SIMD support. Odin has SIMD vectors, array programming and built in matrix types while C3 has built in SIMD vector types and operator overloading for userland numerical types such as matrix and complex types.

Odin and C3 has things like swizzling, assigning a scalar to all elements etc out of the box, whereas Zig is similar to C and just provides compiler builtins. Compare `vec * @splat(foo())` (Zig) to `vec * foo()` (Odin/C3).


Yeah I dislike Zig for all those "@()" stuff.




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

Search: