Re: ghci and unfoldings?

2016-01-17 Thread Conal Elliott
Thanks for the suggestion. That flag doesn't appear to help. Still no unfolding info. On Sun, Jan 17, 2016 at 10:37 PM, Edward Z. Yang wrote: > Does passing -fobject-code solve your problem? > > Edward > > Excerpts from Conal Elliott's message of 2016-01-17 22:18:49 -0800: > >

Re: ghci and unfoldings?

2016-01-17 Thread Conal Elliott
Oh! I spoke too soon. Yes, that flag does seem to make unfoldings available. Thanks! Now more experimentation. Thanks again! -- Conal On Sun, Jan 17, 2016 at 10:45 PM, Conal Elliott wrote: > Thanks for the suggestion. That flag doesn't appear to help. Still no > unfolding

Re: ghci and unfoldings?

2016-01-17 Thread Edward Z. Yang
Does passing -fobject-code solve your problem? Edward Excerpts from Conal Elliott's message of 2016-01-17 22:18:49 -0800: > Hi Brandon. Thanks for the reply. I’m not sure that it addresses what I was > trying to ask. GHCi *does* invoke plugins and even reloads those plugins > dynamically when

Plugin from ghci REPL?

2016-01-17 Thread Conal Elliott
Is it possible to have GHC plugins get invoked from the ghci *REPL* (in addition to loaded source modules)? I'm doing some monomorphization-based transformation, and currently I write scads of trivial monomorphic specialization definitions like > sumt6 = sum :: Tree 6 Int -> Int I'd instead love

Re: ghci and unfoldings?

2016-01-17 Thread Conal Elliott
Hi Brandon. Thanks for the reply. I’m not sure that it addresses what I was trying to ask. GHCi *does* invoke plugins and even reloads those plugins dynamically when their source code changes. So in this sense ghci does enable optimization, even if it doesn’t perform much optimization on its own.

Re: Multiple GHC sessions

2016-01-17 Thread Ben Gamari
Alan & Kim Zimmerman writes: > At the moment there are issues with having multiple GHC API sessions > in a single executable, which boil down to GHC having global > variables. > > A quick grep over the GHC sources shows the following instances > >

Trac internal error

2016-01-17 Thread Edward Z. Yang
When I posted the (attached) POST request to newticket, I got the following error. It did correctly add the ticket to the database. I've elided the form token from this. Trac detected an internal error: AttributeError: 'NoneType' object has no attribute 'split' Here's the contents of

ghci and unfoldings?

2016-01-17 Thread Conal Elliott
I'm developing a GHC plugin (using HERMIT), and I'd like to use ghci to speed up development. I'm able to do so, except that my plugin critically needs access to unfoldings, which appear to be unavailable in ghci. A little experimenting with ghc shows me that "-O" is the key, but "-O" is

Re: ghci and unfoldings?

2016-01-17 Thread Brandon Allbery
On Sun, Jan 17, 2016 at 9:40 PM, Conal Elliott wrote: > I'm developing a GHC plugin (using HERMIT), and I'd like to use ghci to > speed up development. I'm able to do so, except that my plugin critically > needs access to unfoldings, which appear to be unavailable in ghci. A >

Multiple GHC sessions

2016-01-17 Thread Alan & Kim Zimmerman
At the moment there are issues with having multiple GHC API sessions in a single executable, which boil down to GHC having global variables. A quick grep over the GHC sources shows the following instances compiler/ghci/Linker.hs:90:GLOBAL_VAR_M(v_PersistentLinkerState, ...

Re: Multiple GHC sessions

2016-01-17 Thread Bartosz Nitka
>From https://ghc.haskell.org/trac/ghc/wiki/RemoteGHCi: "We can have multiple instances of a GHC Session on the GHC API, each running TH and/or interpreted code. Right now this is not possible because the linker's state is global." Regards, Bartosz 2016-01-17 14:49 GMT+00:00 Alan & Kim Zimmerman

Re: Multiple GHC sessions

2016-01-17 Thread Alan & Kim Zimmerman
Yes, but this solution is bypassing the problem by using remote execution. My question is what could be done to make the remote execution unnecessary, i.e addressing the "Right now" part. Alan On Sun, Jan 17, 2016 at 4:58 PM, Bartosz Nitka wrote: > From

Re: Phab failing to apply patches

2016-01-17 Thread Jan Stolarek
Can we somehow force Phab to apply a patch against a base commit from which the patch was created? Current setting does not seem very useful - it will probably force me to rebase my patches once a week or so. That will be very painful. Janek Dnia piątek, 15 stycznia 2016, Thomas Miedema