On 12/01/2012 18:37, Johan Tibell wrote:
On Thu, Jan 12, 2012 at 10:25 AM, Simon Marlow wrote:
I think by (1) you mean mutable variables containing unboxed values, right?
Yes.
I normally use an unboxed array of length 1 for these. There's not much
overhead - only an extra word in the heap
On Thu, Jan 12, 2012 at 10:25 AM, Simon Marlow wrote:
> I think by (1) you mean mutable variables containing unboxed values, right?
Yes.
> I normally use an unboxed array of length 1 for these. There's not much
> overhead - only an extra word in the heap compared to implementing them
> natively
emoving
it from the Windows installs any time soon.
In a recent project (http://hackage.haskell.org/package/ekg) I found
myself wanting unboxed mutable integers with CAS semantics (to
implement simple counters). What would be required to support
(1) unboxed mutable variables, and
(2) CAS sem
ing
> it from the Windows installs any time soon.
In a recent project (http://hackage.haskell.org/package/ekg) I found
myself wanting unboxed mutable integers with CAS semantics (to
implement simple counters). What would be required to support
(1) unboxed mutable variables, and
(2) CAS sema