[ghc-steering-committee] Replace atomicModifyMutVar# (#149), recommendation: accept

Joachim Breitner mail at joachim-breitner.de
Wed Jul 11 12:38:21 UTC 2018


Hi,

I see clear agreement, accepted!

Joachim

Am Mittwoch, den 04.07.2018, 10:19 +0100 schrieb Simon Marlow:
> https://github.com/ghc-proposals/ghc-proposals/pull/149
> 
> This proposal is essentially an optimisation to the atomicModifyMutVar# primitive. I won't repeat the details here, but it amounts to moving one of the thunks produced by atomicModifyMutVar# out of the primop and into the atomicModifyIORef wrapper. The advantage is that in the case of the strict version of the wrapper, atomicModifyIORef', this extra thunk is eliminated entirely, rather than being created by the primop and then immediately evaluated by the wrapper.
> 
> I propose we accept the proposal to add the new primop in section 2.1, along with the straightforward additions proposed in sections 2.2 and 2.3. (the old primop will be removed, but can be defined in GHC.Exts  as a wrapper around the new primop for backwards compat)
> 
> However, the additions to the Data.IORef library should be considered by the libraries committee separately. (there are naming issues to be resolved in particular).
> 
> Cheers
> Simon
> _______________________________________________
> ghc-steering-committee mailing list
> ghc-steering-committee at haskell.org
> https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee
-- 
Joachim Breitner
  mail at joachim-breitner.de
  http://www.joachim-breitner.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://mail.haskell.org/pipermail/ghc-steering-committee/attachments/20180711/dd7509b2/attachment.sig>


More information about the ghc-steering-committee mailing list