9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Plan 9's SLOC
@ 2004-07-30 19:36 andrey mirtchovski
  2004-07-30 20:14 ` Matt Pidd-Cheshire
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: andrey mirtchovski @ 2004-07-30 19:36 UTC (permalink / raw)
  To: 9fans

someone ran 'sloccount' on CPAN to find out that it has somewhere
around 15 million lines of code (the story is on slashdot).  i decided
to give plan9's code line count a try, but since his script won't run
under ape/psh i moved /sys/src to another system and counted them
there.  the script tries to be clever about finding which files are
which, so it's sometimes confused (is there any php code, for example?).

the results are completely irrelevant and meaningless, but it's friday
so there you have it anyway...  especially "useful" to know is that
Plan 9 would take 376 person-years and cost $50 million to develop.

NB: rc scripts are reported under 'sh'


vanilla /sys/src:

SLOC	Directory	SLOC-by-Language (Sorted)
929916  cmd             ansic=907924,yacc=12832,asm=3013,cpp=2754,sh=2549,
                        lisp=405,perl=275,awk=156,php=8
148378  9               ansic=144046,asm=3680,sh=652
74652   ape             ansic=70485,asm=3219,yacc=614,sh=334
34468   fs              ansic=33960,asm=508
27433   boot            ansic=25238,asm=2195
17992   libc            ansic=15818,asm=2166,sh=8
13405   libmach         ansic=13405
11417   libsec          ansic=10781,asm=636
6774    libsunrpc       ansic=6774
5659    libdraw         ansic=5659
5516    libcontrol      ansic=5516
5474    libhtml         ansic=5474
4918    libmemdraw      ansic=4918
2781    libmp           ansic=2367,asm=414
2673    libscribble     ansic=2673
2670    libstdio        ansic=2670
2658    libventi        ansic=2658
2212    libhttpd        ansic=2212
2204    libthread       ansic=2118,asm=86
2008    libflate        ansic=2008
1843    lib9p           ansic=1843
1351    libndb          ansic=1351
1216    libauth         ansic=1216
1144    libregexp       ansic=1144
1106    libframe        ansic=1106
981     libdisk         ansic=981
842     libmemlayer     ansic=842
792     libip           ansic=792
713     libgeometry     ansic=713
691     libbio          ansic=691
659     libauthsrv      ansic=659
487     libplumb        ansic=487
479     libString       ansic=479
129     liblex          ansic=129
121     libcomplete     ansic=121
97      libbin          ansic=97
0       top_dir         (none)


Totals grouped by language (dominant language first):
ansic:      1279355 (97.23%)
asm:          15917 (1.21%)
yacc:         13446 (1.02%)
sh:            3543 (0.27%)
cpp:           2754 (0.21%)
lisp:           405 (0.03%)
perl:           275 (0.02%)
awk:            156 (0.01%)
php:              8 (0.00%)




Total Physical Source Lines of Code (SLOC)                = 1,315,859
Development Effort Estimate, Person-Years (Person-Months) = 376.88 (4,522.53)
 (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months)                         = 5.10 (61.23)
 (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule)  = 73.86
Total Estimated Cost to Develop                           = $ 50,910,979
 (average salary = $56,286/year, overhead = 2.40).
SLOCCount is Open Source Software/Free Software, licensed under the FSF GPL.
Please credit this data as "generated using David A. Wheeler's 'SLOCCount'."



/sys/src containing cvs, tex, gcc, X11 and perl:

SLOC	Directory	SLOC-by-Language (Sorted)
2733563 gnu             ansic=2167516,asm=185900,cpp=167827,exp=59878,sh=51981,
                        java=46232,yacc=30668,lisp=7055,perl=6292,fortran=4840,objc=2203,lex=1508,sed=1047,awk=313,pascal=200,csh=103
1637857 cmd             ansic=1300865,perl=215503,sh=52099,pascal=33199,
                        yacc=16203,cpp=9139,lisp=6397,asm=3864,lex=261,awk=191,sed=58,csh=47,java=23,php=8
939172  X11             ansic=882620,cpp=39378,asm=9676,sh=3402,yacc=2030,
                        objc=1291,awk=393,lex=299,sed=53,csh=30
148378  9               ansic=144046,asm=3680,sh=652
74652   ape             ansic=70485,asm=3219,yacc=614,sh=334
34468   fs              ansic=33960,asm=508
27433   boot            ansic=25238,asm=2195
17992   libc            ansic=15818,asm=2166,sh=8
13405   libmach         ansic=13405
11417   libsec          ansic=10781,asm=636
6774    libsunrpc       ansic=6774
5659    libdraw         ansic=5659
5516    libcontrol      ansic=5516
5474    libhtml         ansic=5474
4918    libmemdraw      ansic=4918
2781    libmp           ansic=2367,asm=414
2673    libscribble     ansic=2673
2658    libventi        ansic=2658
2645    libstdio        ansic=2645
2212    libhttpd        ansic=2212
2204    libthread       ansic=2118,asm=86
2008    libflate        ansic=2008
1843    lib9p           ansic=1843
1351    libndb          ansic=1351
1216    libauth         ansic=1216
1144    libregexp       ansic=1144
1106    libframe        ansic=1106
981     libdisk         ansic=981
842     libmemlayer     ansic=842
792     libip           ansic=792
713     libgeometry     ansic=713
691     libbio          ansic=691
659     libauthsrv      ansic=659
487     libplumb        ansic=487
479     libString       ansic=479
129     liblex          ansic=129
121     libcomplete     ansic=121
97      libbin          ansic=97
0       top_dir         (none)


Totals grouped by language (dominant language first):
ansic:      4722407 (82.90%)
perl:        221795 (3.89%)
cpp:         216344 (3.80%)
asm:         212344 (3.73%)
sh:          108476 (1.90%)
exp:          59878 (1.05%)
yacc:         49515 (0.87%)
java:         46255 (0.81%)
pascal:       33399 (0.59%)
lisp:         13452 (0.24%)
fortran:       4840 (0.08%)
objc:          3494 (0.06%)
lex:           2068 (0.04%)
sed:           1158 (0.02%)
awk:            897 (0.02%)
csh:            180 (0.00%)
php:              8 (0.00%)




Total Physical Source Lines of Code (SLOC)                = 5,696,510
Development Effort Estimate, Person-Years (Person-Months) = 1,755.57 (21,066.90)
 (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months)                         = 9.16 (109.88)
 (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule)  = 191.73
Total Estimated Cost to Develop                           = $ 237,154,260
 (average salary = $56,286/year, overhead = 2.40).
SLOCCount is Open Source Software/Free Software, licensed under the FSF GPL.
Please credit this data as "generated using David A. Wheeler's 'SLOCCount'."

for those interested in statistics for the Linux kernel, you can find them at:

	http://www.dwheeler.com/sloc/redhat71-v1/kernel_sloc



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Plan 9's SLOC
  2004-07-30 19:36 [9fans] Plan 9's SLOC andrey mirtchovski
@ 2004-07-30 20:14 ` Matt Pidd-Cheshire
  2004-07-30 23:46 ` geoff
  2004-08-06  4:42 ` dvd
  2 siblings, 0 replies; 6+ messages in thread
