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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Why does Ada compile slower than Python? Date: Tue, 3 Oct 2017 15:41:58 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@notmyhomepage.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 3 Oct 2017 13:41:58 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f41836b86d45d7c76b77428cfb6b8b4e"; logging-data="5811"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18e4WQasfzkafL1sKdikZyo7CVJmCH81Rk=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:Np9KWbT5NT6d/IwlUU6MThBvyOY= Xref: news.eternal-september.org comp.lang.ada:48317 Date: 2017-10-03T15:41:58+02:00 List-Id: On 03.10.17 15:07, bartc wrote: > Such languages are not really designed for rapid turn-around. GNAT, specifically, has modes that are closer to what Python does. When GNAT "just checks" (-gnatc), or when the programmer asks for "minimal recompilation" only (-m), these and other switches will speed things up. Separate compilation also reduces the number of units that need to be compiled again, e.g. when unit B has not changed but unit A has, then only unit A needs to be compiled. OTOH, intense checking or compiling Java or Swift in Eclipse or Xcode happens at all times, so that one doesn't notice all the translation work---but the processor does! As Python is finally getting an optional type system as part of the written language, not surprisingly, type checking is expensive for this Python and translation takes more time.