[Haskell-cafe] Re: Arrows and Haskell

Remi Turk rturk at science.uva.nl
Sun Nov 7 13:46:52 EST 2004


On Sat, Nov 06, 2004 at 11:49:45PM +0100, Peter Simons wrote:
> Plus, powerful abstractions that make the code look simple
> and elegant _always_ come at a price. An Arrow-based stream
> processor that performs the same task as my monadic BlockIO
> library does, for instance, results in a module that has
> half the size the StateT version does. Which is cool. But it
> is, as of now, also 10 times slower than the monadic version
> is. Which is not cool at all.

That's indeed a rather high cost. Although I suspect that a lot
more effort has gone into optimizing Monads than into optimizing
Arrows...

Cheers,
Remi

-- 
Nobody can be exactly like me. Even I have trouble doing it.


More information about the Haskell-Cafe mailing list