On Sun, Oct 28, 2007 at 01:43:07PM -0700, Don Stewart wrote:
> stefanor:
> > IO blocks unboxing in GHC.  How fast is your mock-C code refactored to
> > do IO outside of the loops only?
> 
> It doesn't! The above code yields:
> 
>     Main.$wloop :: GHC.Prim.Int#
>                    -> GHC.Prim.State# GHC.Prim.RealWorld
>                    -> (# GHC.Prim.State# GHC.Prim.RealWorld, () #)
> 
>     $wgo_rMK :: GHC.Prim.Int# -> GHC.Prim.Int# -> GHC.Prim.Int# -> 
> GHC.Prim.Int#
>         where
>             $s$wgo_rMI :: GHC.Prim.Int# -> GHC.Prim.Int# -> GHC.Prim.Int#

Ah, interesting.  I was reading something too general from
http://hackage.haskell.org/trac/ghc/ticket/1592#comment:5.

Stefan

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to