Re:Let's remove Quaternions from every 3D Engine
by z3t4 on Saturday November 03, 2018 @06:03AM
(#18369468)
In high level programming, the code is for humans, the optimized compiler output is for the computer.
[ Parent
| on HN ]
Re:Let's remove Quaternions from every 3D Engine
by gruez on Saturday November 03, 2018 @10:24AM
(#18370270)
you're greatly overestimating how much the compiler can optimize code.
Re:Let's remove Quaternions from every 3D Engine
by z3t4 on Saturday November 03, 2018 @05:06PM
(#18372488)
You need to be a pretty good assembler programmer in order to beat the optimizer already. Maybe in the future, with the help of "AI" the computer can do what we want, instead of what we tell it.
Re:Let's remove Quaternions from every 3D Engine
by JochemK on Saturday November 03, 2018 @05:29PM
(#18372577)
If you call .sort() which implements bogo-sort, any programmar will be able to write a better sorting algorithm in assembly. I doubt any "AI" will be able to restructure your high-level bogo-sort into an efficient algorithm.
Re:Let's remove Quaternions from every 3D Engine
by Const-me on Saturday November 03, 2018 @05:48PM
(#18372666)
I'm not especially good assembly programmer but I beat the optimizer every day, in some cases by an order of magnitude. Even best compilers suck at automatic vectorization.
Re:Let's remove Quaternions from every 3D Engine
by MaxBarraclough on Saturday November 03, 2018 @11:37AM
(#18370688)
But the article is about 3D graphics programming, which is often performance-sensitive.