Thread: Lines of code in PG 8.0 & 8.1?

Lines of code in PG 8.0 & 8.1?

From
Rafael Martinez
Date:
Hello

I am preparing a presentation about PostgreSQL and I need some help.

I have found some information [1] about the lines of code the different
versions (until 7.4) of PostgreSQL have, but I can not find numbers for
version 8.0 and 8.1.

This is what I have:
1996: 6.0 - 178K
1997: 6.[12] - 225K
1998: 6.[34] - 297K
1999: 6.5 - 331K
2000: 7.0 - 383K
2001: 7.1 - 410K
2002: 7.[23] - 453K
2003: 7.4 -  508K

I could find out the numbers for 8.0 and 8.1 myself if I know the
'rules' used to find out the number of lines in the other versions. Has
anyone this information?

Thanks in advance.

[1] http://candle.pha.pa.us/ - PostgreSQL: Past, Present, and Future
(Bruce Momjian)

--
Rafael Martinez, <r.m.guerrero@usit.uio.no>
Center for Information Technology Services
University of Oslo, Norway

PGP Public Key: http://folk.uio.no/rafael/

Attachment

Re: Lines of code in PG 8.0 & 8.1?

From
"Jim C. Nasby"
Date:
Try searching -hackers; I believe it's been discussed there.

On Thu, Sep 22, 2005 at 06:53:06PM +0200, Rafael Martinez wrote:
> Hello
>
> I am preparing a presentation about PostgreSQL and I need some help.
>
> I have found some information [1] about the lines of code the different
> versions (until 7.4) of PostgreSQL have, but I can not find numbers for
> version 8.0 and 8.1.
>
> This is what I have:
> 1996: 6.0 - 178K
> 1997: 6.[12] - 225K
> 1998: 6.[34] - 297K
> 1999: 6.5 - 331K
> 2000: 7.0 - 383K
> 2001: 7.1 - 410K
> 2002: 7.[23] - 453K
> 2003: 7.4 -  508K
>
> I could find out the numbers for 8.0 and 8.1 myself if I know the
> 'rules' used to find out the number of lines in the other versions. Has
> anyone this information?
>
> Thanks in advance.
>
> [1] http://candle.pha.pa.us/ - PostgreSQL: Past, Present, and Future
> (Bruce Momjian)
>
> --
> Rafael Martinez, <r.m.guerrero@usit.uio.no>
> Center for Information Technology Services
> University of Oslo, Norway
>
> PGP Public Key: http://folk.uio.no/rafael/



--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

Re: Lines of code in PG 8.0 & 8.1?

From
Bruce Momjian
Date:
For 8.1beta2 I get:

    684533

and for 8.0.X I get:

    648130

I used:

    # This script is used to compute the total number of "C" lines in the release
    # This should be run from the top of the CVS tree after a 'make distclean'
    find . -name '*.[chyl]' | xargs cat| wc -l

I added this script to src/tools so we will have it for consistency.
This shows a 5% increase in code size from 8.0.X and 8.1.X, which is
consistent with previous releases, except for 8.0, which was a huge
jump.

---------------------------------------------------------------------------

Rafael Martinez wrote:
-- Start of PGP signed section.
> Hello
>
> I am preparing a presentation about PostgreSQL and I need some help.
>
> I have found some information [1] about the lines of code the different
> versions (until 7.4) of PostgreSQL have, but I can not find numbers for
> version 8.0 and 8.1.
>
> This is what I have:
> 1996: 6.0 - 178K
> 1997: 6.[12] - 225K
> 1998: 6.[34] - 297K
> 1999: 6.5 - 331K
> 2000: 7.0 - 383K
> 2001: 7.1 - 410K
> 2002: 7.[23] - 453K
> 2003: 7.4 -  508K
>
> I could find out the numbers for 8.0 and 8.1 myself if I know the
> 'rules' used to find out the number of lines in the other versions. Has
> anyone this information?
>
> Thanks in advance.
>
> [1] http://candle.pha.pa.us/ - PostgreSQL: Past, Present, and Future
> (Bruce Momjian)
>
> --
> Rafael Martinez, <r.m.guerrero@usit.uio.no>
> Center for Information Technology Services
> University of Oslo, Norway
>
> PGP Public Key: http://folk.uio.no/rafael/
-- End of PGP section, PGP failed!

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: Lines of code in PG 8.0 & 8.1?

From
"Jim C. Nasby"
Date:
Is there some reasonable way to get that to not include comments?

On Thu, Sep 22, 2005 at 06:04:55PM -0400, Bruce Momjian wrote:
>
> For 8.1beta2 I get:
>
>     684533
>
> and for 8.0.X I get:
>
>     648130
>
> I used:
>
>     # This script is used to compute the total number of "C" lines in the release
>     # This should be run from the top of the CVS tree after a 'make distclean'
>     find . -name '*.[chyl]' | xargs cat| wc -l
>
> I added this script to src/tools so we will have it for consistency.
> This shows a 5% increase in code size from 8.0.X and 8.1.X, which is
> consistent with previous releases, except for 8.0, which was a huge
> jump.
>
> ---------------------------------------------------------------------------
>
> Rafael Martinez wrote:
> -- Start of PGP signed section.
> > Hello
> >
> > I am preparing a presentation about PostgreSQL and I need some help.
> >
> > I have found some information [1] about the lines of code the different
> > versions (until 7.4) of PostgreSQL have, but I can not find numbers for
> > version 8.0 and 8.1.
> >
> > This is what I have:
> > 1996: 6.0 - 178K
> > 1997: 6.[12] - 225K
> > 1998: 6.[34] - 297K
> > 1999: 6.5 - 331K
> > 2000: 7.0 - 383K
> > 2001: 7.1 - 410K
> > 2002: 7.[23] - 453K
> > 2003: 7.4 -  508K
> >
> > I could find out the numbers for 8.0 and 8.1 myself if I know the
> > 'rules' used to find out the number of lines in the other versions. Has
> > anyone this information?
> >
> > Thanks in advance.
> >
> > [1] http://candle.pha.pa.us/ - PostgreSQL: Past, Present, and Future
> > (Bruce Momjian)
> >
> > --
> > Rafael Martinez, <r.m.guerrero@usit.uio.no>
> > Center for Information Technology Services
> > University of Oslo, Norway
> >
> > PGP Public Key: http://folk.uio.no/rafael/
> -- End of PGP section, PGP failed!
>
> --
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

Re: Lines of code in PG 8.0 & 8.1?

From
Nicolas Barbier
Date:
On 9/23/05, Jim C. Nasby <jnasby@pervasive.com> wrote:

> Is there some reasonable way to get that to not include comments?

SLOCCount on CVS tip (2005-09-23) gives me:

ansic:       368542 (92.27%)
yacc:         14029 (3.51%)
sh:            7495 (1.88%)
lex:           5392 (1.35%)
perl:          3863 (0.97%)
asm:             70 (0.02%)
awk:             20 (0.01%)
python:          12 (0.00%)

Total Physical Source Lines of Code (SLOC)                = 399,423

> On Thu, Sep 22, 2005 at 06:04:55PM -0400, Bruce Momjian wrote:
> >
> > For 8.1beta2 I get:
> >
> >       684533
> >
> > and for 8.0.X I get:
> >
> >       648130

--
Nicolas Barbier
http://www.gnu.org/philosophy/no-word-attachments.html

Re: Lines of code in PG 8.0 & 8.1?

From
Bruce Momjian
Date:
Jim C. Nasby wrote:
> Is there some reasonable way to get that to not include comments?

Not that I know of, but considering the complexity of our code, I _want_
to count comments.

---------------------------------------------------------------------------


