News for hackers. Stuff that matters.
Re:Using Monads in C++ to Solve Constraints: 1. The List Monad by bitL on Tuesday May 12, 2015 @04:05AM (#9530161)
There is a set of simple patterns/recipes most people use in Haskell that corresponds to their kind of math intuition Haskell seems to support. It doesn't have anything to do with efficiency though, for that you need to be an expert and you still won't be 100% sure the compiler really optimizes the execution the way you intended.
Re:Using Monads in C++ to Solve Constraints: 1. The List Monad by codygman on Tuesday May 12, 2015 @09:22AM (#9531516)
> you still won't be 100% sure the compiler really optimizes the execution the way you intended.

You can be sure if you read the generated Core and/or assembly code.

Re:Using Monads in C++ to Solve Constraints: 1. The List Monad by TheLoneWolfling on Tuesday May 12, 2015 @09:38AM (#9531624)
And if you're willing to do that on every upgrade of the compiler or anything that may affect the compiler's exact execution path.
Re:Using Monads in C++ to Solve Constraints: 1. The List Monad by codygman on Tuesday May 12, 2015 @11:17AM (#9532366)
Performance regressions in GHC are taken seriously as far as I've seen. It's not that big of a deal since you should test/profile your program on any compiler upgrade.

If you see any regressions, just post it to the ghc mailing list and it will probably be solved for you since it's much needed regression feedback/data.

Re:Using Monads in C++ to Solve Constraints: 1. The List Monad by TheLoneWolfling on Tuesday May 12, 2015 @12:44PM (#9533006)
That's good to know. Though I will note that I don't use Haskell. (Haven't had the time to properly learn it, and keep getting frustrated by minor things when I try to dabble with it.)

That being said, I used to think that about Java as well - and then the whole substring thing happened.