3 ms·
It still blows my mind that people have to define Vec3 and Vec4 types. These should be native to modern programming languages as should Vec2. Modern CPUs have v
by phkahler 10y ago
It still blows my mind that people have to define Vec3 and Vec4 types. These should be native to modern programming languages as should Vec2. Modern CPUs have vector registers that can support these sizes and GCC has intrinsics for them that can be passed by value (even returned from a function IIRC), added and subtracted or multiplied by a scaler, and yet no language that I'm aware of has them as built-in types.
Vectors are not just for parallel computations, these small sized ones deserve to be a proper data type.
- tgb 10y agoYou're not aware of OpenCL, GLSL, or CUDA then!