News for hackers. Stuff that matters.
Re:Quaternions: A Practical Guide by westoncb on Monday August 15, 2022 @07:23PM (#32476900)
Quaternions are the monads of graphics programming.
Re:Quaternions: A Practical Guide by boppo1 on Monday August 15, 2022 @10:40PM (#32478657)
Monads?
Re:Quaternions: A Practical Guide by westoncb on Monday August 15, 2022 @11:20PM (#32478846)
It’s a mathematical abstraction a lot of people feel they need to understand (‘cause of its connection to some programming language theory stuff, and practical use within Haskell notably), so there are a million tutorials where someone is purportedly, finally, going to make the concept clear.
Re:Quaternions: A Practical Guide by eternityforest on Tuesday August 16, 2022 @03:18AM (#32480088)
I think somewhere I actually did find one that made it clear. But I don't remember anything about it at all.

I just vaguely remember them as something super abstract, that you can work through with about the same effort as a sudoku puzzle, but you have to go actually learn Haskell to understand why you'd want one.

Then they say something about function composition, but it seems like have to already be a functional expert to know why you would care about composing functions in a consistent way instead of just calling them from a new function.

Re:Quaternions: A Practical Guide by eloisius on Tuesday August 16, 2022 @12:59AM (#32479360)
Monoids in the category of endofunctors, what are you daft?
Re:Quaternions: A Practical Guide by boppo1 on Tuesday August 16, 2022 @04:11PM (#32488188)
Hahaha apparently so.
Re:Quaternions: A Practical Guide by Akronymus on Tuesday August 16, 2022 @04:25AM (#32480500)
https://www.youtube.com/watch?v=ENo_B8CZNRQ I think this is a pretty good, concise explanation.