From: Matt Pidd-Cheshire @ 2004-07-30 20:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

andrey mirtchovski wrote:
> Plan 9 would take 376 person-years and cost $50 million to develop.

Wow, Rob must be *really* old.
;-)



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Plan 9's SLOC
  2004-07-30 19:36 [9fans] Plan 9's SLOC andrey mirtchovski
  2004-07-30 20:14 ` Matt Pidd-Cheshire
@ 2004-07-30 23:46 ` geoff
  2004-07-31  3:17   ` Jack Johnson
  2004-08-06  4:42 ` dvd
  2 siblings, 1 reply; 6+ messages in thread
From: geoff @ 2004-07-30 23:46 UTC (permalink / raw)
  To: 9fans

COCOMO has been deemed obsolete by its author; I wonder how the
numbers look under the COCOMO II model.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Plan 9's SLOC
  2004-07-30 23:46 ` geoff
@ 2004-07-31  3:17   ` Jack Johnson
  0 siblings, 0 replies; 6+ messages in thread
From: Jack Johnson @ 2004-07-31  3:17 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, 30 Jul 2004 16:46:22 -0700, geoff@collyer.net <geoff@collyer.net> wrote:
> COCOMO has been deemed obsolete by its author; I wonder how the
> numbers look under the COCOMO II model.

It would be interesting to get a character count as well.  Plan 9's
lines of source/shell have always seemed short compared to some other
systems.

-Jack


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Plan 9's SLOC
  2004-07-30 19:36 [9fans] Plan 9's SLOC andrey mirtchovski
  2004-07-30 20:14 ` Matt Pidd-Cheshire
  2004-07-30 23:46 ` geoff
@ 2004-08-06  4:42 ` dvd
  2004-08-06 10:33   ` vdharani
  2 siblings, 1 reply; 6+ messages in thread
From: dvd @ 2004-08-06  4:42 UTC (permalink / raw)
  To: 9fans

> the results are completely irrelevant and meaningless, but it's friday
> so there you have it anyway...  especially "useful" to know is that
> Plan 9 would take 376 person-years and cost $50 million to develop.
>

About right, isn't it?



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Plan 9's SLOC
  2004-08-06  4:42 ` dvd
@ 2004-08-06 10:33   ` vdharani
  0 siblings, 0 replies; 6+ messages in thread
From: vdharani @ 2004-08-06 10:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs; +Cc: 9fans

>> the results are completely irrelevant and meaningless, but it's friday
>> so there you have it anyway...  especially "useful" to know is that
>> Plan 9 would take 376 person-years and cost $50 million to develop.
>>
>
> About right, isn't it?

thats what i was thinking too.

dharani



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-08-06 10:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-30 19:36 [9fans] Plan 9's SLOC andrey mirtchovski
2004-07-30 20:14 ` Matt Pidd-Cheshire
2004-07-30 23:46 ` geoff
2004-07-31  3:17   ` Jack Johnson
2004-08-06  4:42 ` dvd
2004-08-06 10:33   ` vdharani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).