Well, yes and no. GHC actually does a decent job when given very imperative code with references and mutable arrays. Now the type I use to wrap the references to get type safe l-values and r-values makes it tricker, and ghc lacks a crucial optimization for specialization of constructor returns. With that in place I think the code could be quite performant.
-- Lennart On Sun, Mar 29, 2009 at 3:13 PM, Jason Dusek <jason.du...@gmail.com> wrote: > 2009/03/29 Lennart Augustsson <lenn...@augustsson.net>: >> ...GHC lacks certain optimizations to make efficient code when >> using CMonad, so instead of C speed you get low speed. > > Is this surprising to anyone? > > -- > Jason Dusek > _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell