The DARPA HPCS program has just released a cool little Perl program that does lines of code counting for many languages:

Ada, Assembly, Awk, C, C++, Eiffel, FORTRAN, Java, Lisp, Matlab, Pascal, Perl, Tcl, ZPL, shell, and make.

<http://csdl.ics.hawaii.edu/sclc.zip>

A couple of things for us (well, Mike) to consider:

1. Let's get a sensor going for this puppy! This is a great opportunity for us to support size counting for lots of languages at very little cost.

2. Let's do a comparison of LOCC vs. sclc on, say, the Hackystat system. I am curious to see how accurate sclc really is when it's counting 60 KLOC.

3. This does not make LOCC obsolete. For example, knowing things like (a) the number of methods in a class, (b) the sizes (and resulting distributions) of methods in each class/system is extremely useful information. The sclc program gives up any understanding of the internal structure of the program in order to support a lot of languages in a small amount of code. (It's not that small, actually---about 2,000 lines including comments, in a single file. This is Perl, after all :-)

Cheers,
Philip

Reply via email to