← Back to archive

Stdle #38 · simd · 2026-07-14

What does this Zig snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

const std = @import("std");
pub fn main() void {
const v: @Vector(4, i32) = .{ 5, 10, 15, 20 };
const r = @reduce(.Add, v);
std.debug.print("{d}\n", .{r});
}
SIMD
4 attempts left

Answer & explanation