[Haskell-cafe] forLoop + strict State monad is much faster than foldl'

Joachim Breitner mail at joachim-breitner.de
Wed Apr 30 14:34:18 UTC 2014


Hi,

Am Mittwoch, den 30.04.2014, 15:13 +0100 schrieb Niklas Hambüchen:
> For performance-critical code, it seems sensible for me to stick to my
> `forLoop` for now, as it works quite well with the existing GHCs and
> much less brain seems to be necessary to get that compile down to fast
> code.

I agree. I think one big problem is that RULES (e.g. list fusion) are
great when they work, but it is very hard for the “normal” Haskell
programmer to confirm that they work as expected, let alone predict when
they work. I don’t have a good solution, though.

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0xF0FBF51F
  Debian Developer: nomeata at debian.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140430/0f17ea89/attachment.sig>


More information about the Haskell-Cafe mailing list