r/ProgrammingLanguages • u/Luroqa • Jan 24 '26
Discussion Why don't any programming languages have vec3, mat4 or quaternions built in?
Shader languages always do, and they are just heaven to work with. And tasty tasty swizzles, vector.xz = color.rb it's just lovely. Not needing any libraries or operator overloading you know? Are there any big reasons?
110
Upvotes
View all comments
Show parent comment
2
u/slicxx Jan 24 '26
You got a very strong point with SSE/AVX, so the reason might just be legacy for many languages nowadays, but it still makes sense for some hard typed languages to focus on the minimum.
Interesting discussion, now i wonder where the limits are and why we aren't pushing further in this direction, especially since a lot of things can be hidden from the user anyways or rather aggressive, maybe be compiled out if it isn't necessary.