SLOC in Squeak History

Marcus Denker marcus at
Tue May 11 07:58:05 UTC 2004

Am 11.05.2004 um 02:29 schrieb michael.cole at

> Hi all,
> I have been looking at software evolution and the diffusion of Squeak
> into the world. Like other large free and open source software 
> projects,
> Squeak appears to violate the 'laws' of software evolution re: growth 
> in
> code. I'd like to compare apples to apples, however, and the 
> traditional
> apple variety is SLOC (software lines of code).
> So, I want to write a method that will count the SLOC in each version 
> of
> squeak. My question is what object am I seeking to enumerate? It 
> doesn't
> seem to be Message.

There is ClassDescription>>linesOfCode

The comment says:

"An approximate measure of lines of code.
  Includes comments, but excludes blank lines."

In my latest 3.7a:

  Smalltalk allClasses inject: 0 into: [:sum :each | sum + each 

--> 260018

Of course, LOC makes not that much sense as a metric.


Marcus Denker denker at

More information about the Squeak-dev mailing list