2 ms·
> the function calls make it crystal clear that something non-trivial is happening under the hood. Well, it makes it crystal clear that something non-trivial m
by creata 6y ago
> the function calls make it crystal clear that something non-trivial is happening under the hood.
Well, it makes it crystal clear that something non-trivial may be happening under the hood. If I have a vector type which is implemented using SIMD intrinsics, I'd still call its addition operation "trivial", even if it hasn't been blessed by the language as such.
- hansvm 6y agoThe point that we only know something non-trivial _may_ be happening is definitely fair :) I'll leave the original comment as-is since you've already responded. While we're nit-picking, a wide vector type implemented with SIMD intrinsics would still have a non-trivial addition as far as Zig is concerned; your specific example really only holds for sufficiently primitive vectors.