All entities who follow me or i follow, dont share all my moral, ethical, spiritual or technical opinions, it is not endorsment, if an entity i follow or follows me did something the one reading (thinks) is bad, please private message me on fedi or any private platform the one reading has access to and tell me;
ⓘ This user is a known affiliate of the terrorist organization known as AntiFa, approach with caution.
Birthday
0001-02-25
Pronouns
هي/لها (AR), She/Her && It/Its (EN), Elle (FR)
@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)