The Glasgow Haskell Compiler team.
Tue, Apr 9
@nh2, what is the status of this?
Jan 25 2019
Jan 20 2019
@angerman, what is the status of this?
Nov 25 2018
Nov 8 2018
Oct 11 2018
Oct 9 2018
Besides, Cabal and ghc-pkg won't know anything about backend-specific output files: Unless you manage to stuff all the wasm32 code into the existing .o and .a files, the result wouldn't be copied to the right place.
Oct 8 2018
@luite There isn't a discussion other than the ghc-devs thread yet, I'll create a reddit thread to collect more opinions later.
Is there a discussion somewhere else (other than the ghc-devs mailing list) about this? For example I'm still not sure why for the motivating example (custom backends) you prefer plugins over hooks. Perhaps I missed it.
The Cmm pipeline has multiple stages.
It would be good to give a reason why we allow people to hook into it at the place you suggest.
@mpickering The Hsc there indicates there's a HscEnv in scope available for use.
What have you been able to implement with these extension points? The Hsc looks suspicious.
Jun 21 2018
Note for myself:
Apr 30 2018
One concern I have is that the pthread implementation of the timer, when it doesn't use timerfd() just does a usleep(), which means that it will be less accurate than the timerfd() version or the setitimer() verison, because it relies on the scheduler not descheduling the thread for long periods.
Apr 28 2018
Apr 25 2018
Jan 10 2018
I definitely support bringing in those docs somewhere (with the fix I just added to https://ghc.haskell.org/trac/ghc/ticket/10840).
Jan 9 2018
Implemented context-switching in non-threaded on non-Linux
Jan 6 2018
There's another potential issue in current GHC I just found: I wrote:
For my reference, https://ghc.haskell.org/trac/ghc/ticket/10840 is what introduced the timerfd usage and also the other uses of non-SIGVTALRM timers.
I wasn't aware that they were introduced as recently as GHC 8.2.
Dec 14 2017
Dec 13 2017
@RyanGlScott which are these other such terms?
@RyanGlScott good point — we ought to introduce Proxyfied versions of all such terms in base.
Dec 9 2017
Has there been a discussion on the Haskell libraries mailing list about this topic? We typically do not accept wholesale API additions to base without some kind of community consensus that they should be added.
Dec 8 2017
Nov 30 2017
It feels like a bit of a hack
Nov 29 2017
Nov 28 2017
Nov 27 2017
For easier testing, I have provided binary distributions of this change backported to GHC 8.0.2 here: https://github.com/nh2/ghc/releases/tag/ghc-8.0.2-bug-8684-interruptible-hWaitForInput-iohk-2017-11-26
Mostly this looks reasonable to me, thanks for doing all this! One question inline.
Nov 26 2017
Also update user's guide
TODO for myself: I need to update the user's guide section Interruptible foreign calls with the information about the newly added events.
Nov 25 2017
Updated description from commit message
Update commit message with good news
3 years after opening this, D42 is back!