News for hackers. Stuff that matters.
Re:A learning platform to teach the Ada and SPARK programmin... by insulanian on Wednesday July 25, 2018 @04:16PM (#17612389)
I have a soft spot for languages with strong type systems and was always attracted by ADA, but newer met anyone using it in the wild.

Is it used anywhere outside of defense and flight industry?

Re:A learning platform to teach the Ada and SPARK programmin... by b_b on Wednesday July 25, 2018 @07:35PM (#17613888)
Ask nearly any Latin student nowadays and they'll mention that they have used or frequently still use Whitaker's Words [1] which is made in Ada [2]. I and my friends in Latin class use it so frequently (through the University of Notre Dame portal) that I made a reskin for me and some friends [3] to use so we can enter in all the words we want for a passage and to look at convenient conjugation cheatsheets :)

[1] = http://www.archives.nd.edu/words.html [2] = https://github.com/mk270/whitakers-words [3] = https://abidsikder.com/wweb/index.html

Re:A learning platform to teach the Ada and SPARK programmin... by acomjean on Wednesday July 25, 2018 @04:45PM (#17612660)
I programmed a radar system with Ada, I guess that counts a defense system. The language grew on me. I miss parts of it, but it suffers from the chicken egg problem. Not enough people using it to make useful libraries from it so it doesn't get a lot of new users.

Also the lack of a really good compiler that was free held ada back, but that shouldn't be a problem anymore. (https://en.wikipedia.org/wiki/GNAT)

The other knock on ada was it was slow. All the runtime checks eat up cpu resources which made it slower than the competition.

The language and package system are solid though. I was switching between C and Ada for a while and I found programming in Ada to be be a better experience.

Re:A learning platform to teach the Ada and SPARK programmin... by jnbiche on Wednesday July 25, 2018 @06:43PM (#17613591)
> All the runtime checks eat up cpu resources which made it slower than the competition.

You can turn off all the runtime checks. When you do, Ada is competitive with Rust and even C.

But user jonathanstrange's criticisms above of Ada and Adacore hit the nail on the head, in my opinion. Ada's a great language but unless Adacore revisits the licensing, it's doomed. Now, even the defense industry has for the most part abandoned Ada, despite it being perfectly suited for the industry.

Re:A learning platform to teach the Ada and SPARK programmin... by jononor on Thursday July 26, 2018 @05:23AM (#17616125)
What do they use instead of Ada, in the defense industry?
Re:A learning platform to teach the Ada and SPARK programmin... by mcguire on Thursday July 26, 2018 @11:25AM (#17618170)
I believe C, C++, and Java depending on which niche you look at, according to the job ads I've seen.

Actually, I haven't seen and Ada ads sin a long time.

Re:A learning platform to teach the Ada and SPARK programmin... by acomjean on Thursday July 26, 2018 @10:43AM (#17617860)
we were heading to C, C++ when I left over a decade ago.
Re:A learning platform to teach the Ada and SPARK programmin... by pecg on Wednesday July 25, 2018 @06:14PM (#17613414)
> The other knock on ada was it was slow.

I'm curious, is the compilation time that takes too much, or is it the execution time? I'm really interested in learning the language, but I don't want to end-up with programs that generate slower native code, compared to that of C. What's your experience with it?

Re:A learning platform to teach the Ada and SPARK programmin... by PeCaN on Wednesday July 25, 2018 @06:34PM (#17613545)
It's not any slower than C. In some cases the compiler can actually generate better code because of stricter rules on pointer aliasing. You can also do more with only stack allocation in Ada, which is a huge win.

It does generate some extra code for things like range checks and checking invariants, i.e. things you can skip in C to write buggy code.

Re:A learning platform to teach the Ada and SPARK programmin... by Fabien_C on Thursday July 26, 2018 @05:04AM (#17616069)
There's a little benchmark project here: https://github.com/frol/completely-unscientific-benchmarks

The Ada implementation is the second fastest behind C++.

Re:A learning platform to teach the Ada and SPARK programmin... by dwheeler on Wednesday July 25, 2018 @04:47PM (#17612674)
They talk about uses of Ada in this page: https://learn.adacore.com/courses/intro-to-ada/chapters/intr...

"Specific domains seeing Ada usage include Aerospace & Defense, civil aviation, rail, and many others. These applications require a high degree of safety: a software defect is not just an annoyance, but may have severe consequences. ... Ada provides safety features that detect defects at an early stage --- usually at compilation time or using static analysis tools. Ada can also be used to create applications in a variety of other areas, such as:

* Video game programming * Real-time audio * Kernel modules"

Re:A learning platform to teach the Ada and SPARK programmin... by randomsearch on Wednesday July 25, 2018 @05:52PM (#17613225)
I believe part of the London Underground system was written in Ada - think it was the signalling on the Jubilee line.
Re:A learning platform to teach the Ada and SPARK programmin... by jadavies on Thursday July 26, 2018 @03:24AM (#17615684)
It was, as well as the Automatic Train Protection (ATP) and Automatic Train Operation (ATO) systems. I worked on part of the track to train comms system of the subsequent Victoria Line upgrade which was also written in Ada.

I forget which compiler was used, all I remember is that it cost an arm and a leg!

Re:A learning platform to teach the Ada and SPARK programmin... by randomsearch on Thursday July 26, 2018 @10:05AM (#17617604)
That's great, Ada is such a fantastic language and I'm delighted and reassured to hear it's running those systems!
Re:A learning platform to teach the Ada and SPARK programmin... by randomsearch on Wednesday July 25, 2018 @05:53PM (#17613228)
Oh, and the ISS, but I’m not sure it still runs that code.
Re:A learning platform to teach the Ada and SPARK programmin... by qop on Wednesday July 25, 2018 @04:23PM (#17612460)
F# gets used a lot in finance. If you're in the NY area with F# experience you could easily find a contract or maybe a position.

When Julia 1.0 drops, there will be some shifting around as the industry begins the Matlab exodus. But not a lot of prospects right now. It has a really cool type system with multiple dispatch, but it's dynamically typed. Depends on your taste. Takes practice in my experience organizing code by dispatch. Didn't click in my brain at first. Also, there are macros ala Lisp, good performance, etc.

Not sure about Ada, hoping to find out more.

Re:A learning platform to teach the Ada and SPARK programmin... by simonbyrne on Thursday August 02, 2018 @03:55PM (#17674918)
I've heard this before: what is F#'s main draw over other functional languages in finance? Is it simply that it comes already bundled with .NET?
Re:A learning platform to teach the Ada and SPARK programmin... by gaius on Thursday July 26, 2018 @12:30AM (#17615063)
there will be some shifting around as the industry begins the Matlab exodus

Stats I’ve seen on applicants/job broken down by language suggest that that is already well underway - tho’ Python/R seem to be where the demand has shifted to

Re:A learning platform to teach the Ada and SPARK programmin... by qop on Friday July 27, 2018 @06:40PM (#17630039)
I'm not so familiar with the academic side of things as much as I am finance and corp side of things.

Academic roles probably benefit a lot more from the more rigorously designed language/platfrom R offers. Not to mention the maturity of the ecosystem.

Julias big draw is performance, in my eyes. Ease of use is good too, Python syntax + types + macros is great, but the speed is absolutely killer once you get it tuned up.

Time will tell, but I see some very strong threats as Julia already has packages for xlsx, and a good Quant community forming up.

For finance, I will be shocked if Julia isn't a household name 2-3 yrs from now. It's what the financial world has been waiting for.

Python won't be killed for a while. It's just too ubiquitous. But it poses no major threat to any major firm who needs decent performance, and there will be more and more turmoil in python chore community as time goes on. I think it will get much worse, not better.

Re:A learning platform to teach the Ada and SPARK programmin... by gaius on Monday July 30, 2018 @03:47AM (#17642754)
Julias big draw is performance, in my eyes. Ease of use is good too, Python syntax + types + macros is great, but the speed is absolutely killer once you get it tuned up.

Yes I’ve heard that but the counter-argument is just use Numba and leverage your existing Python/NumPy code onto GPU. Everyone always forgets that the Python community is very comfortable with offloading heavy lifting to other languages.

Re:A learning platform to teach the Ada and SPARK programmin... by qop on Thursday August 02, 2018 @03:26PM (#17674682)
Those people generally aren't of the same caliber as Matlab programmers.

I'm talking about professional-grade numerical work. People use matlab or R for this currently. Mathematica too.

These people, who are very talented mathematical minds but maybe not necessarily the most talented programmers, are going to eventually find Julia to be more convenient and more attentive to their needs doing numerical work than Python+PyJunk libraries.

Python sucks. Plain and simple. No types, no macros, it's slow, it can be a pain to get gpu support up and running, the main guy just up and left (?!?!?), and the primary survival trait of the community at large is figuring out how to write python and make something other than python do the work.

It would be like buying a car and the dealer hands you a complimentary bus pass and says "try and keep her off the road if you can help it."

So yeah. I don't consider it a major threat to the ecosystem.