top | item 47280352

Ada 2022

154 points| tosh | 18 days ago |adaic.org | reply

39 comments

order
[+] johnisgood|18 days ago|reply
If you want to learn Ada / SPARK, try https://learn.adacore.com/index.html.
[+] tgv|17 days ago|reply
It's ok, but not more than that. I dabbled a bit in Ada, and while that link has a lot of information, it's far from complete. Unfortunately, there isn't much more information on the internet. It can be difficult to find answers.

One thing that document doesn't mention is alire, which is a rather complete tooling. If you want to try out ada, check out https://docs.adacore.com/live/wave/alire/html/alire/index.ht...

I also learned a bit of SPARK, and there the situation is much worse. The Adacore link shows less than the bare minimum: I couldn't get my simple programs (AoC) to the "silver" level, where it passes all checks, let alone "gold", where you actually prove correctness. The rest of the internet is practically barren when you search for SPARK. I got a second-hand copy of Building High Integrity Applications with SPARK; John W. McCormick, Peter C. Chapin. It contains complete examples, and explains the concepts pretty much in depth. Unfortunately, the book is expensive, and since I was just dabbling, I got the cheapest, which was the 2015 edition, which lacks later changes.

There's an Ada forum (https://forum.ada-lang.io/), but it is not very active, and questions may not be answered.

[+] hackerInnen|17 days ago|reply
Over the past couple of years I have been quite obsessed with VHDL. Somehow I like the strict typing much better than verilog.

I should give Ada a try and build something fun with both of them

[+] pjmlp|17 days ago|reply
I feel at home in PL/SQL for similar reasons.
[+] rustyhancock|18 days ago|reply
My understanding is that most of Adas users are maintaining legacy systems.

It'd be great to hear from anyone who is using it today by choice.

[+] Linux-Fan|18 days ago|reply
After some search for programming languages which promise to reduce the number of bugs, I decided to give Ada (2012) a try.

I like it better than C and C++ and the compiler is included in Debian in a reasonably recent version that it can compile the code that I need.

Ada is particularly nice for programming RPI 2040 microcontrollers because for my needs I didn't need additional libraries. For both of my RPI 2040 projects (one of which is online here: https://masysma.net/37/dcf77_vfd_raspi_clock.xhtml), my code had fewer bugs than I had anticipated.

For general purpose systems programming the lack of free software libraries is still a concern e.g. while working on a custom backup restore program I had to write my own LZ4 extractor and Blake3 hash function implementation because there wasn't any existing libraries that I could find for the purpose.

[+] ajxs|18 days ago|reply
I use Ada for a lot of projects where C would otherwise be the default language of choice. I find that I spend much less time getting tied up debugging silly errors. In a lot of cases, Ada makes it difficult to do things the wrong way. When I move from working in C to Ada, there isn't much I miss, but when I move the other way around, I feel like I'm missing so much!
[+] metalliqaz|18 days ago|reply
The Ada stronghold is aerospace and defense systems. So these may or may not be legacy systems, but they are safety-critical or mission-critical systems that rely on long standing well defined development processes. That inflexibility means that advancements in the technology are very slow to creep into usage. That goes not only for the languages/compilers but also the silicon and everything in between.
[+] pjmlp|17 days ago|reply
There is enough business to keep 7 compiler vendors in business, those customers that actually pay for compilers.

I can provide the list, in case you don't find it from previous comments.

Also NVidia rather use Ada/SPARK instead of Rust for their automotive systems.

[+] RavSS|18 days ago|reply
I've used it in my personal hobby projects for several years now, Ada/SPARK is a favourite language of mine. It's not a legacy language and it has features which I wish mainstream languages would have, particularly regarding the formal verification utilities of SPARK. It's also great for bare metal development.

I've not managed to convince anyone else to use it, as most are discouraged by either its Pascal-style "verbose" syntax on first glance or its general lack of third-party libraries (relative to something like Rust's ecosystem). Anyone who can get past those aspects should really give it a try.

[+] gte525u|18 days ago|reply
We used it for a new Defense/Aerospace projects. Language-wise it's fine although verbose. Intent was to separate similar IP so there was no claim of cross contamination. Built-in threading and a robust standard library is nice.

Tool-wise - refactoring was a bit of a pain.

[+] docandrew|18 days ago|reply
I use it for many of my side projects. I just like the language, the strong typing fits well with my work.
[+] antiquark|18 days ago|reply
Ada doesn't even have a "++" operator to increment a number. SAD!
[+] klez|17 days ago|reply
Neither does python, yet here we are.
[+] pjmlp|17 days ago|reply
It isn't a language to do golf programming, indeed.
[+] phplovesong|18 days ago|reply
Many ada devs probably write software i would not be comfortable writing. Its always been a kind of place i dont want to be part of.
[+] Jtsummers|18 days ago|reply
It's used for planes, trains, and automobiles. No reason to feel uncomfortable working on those things.
[+] zardo|18 days ago|reply
I wonder what Ada Lovelace would think about her namesake being the language for weapon systems.
[+] inkyoto|18 days ago|reply
What are we comparing Ada to… PHP?