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
1
u/[deleted] Jan 25 '26
I would be inclined to agree, actually. In my view, in 2026, a standard library's main purpose is to provide access to things that users can't implement in the language itself (like primitive types and intrinsic functions), as well as the bare bones necessities that virtually every program will use (like a dynamic array type, an allocator, etc.)
The "batteries included" standard library model, in my opinion, is outdated. Any additional functionality is one package manager command away.