Gwern Branwen | 5 Oct 22:29
Picon
Gravatar

Re: ANNOUNCE: SourceGraph-0.1 and Graphalyze-0.3

On 2008.10.06 02:53:43 +1000, Ivan Miljenovic <ivan.miljenovic <at> gmail.com> scribbled 1.1K characters:
> I've now uploaded my SourceGraph program to Hackage [1].  It's rather
> simple at the moment, but if you pass in the .cabal file as a
> parameter (e.g. run it as "SourceGraph Foo.cabal"), it will create in
> the same directory as the .cabal file a Directory called "SourceGraph"
> that contains an html report of some basic graph-theoretic analysis of
> your code.
>
> The output format isn't ideal, but it should serve it's purpose for
> now (I'll fix it up and actually make it usable once my Thesis has
> been handed in).  What I'd appreciate if people could try it out and
> tell me if there's any code, etc. that it can't parse.  At the moment,
> it ignores all Data-based functions (e.g. class and instance
> declarations as well as record functions) and only looks at
> "stand-alone" functions (i.e. normal functions).
>
> SourceGraph requires version 0.3 of my Graphalyze library (version 0.2
> added the reports in, but had some bugs that 0.3 fixes).
>
> [1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/SourceGraph
>
> --
> Ivan Lazar Miljenovic

SourceGraph looks pretty interesting. I don't think the output is that bad, though. (If anyone is curious,
attached is a tarball of what SourceGraph generates for XMonad.)

But I do have one or two problems:
1) Didn't mention that it uses some executable 'dot', which Graphviz provides.
2) Fails on XMonadContrib? While SourceGraph on XMonad finished in 1 or 2 seconds, SourceGraph
xmonad-contrib.cabal has been running at 99% CPU (only one CPU - I wonder if it could be parallelized) now
for something over 3 hours. I know XMC is a bigger codebase than XM, but it's not thousands of times bigger! :)

--
gwern
Chicago ICE NSWG DSD 5926 RSA Chicago UFO MITM Lindows
Attachment (xmonad-sourcegraph.tar): application/x-tar, 4220 KiB
_______________________________________________
Haskell mailing list
Haskell <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Gmane