logoalt Hacker News

e4m2today at 2:42 PM1 replyview on HN

Zig vectors do not necessarily force data into SIMD registers; a scalar implementation would work equally well. This is not just a theoretical argument, because Zig code that uses `@Vector` also has to compile for architectures that do not have SIMD instructions.

That being said, the parent commenter is actually referring to other recent proposals as opposed to existing `@Vector` functionality:

https://codeberg.org/ziglang/zig/issues/32032

https://codeberg.org/ziglang/zig/issues/35376


Replies

nvme0n1p1today at 4:41 PM

Interesting, so zig might have both "vectors" and "vecs"? I guess naming is another thing to fix before 1.0 <g>