[racket-dev] relative lines of C in gracket vs. gracket2

From: John Clements (clements at brinckerhoff.org)
Date: Thu Oct 28 13:48:43 EDT 2010

I took a look at the size of our C code base (all files ending in .c, .h, .cpp, and .cxx, not including those with 'xsrc' in the path) to see how much smaller gracket2 is, and (assuming I didn't miss something major) the difference is truly impressive.  The below is ... | wc | sort -n | tail, so it's just the 9 biggest and the total from each.

So, if I'm reading this correctly, we've gone from ~590K lines of C to about ~340K lines of C. That's amazing.

John



From the new sources:

    7116   20871  225191 ./racket/src/syntax.c
    7446   14377  191528 ./srpersist/srpersist.cxx
    8404   22017  233781 ./racket/src/thread.c
    9132   24942  230277 ./racket/src/port.c
    9521   28117  292983 ./racket/src/stxobj.c
    9833   28680  299212 ./racket/src/fun.c
   10537   29862  338042 ./racket/src/module.c
   13084   38652  399523 ./racket/src/eval.c
   14760   44802  472205 ./racket/src/jit.c
  339186 1075545 10140107 total


From the the old sources:

    7116   20871  225191 ./racket/src/syntax.c
    7446   14377  191528 ./srpersist/srpersist.cxx
    8380   21961  233205 ./racket/src/thread.c
    9123   24924  230059 ./racket/src/port.c
    9521   28117  292983 ./racket/src/stxobj.c
    9833   28680  299212 ./racket/src/fun.c
   10537   29862  338042 ./racket/src/module.c
   13084   38652  399523 ./racket/src/eval.c
   14760   44802  472205 ./racket/src/jit.c
  590018 1939014 17723116 total

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20101028/4d99a2bb/attachment.p7s>

Posted on the dev mailing list.