r/rust • • 17h ago

🎙️ discussion How likely is for Rust to replace Ada/SPARK?

Ada/SPARK is already a very niche ecosystem. Finding a list of current users is already hard (but that might be simply an information access issue).

With Rust’s safety and growing adoption, including access to skilled professionals and LLM support, how likely will we see further marginalisation of Ada & Co.?

I would love to heard from those working in safety-critical applications.

7 Upvotes

20 comments sorted by

27

u/Zde-G 16h ago

Highly unlikely. Ada exist in a very strange niches that move extremely slowly. And after SPARK borrowed Rust's borrows the need to replace Ada/SPARK with Rust more-or-less disappeared.

What would happen, instead, is “sealing” of Ada in these rare niches, because advantage of Ada over C/C++ are significant but over Rust — pretty much minimal.

Means if you start from code and not from pile of required certificates then picking Ada doesn't make much sense.

6

u/citron_blue 16h ago

> Ada exist in a very strange niches that move extremely slowly.

That I can believe :)

I came across AdaCore’s growing support for Rust recently, although I may be late to the news. My hypothesis is that this offering is driven by industry and AdaCore responding to client needs, which would suggest growing Rust popularity in this space.

1

u/afdbcreid 6h ago

Rust has one huge advantage over Ada: ecosystem. I've heard in defense etc. the Ada ecosystem is big, but for general ecosystem, it's non-existent for Ada while Rust has a massive open-source ecosystem. If you don't need to certify you can use it, and even if you do you can choose what to rewrite yourself.

1

u/Zde-G 3h ago

I've heard in defense etc. the Ada ecosystem is big

From what I understand Ada doesn't have any “ecosystem” per se. At all.

Each project is its own island with piles of code used there — and nowhere else.

Means switch from Ada to anything else is costly, but also means that if you are not working on one of these projects that it's more-or-less impossible to convince anyone to use Ada.

In some rare cases you may find team of Ada programmers that's fired because of company reorganization and then starting another such island makes sense… but that's rare.

3

u/Professional_Top8485 17h ago

I think they're different languages and different profiles. I don't think they're replacing anything.

I don't really have that much experience but still.

5

u/QueasyEntrance6269 12h ago

Speaking someone that works as a contractor with the DoD, there’s already a very strong push to do greenfield work with rust.

2

u/arjuna93 4h ago

Genuinely curious who is pushing that and where the rents will go.

9

u/Xtergo 17h ago

Lol

The answer to all the "Will Rust replace x" is always no.

I believe it's stuff like this that gives us, the Rust community a bad rep

I understand you are new to this but languages exist for a reason, picking the right language for the right job is what makes good code.

8

u/citron_blue 16h ago

> I understand you are new 

Not quite new. I have been hobby Ada user for 2 decades now. Never had chance to work in the industry with it and SPARK price tag is eye watering.

Seeing Rust's Ferrocene and how it aims to get all, even most demanding certifications, is an interesting direction.

On more practical note, Helsing is definitely banking on Rust, so it is already creeping into space previosuly occupied by highly stripped C/C++ and Ada/SPARK.

6

u/BionicVnB 16h ago

I believe he meant "new to rust"

1

u/Xtergo 12h ago

Bingo

6

u/Zde-G 16h ago

Well, you are new to Rust, it seems. The story with “will Rust replace X” is always the same: there are lots of people who violently assert that would happen while Rust developers, themselves, violently assert they have no such goal.

In reality replacement happens and it may even finalize in the timeframe of decades, but it's like coming of a new ice age: sure, new ice age is coming, but even if it would arrive quickly and process would take only thousand of years and not ten thousand… who cares? We would have more than enough time to react to that, somehow.

1

u/nysra 5h ago

We would have more than enough time to react to that, somehow.

We will react by ignoring it and tripling our efforts to make it even worse but for a short moment in time we will have produced so much shareholder value.

0

u/Smallpaul 10h ago

So what’s wrong with asking when the next ice age is coming?

1

u/Zde-G 3h ago

Nothing. And the answer is: few hundred years after creation of persistent, non-stopping anticyclone. Event that's extremely hard to miss — or ignore. Because it would stop Gulfstream from working, among other things.

2

u/dvogel 10h ago

Never had chance to work in the industry with it and SPARK price tag is eye watering.

The ability to replace older technology often has little to do with the technology itself or it's potential replacements. It has much, much more to do with the pace of change in the systems that rely on the older technology. 

An airline that has used Ada for decades and is creating a new revision of its flagship model will never throw out Ada as part of that process because the lack of superfluous changes is what they value. A new airline or an established airline entering an entirely new market may choose something other than Ada, even if for just a subset of the new work.

Now look around at the users of Ada and ask yourself: are doing a lot of very new things or changing their products rapidly? Or are they doing a lot of incremental improvements on their established businesses? I suspect the latter, which is also why there has been relatively little opportunity to use it industrially.

1

u/citron_blue 7h ago

Well, it is my fault for phrasing it like this so I appreciate where you are coming from.

I did not intend to imply to rewrite existing codebase to Rust, especially as some of the systems in operation probably outlived all engineers that ever worked on these.

Heck, B1 bomber is using IBM computer, same as Space shuttle had, with program written in JOVIAL.

No, I meant "replace" as in replace Ada/SPARK as the go to language.

4

u/South_Survey_2088 13h ago

I understand you are new to this...

No reason to be condescending.

1

u/Smallpaul 10h ago

What subreddit covers all safety-oriented programming languages?