From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Kevin Chadwick Newsgroups: comp.lang.ada Subject: Re: Ada vs. Rust for low level system software Date: Mon, 18 Dec 2023 12:52:08 -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: Mon, 18 Dec 2023 12:52:08 -0000 (UTC) Injection-Info: dont-email.me; posting-host="40b6aeb1cd7fbb4911b0e216c85dfebb"; logging-data="3689143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OaHcihYssy7aul5aayGbkari+qflE7zA=" User-Agent: PhoNews/3.13.2 (Android/13) Cancel-Lock: sha1:wbQFPzmxmlGQwhR7YY80lf1bvhE= In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65923 List-Id: >Since Ada is mainly used in this area, why has Rust, which is much >younger language, and target this same area has gained so much >popularity but not Ada? > Adas ranged type system coupled with it's excellent record overlays make Ada a much better choice than Rust. For safe and easy hardware register and network protocols. I can't imagine that ownership for data structures on a single runtime is the reason (before SPARK got support). A lot of Ada code will not run on any runtime but Rust also has nostd for embedded use. They often say Rust has excellent C interfacing support but Adas appears to be even better. Perhaps it is ease of use and guide availability which has improved or simply perception and a lack of knowledge about Ada. Rather than language merits. A lot of people only care about job availabilty, money and library availability today but might consider a risk if they perceive a future demand increase. As to why the likes of Google and Microsoft are putting money behind it when Ada would have been a better investment. You would have to ask them. Tell me why Google continues to write security sensitive code like matter in C++? When it could be written in Ada or Rust with a C binding. Even javascript engines like Mozillas spidermonkey still has so little Rust code. Though Mozilla does have more financial concerns and it's competitors are already trying to say their browsers are faster. Yet Googles websites use umpteen domains slowing browsing down anyway. -- Regards, Kc