[9fans] lies, damn lies and kloc. - Plan9

This is a discussion on [9fans] lies, damn lies and kloc. - Plan9 ; according the the reference below, c# has more types (39509) than 8c+8l has lines of code: ; wc -l /sys/src/cmd/^(cc 8c 8l)^/*.[ch]|grep total 28619 total perhaps it would be more fair to compare /sys/include. but that's got less than 8kloc. ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: [9fans] lies, damn lies and kloc.

  1. [9fans] lies, damn lies and kloc.

    according the the reference below, c# has more types (39509)
    than 8c+8l has lines of code:

    ; wc -l /sys/src/cmd/^(cc 8c 8l)^/*.[ch]|grep total
    28619 total

    perhaps it would be more fair to compare /sys/include. but
    that's got less than 8kloc.

    ironicly titled reference:
    http://codebetter.com/blogs/patricks...framework.aspx

    i think rob may have recalled a more enlightened era when
    he called oo the roman numerals of computing.

    - erik


  2. Re: [9fans] lies, damn lies and kloc.

    is this a cry for help or have you looked at any of the code?

    having fun yet?

    brucee

    On Wed, Mar 19, 2008 at 3:26 PM, erik quanstrom wrote:
    > according the the reference below, c# has more types (39509)
    > than 8c+8l has lines of code:
    >
    > ; wc -l /sys/src/cmd/^(cc 8c 8l)^/*.[ch]|grep total
    > 28619 total
    >
    > perhaps it would be more fair to compare /sys/include. but
    > that's got less than 8kloc.
    >
    > ironicly titled reference:
    > http://codebetter.com/blogs/patricks...framework.aspx
    >
    > i think rob may have recalled a more enlightened era when
    > he called oo the roman numerals of computing.
    >
    > - erik
    >
    >



  3. Re: [9fans] lies, damn lies and kloc.

    You've also forgotten the yacc file in cc. It still doesn't topple
    the chart:

    ; wc -l /sys/src/cmd/^(cc 8c 8l)^/*.[chy]|grep total
    29908 total

    What should be compared is a C++ compiler and the associated
    libraries. Especially in C++0x! :-P

    What is the total of all the compilers, assemblers, and linkers put
    together?

    ; wc -l /sys/src/cmd/^(?c ?l ?a)^/*.[chyl] /sys/src/cmd/cc/lexbody |
    grep total
    143174 total

    lexbody is used by the assemblers.

    On Mar 19, 2008, at 12:26 AM, erik quanstrom wrote:

    > according the the reference below, c# has more types (39509)
    > than 8c+8l has lines of code:
    >
    > ; wc -l /sys/src/cmd/^(cc 8c 8l)^/*.[ch]|grep total
    > 28619 total
    >
    > perhaps it would be more fair to compare /sys/include. but
    > that's got less than 8kloc.


    ; wc -l /sys/include/*.h | grep total
    7871 total

    >
    > ironicly titled reference:
    > http://codebetter.com/blogs/patricks...ve/2008/03/18/
    > number-of-types-in-the-net-framework.aspx
    >
    > i think rob may have recalled a more enlightened era when
    > he called oo the roman numerals of computing.
    >
    > - erik
    >




+ Reply to Thread