I’m content to follow Simon’s recommendation.
The proposal says
I propose to replace the primops that produce product-encoded sums with ones that produce proper unboxed sums.
And it is nicer to have primops that are more explicit about their types, but of course GHC’s ultimate representation of an unboxed sum is precisely the same as the current primop’s one. So this
is purely an ergonomic improvement, and one that will be felt only by a small constituency. So the costs of the current setup are not heavy.
It’s a good proposal to have on file, in case it becomes more pressing some day.
Simon
From: ghc-steering-committee <ghc-steering-committee-bounces@haskell.org>
On Behalf Of Simon Marlow
Sent: 08 March 2021 15:52
To: Joachim Breitner <mail@joachim-breitner.de>
Cc: ghc-steering-committee@haskell.org
Subject: [ghc-steering-committee] Recommendation: reject #367 (was: Re: Please review #367: Clarify primops using unboxed sums, Shepherd: Simon Marlow)
Committee,
Proposal #367 suggests using unboxed sums for the results of 7 (seven) primops that use sum types but currently have to encode those explicitly using `Int#`.
The proposal is arguably the right thing, however I'm suggesting we reject it for the following reasons:
Thoughts?
Simon
On Sun, 4 Oct 2020 at 22:14, Joachim Breitner <mail@joachim-breitner.de> wrote:
Dear Committee,
this is your secretary speaking:
Clarify primops using unboxed sum
has been proposed by David Feuer
https://github.com/ghc-proposals/ghc-proposals/pull/367
https://github.com/treeowl/ghc-proposals/blob/unboxed-sum-primops/proposals/0000-unboxed-sum-primops.md
I’ll propose Simon Marlow as the shepherd.
Please guide us to a conclusion as outlined in
https://github.com/ghc-proposals/ghc-proposals#committee-process
Thanks,
Joachim
--
Joachim Breitner
mail@joachim-breitner.de
http://www.joachim-breitner.de/
_______________________________________________
ghc-steering-committee mailing list
ghc-steering-committee@haskell.org
https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee