News for hackers. Stuff that matters.
Re:What Monoids teach us about software by bstamour on Wednesday September 13, 2017 @01:53PM (#15240759)
At least in C++, knowing your type forms a monoid with your operation informs you when you are safe to use various parallel algorithms. e.g. `std::accumulate` with an associative operator is safe to run in parallel.
Re:What Monoids teach us about software by Koshkin on Wednesday September 13, 2017 @02:15PM (#15241005)
I think, I've always known if my type was a monoid without knowing the word.
Re:What Monoids teach us about software by bstamour on Wednesday September 13, 2017 @03:49PM (#15241943)
It's a simple concept that appears all over in computing. I'm not surprised that that's the case.