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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: How to get Ada to ?cross the chasm?? Date: Fri, 11 May 2018 18:34:24 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <1c73f159-eae4-4ae7-a348-03964b007197@googlegroups.com> <87po2la2qt.fsf@nightsong.com> <87in8buttb.fsf@jacob-sparre.dk> <87wowqpowu.fsf@nightsong.com> <16406268-83df-4564-8855-9bd0fe9caac0@googlegroups.com> <87o9i2pkcr.fsf@nightsong.com> <87in88m43h.fsf@nightsong.com> <87efiuope8.fsf@nightsong.com> <87lgd1heva.fsf@nightsong.com> <87zi1gz3kl.fsf@nightsong.com> <878t8x7k1j.fsf@nightsong.com> <87fu342q1o.fsf@nightsong.com> <87mux9645j.fsf@nightsong.com> <8736yz18e4.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 11 May 2018 16:34:24 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="91bbabde4c4a7b1530329779f491978e"; logging-data="21262"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3Gp0FZQbRa1+NPUb/3Bms8JNtJyFQutM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:xBIhaqqwtwGLFvL9daQ0W+rcu2I= Xref: reader02.eternal-september.org comp.lang.ada:52276 Date: 2018-05-11T18:34:24+02:00 List-Id: On 05/11/2018 02:20 PM, Marius Amado-Alves wrote: > "There's probably a 1.3x typical slowdown from C to Ada, but I'd consider that to be worth it for Ada's higher safety." > > Indeed it would be worth it, but there's no slowdown at all in most reports I've seen from here and there. Correct C is usually slower than correct Ada that does the same thing, because an Ada compiler can optimize away many checks that will be left in the C because it's too much effort to manually prove that they will never fail. -- Jeff Carter "C++: The power, elegance and simplicity of a hand grenade." Ole-Hjalmar Kristensen 90