help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <>
Subject: Re: Ada vs. Rust for low level system software
Date: Wed, 13 Dec 2023 09:27:34 +0100	[thread overview]
Message-ID: <ulbptn$35lm$> (raw)
In-Reply-To: <ulbbtp$1evv$>

On 2023-12-13 05:28, Nasser M. Abbasi wrote:
> Has anyone made study of difference between Rust and Ada for low level 
> hardware
> system software?

What for? Any language comparisons lost their meaning long ago as the 
whole language business degraded into hobbyist/corporate bullshit.

> 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?

Because it is always someone's arbitrary decision.

> "Rust is a rising programming language designed to build system
> software [4, 10, 20]. On the one hand, Rust offers access to and control
> of the low-level system resources. On the other hand,
> unlike conventional systems programming languages, Rust
> ensures memory and concurrency safety"
> "Rust often inserts bound checks at the execution time to rule
> out out-of-bound accesses"
> Well, does not Ada also "ensures memory and concurrency safety"
> and checks for out-of-bound accesses?
> I am just wondering what does Rust brings to the table that
> Ada does not have and why is Rust becoming so popular when
> Ada is not.

In my view Rust brings nothing and moreover is a huge step back 
comparing to Ada. Its main and only idea is to force the programmer to 
explicitly manage memory through references where Ada simply uses object 
notation regardless the mechanism doing same under the hood.

Safety comes not through references but by limiting the number of cases 
you must resort to using dynamic allocation for statically scoped 
objects. E.g. Unbounded_String in Ada.

As for my major concern - the type system and the abstraction mechanisms 
in general, there is nothing in Rust at all.

Then of course Rust continues the worst practices tried by Ada and C++: 
templates/generics, macros.

Dmitry A. Kazakov

  reply	other threads:[~2023-12-13  8:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-13  4:28 Ada vs. Rust for low level system software Nasser M. Abbasi
2023-12-13  8:27 ` Dmitry A. Kazakov [this message]
2023-12-13  9:10   ` Luke A. Guest
2023-12-13  9:53     ` Dmitry A. Kazakov
2023-12-13  8:44 ` Jeffrey R.Carter
2023-12-18 12:52 ` Kevin Chadwick
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox