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 2002:a24:97cf:: with SMTP id k198mr1254467ite.26.1555449386745; Tue, 16 Apr 2019 14:16:26 -0700 (PDT) X-Received: by 2002:aca:ba82:: with SMTP id k124mr26172965oif.110.1555449386539; Tue, 16 Apr 2019 14:16:26 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!136no21939itk.0!news-out.google.com!w17ni30itb.0!nntp.google.com!136no21937itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 16 Apr 2019 14:16:26 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2.123.143.189; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2.123.143.189 References: <1127d366-d36c-4abf-8590-4b8c0e2b5446@googlegroups.com> <1beabd13-0c34-4d8a-9a57-45243a07ffc4@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Why can't objects be static in Ada? From: Lucretia Injection-Date: Tue, 16 Apr 2019 21:16:26 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:56143 Date: 2019-04-16T14:16:26-07:00 List-Id: On Tuesday, 16 April 2019 22:07:24 UTC+1, Niklas Holsti wrote: > Why are you so fixated on elaboration? Many non-Ada libraries require > initialization calls. Moreover, I believe a C++ program can have > compiler-generated initialization code similar to Ada elaboration code. Not everything needs it, the example in this thread shouldn't need it. > > I don't think it can, going by this thread. I also think this is why > > Ada will fail in other environments, i.e. not security or safety > > critical stuff, but where performance is important. > > Performance is plenty important in many embedded real-time applications, > where Ada works just fine. Not every application is embedded, which is my point. > Elaboration of library items consumes execution time only at the start > of a program. Do you have some stringent start-up deadlines? Not exactly, but it would be nice to be able to know that something which shouldn't need elaboration, doesn't use elaboration. That's the point, you're missing.