From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5a97e6705e234408 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-21 11:08:02 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!wlbr!news From: default Subject: Re: Expected bytes per sloc (semicolons) performance Content-Type: text/plain; charset=us-ascii X-Accept-Language: en X-Complaints-To: Email news@wlbr.to.gd-es.com if this posting is inappropriate Sender: news@wlbr.to.gd-es.com (System Administrator) Content-Transfer-Encoding: 7bit Organization: Dis Message-ID: <3BAB8028.18CCD530@yahoo.com> References: <8f23da36.0109181403.52128d70@posting.google.com> <_hRp7.7630$ot.1153235@typhoon.ne.mediaone.net> <8f23da36.0109201115.2f708535@posting.google.com> X-Mailer: Mozilla 4.76 [en] (WinNT; U) Mime-Version: 1.0 X-Trace: wlbr.to.gd-es.com 1001095209 23655 (None) [156.23.129.143] X-Nntp-Posting-Host: seidmanj01.mtv.gsc.gte.com Date: Fri, 21 Sep 2001 18:00:08 GMT Xref: archiver1.google.com comp.lang.ada:13240 Date: 2001-09-21T18:00:08+00:00 List-Id: Mats Weber wrote: > > >Rules about n bytes per sloc are just too processor, compiler, and > >coding style dependent to be useful. > > I would put a big emphasis on coding style here. If you use a lot of > generics, the code will be generated once for each instance in most > implementations. I agree there is a relation between coding style and bytes/sloc. But I don't understand the specific denigration of generics, which I've heard occasionally. It seems to me the alternative to generics is nearly-duplicate packages and procedures, usually created by brute-force cut-and-paste in a text editor. You end up with the same amount of object code, but with the disadvantage that it is harder to maintain than if you had used generics. Is there a flaw in my reasoning? -- Joel