<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>A quick googling discovered
<a class="moz-txt-link-freetext" href="https://githubnext.com/projects/repo-visualization">https://githubnext.com/projects/repo-visualization</a>, which has some
of the desired features. :)</p>
<p>(CC'ing the author and team mentioned in the article, too.)<br>
</p>
<p>Has:</p>
<p>* very visual<br>
* subdirectory breakdown<br>
* filetype breakdown</p>
<p>Doesn't have:</p>
<p>* Separating code from comments<br>
* History is listed under "future work"<br>
* Drop-in support for gitlab (it's presented as a GitHub Action)<br>
</p>
<p>The article has an interactive widget you can point at a repo. I
pointed it at ghc/ghc, and although my browser is still churning
ten minutes later, here's a preview. It's pretty cool!<br>
</p>
<p><img src="cid:part1.X9F1qMgX.5JgwrR0h@haskell.foundation" alt=""></p>
<p><br>
</p>
<div class="moz-cite-prefix">On 14/06/2022 16:20, Hécate wrote:<br>
</div>
<blockquote type="cite"
cite="mid:b0396be1-392c-f07b-7f73-206593fa8a21@glitchbra.in">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>I'm taking the liberty of forwarding this to Bryan, as he's in
a unique position to help on this front. :) <br>
</p>
<div class="moz-cite-prefix">Le 14/06/2022 à 16:18, Simon Peyton
Jones a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAJKmMz_74=oyiTaQy3NzitYVTogxQ793y6DCHJZQYdLgfmujEg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr">
<div class="gmail_default"
style="font-family:tahoma,sans-serif">Thanks Hecate. I used
your figures in my talk. Really helpful.</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"> A note to all
ghc-devs: it's be lovely to have a regularly-updated summary
visualisation of GHC's source code:</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">
<ul>
<li>Separating code from comments</li>
<li>Broken up by sub-directory</li>
<li>As visual as possible</li>
<li>Ideally with some kind of historical time-line ability</li>
</ul>
<div>This can't be new. Zillions of GitHub repositories
could be visualised like this. There must be prior art;
probably a lot of it. Can we just press a button and get
it?<br>
</div>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">Simon<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, 10 Jun 2022 at
17:45, Hécate <<a href="mailto:hecate@glitchbra.in"
moz-do-not-send="true" class="moz-txt-link-freetext">hecate@glitchbra.in</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<p>If you don't have a nix shell handy, here is what I'm
getting:<br>
<font face="monospace"><br>
❯ cloc compiler rts driver <br>
1148 text files.<br>
1137 unique
files. <br>
108 files ignored.<br>
<br>
<a href="http://github.com/AlDanial/cloc"
target="_blank" moz-do-not-send="true">github.com/AlDanial/cloc</a>
v 1.88 T=1.31 s (794.3 files/s, 431269.4 lines/s)<br>
---------------------------------------------------------------------------------------<br>
Language files
blank comment code<br>
---------------------------------------------------------------------------------------<br>
Haskell 635
68541 140216 231567<br>
C 158
10529 16953 51162<br>
C/C++ Header 209
4329 8984 14536<br>
yacc 2
971 10 5024<br>
Logos 3
530 0 3642<br>
Pascal 1
661 936 2312<br>
make 14
252 409 850<br>
Windows Module Definition 7
27 0 489<br>
Assembly 5
76 269 478<br>
Puppet 1
106 0 445<br>
Python 1
32 19 162<br>
D 1
16 42 60<br>
YAML
1 6 10 18<br>
Lisp
1 2 4 7<br>
Windows Resource File
1 0 0 1<br>
---------------------------------------------------------------------------------------<br>
SUM: 1040
86078 167852 310753<br>
---------------------------------------------------------------------------------------</font><br>
</p>
<div>Le 10/06/2022 à 18:29, chessai a écrit :<br>
</div>
<blockquote type="cite">
<div dir="auto">You might be able to do something with
cloc and a shell script for a rough estimate.
<div dir="auto"><br>
</div>
<div dir="auto">```</div>
<div dir="auto">$ cd ghc</div>
<div dir="auto">$ nix-shell -p clock --run "cloc ."</div>
<div dir="auto">```</div>
<div dir="auto"><br>
</div>
<div dir="auto">will output a detailed report of the
loc and language breakdown of the top level ghc
directory (it is comment-aware and aware of many
languages). there might be a way to get cloc or a
similar tool to output something more inspect able
(eg json), and then use a shell script to gather
everything from the appropriate directories/files. </div>
<div dir="auto"><br>
</div>
<div dir="auto">I suspect something could be hacked up
in less than a day, but it would require a bit of
research. Hopefully this is helpful and gets you
going - I'd be happy to hear of better solutions.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jun 10,
2022, 11:20 Simon Peyton Jones <<a
href="mailto:simon.peytonjones@gmail.com"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">simon.peytonjones@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_default"
style="font-family:tahoma,sans-serif">Dear GHC
devs<br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">Is it
possible to get a "lines-of-code" summary of GHC
these days? Like the one below, from 2011. <br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">It needs
more than `wc` because it's helpful to split
lines of code from lines of comments and notes.</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">We used to
have `count_lines` but I'm not sure whether it
is still extant. <br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">I'm giving
a talk at Zurihac on Sunday morning, about the
internals of GHC. Any data before then,
preferably in a form comparable to that below,
would be terrific.</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">But you
have a lot else to do. This isn't do-or-die,
just nice to have.<br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">Thanks</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">Simon<br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif"><img
src="cid:part2.fiRM08Nl.0PWu0DVX@haskell.foundation"
alt="image.png" class="" width="525"
height="542"><br>
<br>
</div>
</div>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org"
rel="noreferrer" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">ghc-devs@haskell.org</a><br>
<a
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
ghc-devs mailing list
<a href="mailto:ghc-devs@haskell.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">ghc-devs@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
</blockquote>
<pre cols="72">--
Hécate ✨
🐦: @TechnoEmpress
IRC: Hecate
WWW: <a href="https://glitchbra.in" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://glitchbra.in</a>
RUN: BSD</pre>
</div>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">ghc-devs@haskell.org</a><br>
<a
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Hécate ✨
🐦: @TechnoEmpress
IRC: Hecate
WWW: <a class="moz-txt-link-freetext" href="https://glitchbra.in" moz-do-not-send="true">https://glitchbra.in</a>
RUN: BSD</pre>
</blockquote>
</body>
</html>