[Haskell-cafe] ANN: `dump-core` a prettier GHC core viewer
Simon Jakobi
simon.jakobi at googlemail.com
Fri Jan 13 05:41:37 UTC 2017
Wow, this looks great!
Do you think you could write a very short tutorial on how to use this
plugin in a stack project? A good example project might be Chris
Done's "xeno" which raised a lot of interest in generating fast Core:
https://www.reddit.com/r/haskell/comments/5ng8ov/fast_haskell_competing_with_c_at_parsing_xml/
Regarding the example output at
http://yav.github.io/dump-core/example-output/Galua.OpcodeInterpreter.html:
Is it intended that the variables in "$wsetStackSize" are (nearly) all
named "ww"? I think it would be more readable if I didn't have to
hover the cursor over a variable to tell which is which.
Lastly, could you please include the README in the extra-source-files,
so it's rendered on Hackage?
Thanks,
Simon
2017-01-12 19:36 GMT+01:00 Iavor Diatchki <iavor.diatchki at gmail.com>:
> Hello,
>
> Over the holidays I wrote a small GHC plugin to help me do some low-level
> optimizations of Haskell code. I thought it might be of use to other people
> too, so please try it out!
>
> When enabled, the plugin will save the Core generated by GHC in JSON format,
> and also render it in HTML for human inspection.
>
> The plugin is available on Hackage:
> http://hackage.haskell.org/package/dump-core
>
> The instructions on how to use it are in the README file.
> You may also read about it at the github page:
> http://hackage.haskell.org/package/dump-core
>
> There are many things that could probably be improved, just let me know.
> Also, if you are good at design, I could use some help making things look
> prettier :)
>
> Happy hacking,
> -Iavor
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
More information about the Haskell-Cafe
mailing list