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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.98.65.8 with SMTP id o8mr16048229pfa.27.1498056759013; Wed, 21 Jun 2017 07:52:39 -0700 (PDT) X-Received: by 10.157.60.116 with SMTP id j49mr1102234ote.0.1498056758873; Wed, 21 Jun 2017 07:52:38 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!185no312876itv.0!news-out.google.com!s132ni813itb.0!nntp.google.com!185no312869itv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 21 Jun 2017 07:52:38 -0700 (PDT) In-Reply-To: <1498048151.20885.28.camel@obry.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=107.77.160.19; posting-account=HN9B-woAAACqJDcuOavWYdk7s1Vm8fv7 NNTP-Posting-Host: 107.77.160.19 References: <1ac5a44b-4423-443a-a7bb-2864d9abe78f@googlegroups.com> <1498048151.20885.28.camel@obry.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <96174ea5-852d-44e9-8535-7c1eb24d5326@googlegroups.com> Subject: Re: Ada Annoyances From: pythoner6@gmail.com Injection-Date: Wed, 21 Jun 2017 14:52:38 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:47045 Date: 2017-06-21T07:52:38-07:00 List-Id: I definitely agree that performance is best measured, not guessed about. Ho= wever, the way I see it, this restriction is (at least for my use case wher= e I know I don't need tagged types) at best making the compiler work much h= arder to see that it can devirtualize the function calls and at worst makin= g my code run slower with no benefit - other than providing a slightly nice= r syntax. I assume there was some rationale behind the decision, though, so I'd be in= terested if anyone has any insight on that. As a side note, I did do a test at one point and if I remember right, the c= ompiler didn't devirtualize the custom indexing even for my simple test. I'= ll have to see if I can recreate the test and try with a newer compiler tho= ugh.