News for hackers. Stuff that matters.
Re:Zig, Skia, Clojure, Geometry and the Japanese TV Show: IC... by Hoppetosse on Thursday July 15, 2021 @07:22PM (#27851244)
The @Vector provided is actually a reference to SIMD vectors and there has been discussion to rename it to something that reflects this more clearly.

https://github.com/ziglang/zig/issues/7305

Re:Zig, Skia, Clojure, Geometry and the Japanese TV Show: IC... by flohofwoe on Friday July 16, 2021 @06:10AM (#27854672)
I would love to see Clang's ext_vector_type extension features in Zig, it lets you write code like GLSL, including easy swizzling. Add the same thing for matrix types, and the the feature would be complete, no need for operator overloading:

https://www.godbolt.org/z/zWGfcY5a4

Whether this code translates to SIMD or scalar operations under the hood should depend on the target platform and compiler options.