News for hackers. Stuff that matters.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by kevin_thibedeau on Wednesday September 16, 2020 @12:02AM (#24489428)
> Why is ADA not adopted more broadly?

The Ada specification is huge. You can learn 90% of C with K&R 2.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by fulafel on Wednesday September 16, 2020 @01:14AM (#24489753)
Web search saver: Ada '83 spec is 338 pages (https://quicksearch.dla.mil/qsDocDetails.aspx?ident_number=3...)

For C life is easy as you can leave things undefined with the caveat "dragons may fly out of your nose" :)

An alternative example of a small spec language might be Scheme (especially pre-R6RS): https://www.schemers.org/Documents/Standards/R5RS/r5rs.pdf

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by kevin_thibedeau on Wednesday September 16, 2020 @03:31AM (#24490352)
Nobody wants to write 83 and the later additions are far more extensive than C99 and 11.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by fulafel on Wednesday September 16, 2020 @04:25AM (#24490656)
But k&r 2 was the point of comparison, that's c89 right?
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by kevin_thibedeau on Wednesday September 16, 2020 @09:36AM (#24492559)
K&R 2 represents the bulk of the modern language. You can't be very productive knowing just Ada83.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by fulafel on Thursday September 17, 2020 @01:21AM (#24501459)
Right. But the question was historical (so I interpreted it at least).
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by lokedhs on Wednesday September 16, 2020 @04:09AM (#24490574)
Shouldn't those versions be compared to C++ though?
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by adamnemecek on Wednesday September 16, 2020 @12:04AM (#24489436)
The problem is that using C in practice is not covered by K&R.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by atlgator on Wednesday September 16, 2020 @12:39AM (#24489582)
Any better books you recommend?
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by adamnemecek on Wednesday September 16, 2020 @12:53AM (#24489645)
Programming Rust by O'Reilly, haha.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by baq on Wednesday September 16, 2020 @02:27AM (#24490087)
I get why this is downvoted but it is solid advice: in C you absolutely have to track ownership and lifetimes of pointers and pointees, but the compiler is free to not help you in any way. Learning rust will make you a better programmer. Thus, the recommendation is very good.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by steveklabnik on Wednesday September 16, 2020 @10:18AM (#24492920)
It is not solid advice to suggest a book that's not even about the language that's being asked about.

There's a number of reasons why it's not solid advice, but here's a huge one: you have no context for why the person is asking. Maybe they already know Rust, and want to learn C. It comes off extremely poorly. I downvoted your parent myself, even.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by adamnemecek on Wednesday September 16, 2020 @11:48AM (#24493780)
It's OK Steve, Jesus was also misunderstood :-).
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by steveklabnik on Wednesday September 16, 2020 @11:55AM (#24493856)
I would not draw that comparison. You knew it was bad behavior, hence the "haha." You're understood just fine, it's just not going to have the effect you want.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by adamnemecek on Wednesday September 16, 2020 @12:02PM (#24493921)
I would rather have Hepatitis C than C.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by z3phyr on Wednesday September 16, 2020 @06:30AM (#24491283)
Learning any language makes you a better programmer
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by mratsim on Wednesday September 16, 2020 @06:47AM (#24491340)
Using* any language and writing non-trivial programs.