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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8143b93889fe9472 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.19.66 with SMTP id c2mr1961338wie.6.1359588244784; Wed, 30 Jan 2013 15:24:04 -0800 (PST) MIME-Version: 1.0 X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 Path: i11ni30002wiw.0!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!nntpfeed.proxad.net!news.muarf.org!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada standard and maximum line lengths Date: Wed, 30 Jan 2013 17:24:02 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <8dfcf819-e1d0-4578-a795-a4bf724b5014@googlegroups.com> <5107b329$0$6556$9b4e6d93@newsspool4.arcor-online.net> <5107eaed$0$6566$9b4e6d93@newsspool4.arcor-online.net> <51080c38$0$6561$9b4e6d93@newsspool4.arcor-online.net> <51085776$0$6637$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1359588244 31274 69.95.181.76 (30 Jan 2013 23:24:04 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 30 Jan 2013 23:24:04 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2013-01-30T17:24:02-06:00 List-Id: "Robert A Duff" wrote in message news:wccfw1iheq9.fsf@shell01.TheWorld.com... ... > I'd prefer not to have such built-in limits. The fact that I've > never seen an identifier longer than 73 characters doesn't change > my mind. To argue for a built-in limit of 200 characters, I think > you have to not only argue that "nobody needs lines longer than that", > but also argue that there is some important advantage (efficiency? > simplicity?), which I don't see here. There is an effciency advantage, but whether it is important today I can't say. Specifically, the position value for a line can be limited to 8-bits if you limit lines to 250 characters. Having such a limit reduces the size of writes done by our compiler's first pass by roughly 15%, and given that the compiler was completely disk-bound, that effectively reduced the runtime of that pass by a corresponding amount (it also saved a similar amount of time in later passes reading the data back in). Whether that's still true on current machines I don't know (it seems likely that there is still some cost for reading/writing 15% more data that would 98% of the time carry no information). (I probably wouldn't architect a new compiler like Janus/Ada is, as memory savings is not an important criteria today, but I still wouldn't like wasting significant amounts of memory (line/position information being stored in almost every symbol table entry) to carry almost no information. Randy.