`dump-core` a prettier GHC core viewer

Iavor Diatchki iavor.diatchki at gmail.com
Thu Jan 12 23:30:27 UTC 2017


not really, the plugin does not do anything clever---it simply walks over
the GHC core and renders whatever it deems necessary to JSON.  The only
extra bits it does is to make the unique names globally unique (I thought
GHC already did that, but apparently not, perhaps that happens during

I was thinking of trying to do something like this across compilations
(i.e., where you keep a history of all the files to compare how your
changes to the source affected the core), but it hadn't occurred to me to
try to do it for each phase.  Please file a ticket, or even better if you
have the time please feel free to hack on it.  I was just finding myself
staring at a lot of core, and wanted something a little easier to read, but
with all/most of the information still available.

It would be awesome to have a more clever tool that helps further with
these sorts of low level optimizations---at present I find it to be a
rather unpleasant task and so avoid it when I can :-)


On Thu, Jan 12, 2017 at 2:58 PM, Joachim Breitner <mail at joachim-breitner.de>

> Hi,
> Am Donnerstag, den 12.01.2017, 14:18 -0800 schrieb Iavor Diatchki:
> > http://yav.github.io/dump-core/example-output/Galua.OpcodeInterpreter
> > .html
> this is amazing! It should in no way sound diminishing if I say that I
> always wanted to create something like that (and I am sure I am not the
> online one who will say that :-)).
> Can your tool step forward and backward between dumps from different
> phases, correlating the corresponding entries?
> Thanks,
> Joachim
> --
> Joachim “nomeata” Breitner
>   mail at joachim-breitner.dehttps://www.joachim-breitner.de/
>   XMPP: nomeata at joachim-breitner.de • OpenPGP-Key: 0xF0FBF51F
>   Debian Developer: nomeata at debian.org
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20170112/4028ffad/attachment.html>

More information about the ghc-devs mailing list