Re: `dump-core` a prettier GHC core viewer

2017-01-12 Thread Sylvain Henry
Hi, 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 :-) A few weeks ago I worked on a similar tool. I have just uploaded a demo:

Re: `dump-core` a prettier GHC core viewer

2017-01-12 Thread Iavor Diatchki
Hello, 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

Re: `dump-core` a prettier GHC core viewer

2017-01-12 Thread Joachim Breitner
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

Re: `dump-core` a prettier GHC core viewer

2017-01-12 Thread Iavor Diatchki
Hello, sorry about the link mix-up, the second one was supposed to be a link to the GitHub: https://github.com/yav/dump-core/ The README.md, which is rendered on GitHub, has instructions on how to use the plugin, and I just updated it with some more information on how to use the rendered HTML.

RE: `dump-core` a prettier GHC core viewer

2017-01-12 Thread Simon Peyton Jones via ghc-devs
Iavor Sounds good…but there are no instructions on what it does, screen shots, why one might want it, how to install, how to use… Both URLs below are the same Simon From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of Iavor Diatchki Sent: 12 January 2017 18:36 To: Haskell Cafe

Re: ANN: `dump-core` a prettier GHC core viewer

2017-01-12 Thread Eric Seidel
Hi Iavor, This sounds like a great idea, but it's not clear from the package description *how* the output is improved over -ddump-simpl. An example of the html output would be a great addition! Thanks! Eric On Thu, Jan 12, 2017, at 10:36, Iavor Diatchki wrote: > Hello, > > Over the holidays I

Re: [Haskell-cafe] ANN: `dump-core` a prettier GHC core viewer

2017-01-12 Thread Ben Gamari
On January 12, 2017 1:36:12 PM EST, Iavor Diatchki wrote: >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

ANN: `dump-core` a prettier GHC core viewer

2017-01-12 Thread Iavor Diatchki
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

Re: Inlining Wiki Page

2017-01-12 Thread Gabor Greif
Hello Tim! I had a pet inlining ticket, which exposes some frivolous blowup: https://ghc.haskell.org/trac/ghc/ticket/8901 It has been closed because nobody really knows how to proceed. Anyway, I have just got the latest stats (appending to the ticket too) $ ls -l

Re: many haskell's mails are detected as spam on gmail

2017-01-12 Thread Alain O'Dea
My late reply on this is related to losing masses of ghc-devs emails to Spam on Google Inbox. I've been manually selecting and moving them to my Haskell label. Apparently this is how Google Inbox does the "not spam" interaction. This is pretty annoying. They also label lost of shibboleth-users