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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:ea19:: with SMTP id m25mr9760586ioc.291.1553294160771; Fri, 22 Mar 2019 15:36:00 -0700 (PDT) X-Received: by 2002:a9d:6a1a:: with SMTP id g26mr9168989otn.16.1553294160609; Fri, 22 Mar 2019 15:36:00 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!78no175924itl.0!news-out.google.com!y88ni177ita.0!nntp.google.com!78no175920itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 22 Mar 2019 15:36:00 -0700 (PDT) In-Reply-To: <87sgvekeb4.fsf@nightsong.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=96.255.209.31; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 96.255.209.31 References: <5fb80936-f660-47dd-9cf5-73d35406782f@googlegroups.com> <87sgvekeb4.fsf@nightsong.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3787cc29-ce65-4e26-a018-64b655202695@googlegroups.com> Subject: Re: Intervention needed? From: Optikos Injection-Date: Fri, 22 Mar 2019 22:36:00 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55934 Date: 2019-03-22T15:36:00-07:00 List-Id: On Friday, March 22, 2019 at 1:29:53 PM UTC-4, Paul Rubin wrote: > "Jeffrey R. Carter" writes: > > In the late 1980s-early 1990s... in Ada, the compiler knew what was > > aliased and what wasn't, while in C everything is implicitly aliased, > > and this allowed optimizations of Ada that could not be done for C. >=20 > C later got the "restrict" keyword to help deal with this. But is the restrict keyword actually utilized in industrial practice outs= ide of benchmarks and perhaps high-performance numerical processing? (I th= ought that the HPC people were all migrating to Julia as the new darling, b= tw.) > Also by the > late 1980s ANSI C was standardized saying that objects of differing > types couldn't be aliased, or the notorious UB would result. That > probably made some uses of pointer casting illegal, that may have been > common in programs back then. By Jeffrey Carter's mentioning of early 1990s, K&R C had died a quick death= in industrial practice by the early 1990s=E2=80=94mainly because industria= l practice was utilizing C compilers =E2=80=A2other than=E2=80=A2 AT&T issu= e3, issue4, or issue5 authentic reference-implementation compilers, so ever= yone was utilizing poor knock-offs of AT&T-issue K&R C. Nearly every progr= ammer and manager wanted to throw K&R C in the trashcan ASAP to flee from t= he compiler bugs & odd features/hacks that ANSI C corrected (ANSI C 1988's = & ISO C 1990's trigraph & digraph abominations notwithstanding). Conversely, in the early 1990s nearly 100% Ada83 compilers were from compan= ies other than the authors of GNAT. NYU's/Dewar's/Schonberg's EduAda83 was= still an interpreter back then (and had no association with FSF GCC yet), = so there was little interest in EduAda83 outside of university classrooms.