>
> On Thu, Sep 22, 2005 at 06:04:55PM -0400, Bruce Momjian wrote:
> >
> > For 8.1beta2 I get:
> >
> >     684533
> >
> > and for 8.0.X I get:
> >
> >     648130
> >
> > I used:
> >
> >     # This script is used to compute the total number of "C" lines in the release
> >     # This should be run from the top of the CVS tree after a 'make distclean'
> >     find . -name '*.[chyl]' | xargs cat| wc -l
> >
> > I added this script to src/tools so we will have it for consistency.
> > This shows a 5% increase in code size from 8.0.X and 8.1.X, which is
> > consistent with previous releases, except for 8.0, which was a huge
> > jump.
> >
> > ---------------------------------------------------------------------------
> >
> > Rafael Martinez wrote:
> > -- Start of PGP signed section.
> > > Hello
> > >
> > > I am preparing a presentation about PostgreSQL and I need some help.
> > >
> > > I have found some information [1] about the lines of code the different
> > > versions (until 7.4) of PostgreSQL have, but I can not find numbers for
> > > version 8.0 and 8.1.
> > >
> > > This is what I have:
> > > 1996: 6.0 - 178K
> > > 1997: 6.[12] - 225K
> > > 1998: 6.[34] - 297K
> > > 1999: 6.5 - 331K
> > > 2000: 7.0 - 383K
> > > 2001: 7.1 - 410K
> > > 2002: 7.[23] - 453K
> > > 2003: 7.4 -  508K
> > >
> > > I could find out the numbers for 8.0 and 8.1 myself if I know the
> > > 'rules' used to find out the number of lines in the other versions. Has
> > > anyone this information?
> > >
> > > Thanks in advance.
> > >
> > > [1] http://candle.pha.pa.us/ - PostgreSQL: Past, Present, and Future
> > > (Bruce Momjian)
> > >
> > > --
> > > Rafael Martinez, <r.m.guerrero@usit.uio.no>
> > > Center for Information Technology Services
> > > University of Oslo, Norway
> > >
> > > PGP Public Key: http://folk.uio.no/rafael/
> > -- End of PGP section, PGP failed!
> >
> > --
> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >   pgman@candle.pha.pa.us               |  (610) 359-1001
> >   +  If your life is a hard drive,     |  13 Roberts Road
> >   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings
> >
>
> --
> Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
> Pervasive Software      http://pervasive.com    work: 512-231-6117
> vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: Lines of code in PG 8.0 & 8.1?

From
Bruce Momjian
Date:
Robert Treat wrote:
> Out of curiosity, when you run that against 7.4 or less, do you get
> similar numbers to what was originally reported here?

I have not tried it but it is the same script I have always used.

---------------------------------------------------------------------------


>
> Robert Treat
>
> On Thu, 2005-09-22 at 18:04, Bruce Momjian wrote:
> >
> > For 8.1beta2 I get:
> >
> >     684533
> >
> > and for 8.0.X I get:
> >
> >     648130
> >
> > I used:
> >
> >     # This script is used to compute the total number of "C" lines in the release
> >     # This should be run from the top of the CVS tree after a 'make distclean'
> >     find . -name '*.[chyl]' | xargs cat| wc -l
> >
> > I added this script to src/tools so we will have it for consistency.
> > This shows a 5% increase in code size from 8.0.X and 8.1.X, which is
> > consistent with previous releases, except for 8.0, which was a huge
> > jump.
> >
> > ---------------------------------------------------------------------------
> >
> > Rafael Martinez wrote:
> > -- Start of PGP signed section.
> > > Hello
> > >
> > > I am preparing a presentation about PostgreSQL and I need some help.
> > >
> > > I have found some information [1] about the lines of code the different
> > > versions (until 7.4) of PostgreSQL have, but I can not find numbers for
> > > version 8.0 and 8.1.
> > >
> > > This is what I have:
> > > 1996: 6.0 - 178K
> > > 1997: 6.[12] - 225K
> > > 1998: 6.[34] - 297K
> > > 1999: 6.5 - 331K
> > > 2000: 7.0 - 383K
> > > 2001: 7.1 - 410K
> > > 2002: 7.[23] - 453K
> > > 2003: 7.4 -  508K
> > >
> > > I could find out the numbers for 8.0 and 8.1 myself if I know the
> > > 'rules' used to find out the number of lines in the other versions. Has
> > > anyone this information?
> > >
> > > Thanks in advance.
> > >
> > > [1] http://candle.pha.pa.us/ - PostgreSQL: Past, Present, and Future
> > > (Bruce Momjian)
> > >
> > > --
> > > Rafael Martinez, <r.m.guerrero@usit.uio.no>
> > > Center for Information Technology Services
> > > University of Oslo, Norway
> > >
> > > PGP Public Key: http://folk.uio.no/rafael/
> > -- End of PGP section, PGP failed!
> >
> > --
> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >   pgman@candle.pha.pa.us               |  (610) 359-1001
> >   +  If your life is a hard drive,     |  13 Roberts Road
> >   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings
>
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073