<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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>
        github.com/AlDanial/cloc 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 class="moz-cite-prefix">Le 10/06/2022 à 18:29, chessai a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD34_k+sZ73XOmvJF6_yPNKiTYBY_QCz4MW8+QAUr3eiKzdpTA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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"
            moz-do-not-send="true" class="moz-txt-link-freetext">simon.peytonjones@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;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:part1.P4bXH2Me.bMiggdOL@glitchbra.in"
                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" target="_blank"
            rel="noreferrer" 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 class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ghc-devs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Hécate ✨
🐦: @TechnoEmpress
IRC: Hecate
WWW: <a class="moz-txt-link-freetext" href="https://glitchbra.in">https://glitchbra.in</a>
RUN: BSD</pre>
  </body>
</html>