Just to keep you all up to date... I'm adding the primops in question and validating the individual commits before putting them here:
The basic idea for using these extensions is:
- the atomic-primops library will work in 7.6 or 7.7+. It will use ifdefs to decide whether to use its own primops or GHC-builtin
- future versions will simply get faster, as Carter replaces out-of-line primops that *also* use C calls, with inline primops / LLVM equivalents
Shall I stick a patch on a ticket, or will someone volunteer to pull? What's the protocol for requesting commit access anyway? (By the way, can someone share the reason that pull-requests to the github ghc mirror are such a no-no? They seem no worse than a patch in an email which the big
warning sign recommends.)
Best,
-Ryan
P.S. FYI, I'm periodically getting these:
0 caused framework failures
0 unexpected passes
1 unexpected failures
Unexpected failures:
perf/compiler T1969 [stat not good enough] (normal)
Can that just be because of running on a loaded machine? How narrow are these windows?