Re: Running GHC in GHCi

2021-10-28 Thread Matthew Pickering
Looks good Ben. Would it be good to add a target to hadrian which builds just the right dependencies for this to work? and then deals with setting options such as -B as well. Matt On Thu, Oct 28, 2021 at 5:26 AM Bryan Richter wrote: > > That's very exciting! > > On Thu, 28 Oct 2021, 3.08 Ben

Re: Running GHC in GHCi

2021-10-27 Thread Bryan Richter
That's very exciting! On Thu, 28 Oct 2021, 3.08 Ben Gamari, wrote: > Ben Gamari writes: > > > Hi all, > > > > Today I verified that with Luite's recent work on the interpreter it is > > now possible to run GHC entirely within GHCi (when bootstrapping from > > GHC 9.2). > > > > ... > > > I have

Re: Running GHC in GHCi

2021-10-27 Thread Ben Gamari
Ben Gamari writes: > Hi all, > > Today I verified that with Luite's recent work on the interpreter it is > now possible to run GHC entirely within GHCi (when bootstrapping from > GHC 9.2). > > ... > I have fixed the break-array issue noted in the above message in !6848. It is now possible to

Running GHC in GHCi

2021-10-27 Thread Ben Gamari
Hi all, Today I verified that with Luite's recent work on the interpreter it is now possible to run GHC entirely within GHCi (when bootstrapping from GHC 9.2). Behold: ``` $ # First we must remove -fno-code from hadrian/ghci $ git apply

Re: Scripts merged for easily loading and running GHC in GHCi, for fast development iterations

2018-08-08 Thread Brandon Allbery
If you're working on e.g. ARM, you may not have a lot of say in how much RAM you can put into it. On Wed, Aug 8, 2018 at 6:54 PM Michael Sloan wrote: > Good point, I have added a note about it to the wiki page. Surprising > that it would be hard to kill. Do you have swap setup? > > For me it

Re: Scripts merged for easily loading and running GHC in GHCi, for fast development iterations

2018-08-08 Thread Michael Sloan
Good point, I have added a note about it to the wiki page. Surprising that it would be hard to kill. Do you have swap setup? For me it takes ~2.7GB initially and 3.5GB after the first reload. In the past I've seen it get all the way up to 9GB so there may be some memory leakage. I have 40GB

Re: Scripts merged for easily loading and running GHC in GHCi, for fast development iterations

2018-08-08 Thread Matthew Pickering
In practice, how much memory does this use? I find that with 4gb of memory that it is unusable and hard to kill. Perhaps we should add some sort of warning to the page about this. Cheers Matt On Wed, Aug 8, 2018 at 11:12 PM, Michael Sloan wrote: > Now that [D5015] is merged (thanks,

Re: Scripts merged for easily loading and running GHC in GHCi, for fast development iterations

2018-08-08 Thread Michael Sloan
Now that [D5015] is merged (thanks, monoidal!), -fobject-code no longer needs to be provided manually. This also means that you can run [ghcid] directly in the root of the repo without any arguments. I have updated https://ghc.haskell.org/trac/ghc/wiki/Building/InGhci to use the simpler

Re: Scripts merged for easily loading and running GHC in GHCi, for fast development iterations

2018-08-06 Thread Michael Sloan
Thanks a bunch for updating the wiki page, Artem! It was on my todo list, but it's been a rather busy week. I've added an update mentioning that it will be possible to run "ghcid" directly without args once D5105 is merged. On Mon, Aug 6, 2018 at 12:55 AM, Artem Pelenitsyn wrote: > I added

Re: Scripts merged for easily loading and running GHC in GHCi, for fast development iterations

2018-08-06 Thread Artem Pelenitsyn
I added this to the wiki. It would be nice to have a wrapper similar to `run.sh` but for starting ghcid, I believe. -- Best wishes, Artem On Sun, 29 Jul 2018 at 10:41 Matthew Pickering wrote: > Can you please update the wiki page? > > https://ghc.haskell.org/trac/ghc/wiki/Building/InGhci > >

Re: Scripts merged for easily loading and running GHC in GHCi, for fast development iterations

2018-07-29 Thread Matthew Pickering
Can you please update the wiki page? https://ghc.haskell.org/trac/ghc/wiki/Building/InGhci Matt On Sun, Jul 29, 2018 at 6:18 AM, Michael Sloan wrote: > Hello GHC developers! > > Now that D4904 and D4986 are merged, if you have recently built GHC > then you can use "./utils/ghc-in-ghci/run.sh

Scripts merged for easily loading and running GHC in GHCi, for fast development iterations

2018-07-28 Thread Michael Sloan
Hello GHC developers! Now that D4904 and D4986 are merged, if you have recently built GHC then you can use "./utils/ghc-in-ghci/run.sh -fobject-code" to load GHC into GHCi (throwing on a "-j8" helps too). For me, this makes development far more pleasant, as often I can make a change and try it