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: a07f3367d7,4d3e59455e947c5e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.83.74 with SMTP id o10mr1091700pay.33.1344322728001; Mon, 06 Aug 2012 23:58:48 -0700 (PDT) Path: g9ni2995028pbo.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Suitability of Ada as a general-purpose language Date: Mon, 30 Jul 2012 22:06:18 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Mon, 30 Jul 2012 22:06:18 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="0e44dd4a3c4e0a6e83a86f947fb780ae"; logging-data="31966"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191IfikdjQClsCr2kFu/z2SVsPriG0p5Pk=" User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Cancel-Lock: sha1:mmzF4A5iQoQV51qIidPrIkZFmsU= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-07-30T22:06:18+00:00 List-Id: On Mon, 30 Jul 2012 08:26:23 -0700, Dufr wrote: Of these two languages, I see Ada as stable or increasing in usage, and with better long term prospects. > However, I have not been able to make up my mind on one point: would I > have to pay a penalty in terms of performance and efficiency if I > decided to use a large language like Ada, even if only a subset of it? In performance terms you will lose nothing with Ada, and probably come out ahead vs Pascal. (There are probably fewer people caring about Pascal tools and tuning them.) Executable size is a poor measure of efficiency; the Ada runtime system (RTS) provides a LOT of facilities that "Hello World" doesn't need. Any decent sized application will need them, whatever language it is written in. It is probably not worth crafting a specially small RTS just to make Ada look good on "Hello World" benchmarks! However it could be done... the AVR-Ada compiler for tiny embedded processors has effectively no RTS, and I am seeing executables of 1K or so to control two stepper motors (Arduino + Motorshield). > Also, would there be really so much syntax overhead (verbosity, for > one), even if I decide to use only a subset of the language (leaving out > advanced features like concurrency etc)? Versus Pascal : not much. Versus C or Perl? A lot but it's worth it :-) - Brian