@korin @halva makes handling simd and arrays the same*
*there is a special vector type that is treated by the compiler to do SIMD stuff with but you can easily just coerce arrays into vectors
so like it makes this code possible
(the dot inbetween the @ and the functtion name is there because fedi x.x)
const a = @.Vector(4, i32){ 1, 2, 3, 4 };
const b = @.Vector(4, i32){ 5, 6, 7, 8 };
const c = a + b;
c will then be {6, 8, 10, 12}
its doesnt just support any normal arithmetics but also supports bitwise ops, comparisons and according to my anecdotal evidence (albeit, months ago since i havent programmed in it recently), even supports calling functions calls that take the child type of the vec for the whole array
something maybe like this iirc:
var a = @.Vector(10, i32){ .....};
a = fn_that_affects_children_of_a(a)