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,64b29dfa2220a59f X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Reserve_Capacity for Unbounded_String? Date: Tue, 24 Jul 2007 19:50:02 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1185134043.892012.217560@n2g2000hse.googlegroups.com> <1185203238.701948.307410@m37g2000prh.googlegroups.com> <46A5B0FE.3060008@obry.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1185321002 5020 192.74.137.71 (24 Jul 2007 23:50:02 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 24 Jul 2007 23:50:02 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:xx9mqmZIEavQO/+7K8L1z96+sKo= Xref: g2news2.google.com comp.lang.ada:1139 Date: 2007-07-24T19:50:02-04:00 List-Id: "Randy Brukardt" writes: > So I stand by my original statement. Anyone that depends on the performance > characteristics of a particular implementation (of anything!) is an idiot > and will be burned in the future. I really don't think you mean that literally! I mean, the Ada language standard does not require that "X := X + 1" take less than 100 years to execute. Programmers _must_ trust that language implementers make reasonably efficient choices. In fact, in Ada, I write things like "X := X + 1" all the time, trusting that it compiles into a single machine instruction, or close to that. - Bob