
29 Mar
2009
29 Mar
'09
12:06 p.m.
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
2009/03/29 Lennart Augustsson
: ...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