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:5dd4:: with SMTP id w203-v6mr4046297ita.27.1529861959887; Sun, 24 Jun 2018 10:39:19 -0700 (PDT) X-Received: by 2002:aca:ed52:: with SMTP id l79-v6mr516444oih.4.1529861959776; Sun, 24 Jun 2018 10:39:19 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!u78-v6no3053183itb.0!news-out.google.com!z3-v6ni3635iti.0!nntp.google.com!u78-v6no3053180itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 24 Jun 2018 10:39:19 -0700 (PDT) In-Reply-To: <87d0wg84yq.fsf@nightsong.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 References: <584564c2-9f64-4965-b045-535cdaf899c0@googlegroups.com> <871sd2bggh.fsf@nightsong.com> <87d0wg84yq.fsf@nightsong.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Why are Ada compilers difficult to write ? From: Lucretia Injection-Date: Sun, 24 Jun 2018 17:39:19 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:53280 Date: 2018-06-24T10:39:19-07:00 List-Id: On Sunday, 24 June 2018 18:33:22 UTC+1, Paul Rubin wrote: > Distilled makes it sound. It's not possible to write a minimalistic Ada > compiler comparable in size to some of the small C or Pascal compilers > that have been written. Compared to an industrial-strength C compiler It's possible, by using a subset (pragma's restrictions/profiles), but you'd still need basic packages, basic generics, integral/enum types and subprograms. > It's also not clear to me that Ada has actual difficult-to-compile > features (maybe it does, and I just haven't spotted them) as opposed to > a very large number of straightforward ones. By comparison, lots of the > stuff in GHC resulted from academic research projects that represented > new advances in the state of PLT knowledge. I think it's more that once you have a parser, it's all the semantic stuff that has to go over the AST to sort out what's what.