On Tue, Mar 20, 2012 at 2:53 AM, Florian Hartwig
<florian.j.hartwig@gmail.com> wrote:
Looks like they rely on thread-local storage, which would have to be worked around in Haskell somehow.
I've just read the paper and they look both useful and interesting to
implement. Adam mentioned that GHC would need to be extended first,
and I can't really judge how much work that would be. Can anyone chime
in on how feasible that is?
In particular I think you need:
casMutArray# :: MutableArray# s a -> Int# -> a -> a -> State# s -> (# State# s, Int#, a #)
casWord16MutByteArray :: MutableByteArray# s -> Int# -> Word# -> Word# -> State# s -> (# State# s, Int#, Word#)
and equivalents for Word32. Word64, Int16, Int32, Int64.
G
--
Gregory Collins <greg@gregorycollins.net>