From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Kevin Chadwick Newsgroups: comp.lang.ada Subject: Re: does a safer language mean it is slower to run? Date: Thu, 3 Aug 2023 20:42:22 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 3 Aug 2023 20:42:22 -0000 (UTC) Injection-Info: dont-email.me; posting-host="1fc5f8b7d2a78a1edcc2d7bd7a4e49c3"; logging-data="968783"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qMBGRgTbCjq9qZF0bDW218odYLlhkkY4=" User-Agent: PhoNews/3.12.0 (Android/13) Cancel-Lock: sha1:MJ+dpnvN1lyIs8Owh8a162WoA8w= In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65483 List-Id: On 08/06/2023 16:19, Luke A. Guest wrote: >On 08/06/2023 04:55, Nasser M. Abbasi wrote: >> Some folks in this thread >> >> https://discourse.julialang.org/t/comparison-of-rust-to-julia-for-scientific-computing/78508 >> >> "I’m not an expert, but my feeling is that Rust is a “safer” language, >> which to me means it must be slower." > Rust isn't a safer language. Rust is more targetted at the heap which is slower than the stack. Additionally if you use Adas type system well then you can remove input validation checks again making Ada faster. The compiler is better and safer at optimising checks away. -- Regards, Kc