News for hackers. Stuff that matters.
Re:Boeing Flies on 99% Ada by SEJeff on Sunday August 31, 2014 @07:27PM (#8250833)
FYI I used to date a girl with a Masters in CS who got a job with Boeing. She worked on the OpenGL overlay for the B1 Lancer. She wrote about 3 pages of justification for every 5-6 lines of code she wrote. After 2 years she bounced as the job satisfaction in that type of environment, simply wasn't there. Also OpenGL from ADA is... interesting.

She worked at the Boeing San Diego office, which is quite beautiful.

Re:Boeing Flies on 99% Ada by ubernostrum on Sunday August 31, 2014 @08:46PM (#8251042)
If she has experience writing 3 pages of justification for every 5-6 lines of code, perhaps she should join the functional-programming community...
Re:Boeing Flies on 99% Ada by eru on Sunday August 31, 2014 @09:22PM (#8251117)
We don't tend to write that much justification (at least in industry).
Re:Boeing Flies on 99% Ada by coldtea on Sunday August 31, 2014 @09:57PM (#8251206)
I think he meant it as a joke.

As in: "for every line of code a functional programmers writes" he'll write 5 blog posts and 10 HN comments on why functional programming is better, how currying, functional composition, monads, etc, work etc...

Re:Boeing Flies on 99% Ada by eru on Monday September 01, 2014 @02:50AM (#8251780)
If only we could write the blogs in Haskell as well, for the awesome reduction in LoC.
Re:Boeing Flies on 99% Ada by mercurial on Monday September 01, 2014 @04:37AM (#8252010)
Well, you can write them in literate Haskell...
Re:Boeing Flies on 99% Ada by Artemis2 on Monday September 01, 2014 @07:01AM (#8252320)
Just use tons of monads!
Re:Boeing Flies on 99% Ada by eru on Monday September 01, 2014 @09:43PM (#8255422)
Monads are too mainstream. Applicative Functors is what it's at these days.
Re:Boeing Flies on 99% Ada by mercurial on Tuesday September 02, 2014 @05:33AM (#8256602)
But Monads are Applicative Functors. Go for arrows instead.
Re:Boeing Flies on 99% Ada by possibilistic on Sunday August 31, 2014 @10:44PM (#8251303)
Considering the importance of not crashing, both literally and figuratively, I can understand the need for that heavy of a software process. Isn't this par for the course in high CMMI [1] [2] organizations? I don't really know much about this side of engineering, but I find it fascinating.

Thanks for sharing the anecdote with us. :)

[1] http://en.wikipedia.org/wiki/Capability_Maturity_Model_Integ...

[2] http://boeing.mediaroom.com/2011-10-26-Boeing-Huntsville-Sit...

Re:Boeing Flies on 99% Ada by dscrd on Monday September 01, 2014 @12:21AM (#8251528)
CMMI seems to be mostly a moneymaking scheme directed at business types with no skill. In contrast, Boeing used actually effective engineering disciplines.
Re:Boeing Flies on 99% Ada by kamaal on Monday September 01, 2014 @01:04AM (#8251606)
>>CMMI seems to be mostly a moneymaking scheme directed at business types with no skill.

I beg to differ.

I started my career working for a CMM level 5 software services company. One of the first shocks I received after I entered the web industry was total lack of discipline here. There was barely any documentation in the web industry- No way to keep a track of a impact of a particular change, no design notes, not even a change log of whom to call in case something goes wrong, in the CMM level 5 firm we would have think of roll back scenarios even before we worked on the code.

In the web industry I saw, the idea of roll back planning didn't even appear to people. Yet the way I saw, a little documentation would have the whole team sane, and avoided more 50% of fire fighting we did on weekends.

Rules are boring, but when something large is at stake it generally is worth the process.

Re:Boeing Flies on 99% Ada by davidw on Monday September 01, 2014 @01:44AM (#8251670)
> Rules are boring, but when something large is at stake it generally is worth the process.

It's all about finding the right place on the curve, and not being behind it. Add huge amounts of process to most web projects, and yeah, they might turn out a bit better, but they'll cost too much for what the customer wants to pay.

You're right though in that too many web projects have virtually no process or rules, and that's not good either.

Re:Boeing Flies on 99% Ada by jacquesm on Monday September 01, 2014 @02:45AM (#8251766)
On the web we have decided to painfully re-learn all the lessons from the last 40 years, only with in-concistent output devices.
Re:Boeing Flies on 99% Ada by ExpiredLink on Monday September 01, 2014 @04:19AM (#8251966)
That's why Agile was invented. It codified the existing practices and redefined them as virtues.
Re:Boeing Flies on 99% Ada by Pxtl on Monday September 01, 2014 @09:05AM (#8252612)
Deployment is not development. You can do a lightweight development process and a heavyweight deployment process. At my company we manage our development with a scrum-ish approach but getting anything into production requires an ITIL change.
Re:Boeing Flies on 99% Ada by java-man on Monday September 01, 2014 @01:09AM (#8251616)
No one gets hurt if a web server goes down... right?
Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @04:22AM (#8251970)
If it happens to monitor a life critical service...
Re:Boeing Flies on 99% Ada by ArkyBeagle on Monday September 01, 2014 @03:17PM (#8254293)
So don't do that. Ever.
Re:Boeing Flies on 99% Ada by genericresponse on Sunday August 31, 2014 @11:23PM (#8251384)
I worked in a CMMI 5 organization and it wasn't even close to this level for our developers. However, for our testers, project managers and business analysts it's probably pretty accurate.
Re:Boeing Flies on 99% Ada by drumdance on Sunday August 31, 2014 @10:50PM (#8251311)
Yeah, I can't imagine the QA process for, say, the satellite industry.
Re:Boeing Flies on 99% Ada by roedog on Sunday August 31, 2014 @11:08PM (#8251344)
Testing flight software is very intense. 50 KSLOC of C will take a few dozen man years to develop.

As a side note on terminology, QA means a very different thing in the aerospace industry. The function of QA in this world is to witness the tests and attest that we did indeed run the test as written. Usually in the form of stamping a printed procedure as it is followed. This mirrors the process used to test the mechanical and electrical parts. The testing of the software is called verification and validation testing not QA.

Re:Boeing Flies on 99% Ada by a-priori on Sunday August 31, 2014 @11:19PM (#8251371)
I can vouch for this. I once worked on a similar project, an OpenGL-based cockpit display unit for business aircraft (Honeywell DU-875/885).

We wrote it in MISRA C instead of Ada, purely for personal reasons.

Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @04:19AM (#8251963)
All software should strive for quality.

Sadly our industry only regards security as a cost that is often imposed by external processes.

It will only charge at large when companies start to be made accountable for their software, like in other industries.

In this regard the industry is still at its infancy.

Re:Boeing Flies on 99% Ada by yoran on Monday September 01, 2014 @05:56AM (#8252169)
Companies are made accountable if there are human lives at stake. Most of the time there isn't (if there's a bug in some accountancy software which requires the accountant to restart the program, the accountant's life is not at stake) but wasn't there that software bug in one of the Toyota cars (Prius I believe?), where the brakes didn't work anymore under certain conditions? I remember Toyota had to take all those cars back in and had law suits against them, so they were certainly made accountable for the software they wrote for that car.
Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @07:15AM (#8252349)
That is not IT, rather automobile industry. Software is a by product.
Re:Boeing Flies on 99% Ada by ilikevideos on Monday September 01, 2014 @04:52AM (#8252052)
Most software doesn't control a fuel-filled aluminum tube hurling through the air at 500mph.

Get over it.

Re:Boeing Flies on 99% Ada by CrLf on Monday September 01, 2014 @06:07AM (#8252196)
Correct, but even software that doesn't cause deaths on failure ends up causing real losses (often invisible).

Consider every time Word crashes and work is lost. There are billions of Word users out there, mostly being paid to use it. How much does that cost over the course of a year?

And the accumulated frustration from unreliable software, causing loss of productivity, resistance to change, stress... How much does that cost?

Re:Boeing Flies on 99% Ada by illumen on Monday September 01, 2014 @07:33AM (#8252383)
How much do the extra features shipped 5 years earlier save?

There are trade-offs to be made.

Re:Boeing Flies on 99% Ada by tankenmate on Monday September 01, 2014 @08:44AM (#8252558)
I suspect the point of diminishing returns for Word have long since been passed.
Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @07:14AM (#8252343)
My job is to take your job to offshore, because your boss doesn't care about quality.

Get over it.

Re:Boeing Flies on 99% Ada by ArkyBeagle on Monday September 01, 2014 @03:16PM (#8254288)
What's ironic to me is that we're shifting the blame from people who attack computer systems - either directly or indirectly through malware - to otherwise innocent ( although demonstrably lacking in one or more competencies ) developers. The developer community won't suffer for the additional rigor any, but still...

Releasing a virus is a tort at best. Cracking a site is a tort at best, and both are probably criminal behavior. Yes, I have this bias.

I've read enough history to know that there have been times when such interlopers ended up as heads on pikes outside city walls. Seems extreme to be sure, but still....

I am a great admirer of C.A.R. Tony Hoare, but virus writers and system crackers give him a "bootleggers and Baptists" common cause with them.

Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @05:49PM (#8254813)
When I buy a shitty product that doesn't work as expected, I get full return.

Software should be handled the same way.

However people learned to buy "shoes that explode at random week days" and now we have a quality mess.

Re:Boeing Flies on 99% Ada by foobarqux on Sunday August 31, 2014 @07:36PM (#8250864)
Where do you go after that type of ultra specialized experience?
Re:Boeing Flies on 99% Ada by coldtea on Sunday August 31, 2014 @07:40PM (#8250877)
Were ever you want?

If you have the kind of skills to write Open GL in Ada for Boeing, then you're not the kind of person who's depending on having rote-learn some latest tech (J2EE, RoR, Node, Go, whatever) and only can get jobs looking for that.

Re:Boeing Flies on 99% Ada by vonmoltke on Monday September 01, 2014 @02:14AM (#8251716)
I don't know. I frequently run into people who stereotype aerospace/defense software engineers as stodgy, inflexible dinosaurs.
Re:Boeing Flies on 99% Ada by jacquesm on Monday September 01, 2014 @02:48AM (#8251772)
That's most likely people who would not have the discipline or ability to write software at that level.
Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @04:21AM (#8251969)
Sorry just downvoted you when I wanted to upvote. Pesky mobile browsers.
Re:Boeing Flies on 99% Ada by zeeshanm on Sunday August 31, 2014 @10:02PM (#8251218)
Or you can start a startup.
Re:Boeing Flies on 99% Ada by joevandyk on Sunday August 31, 2014 @07:41PM (#8250880)
Wherever you want. I moved on to Ruby on Rails/e-commerce after leaving Boeing in 2006. At Boeing, I did a lot of C/C++/Ada/OpenGL.
Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @04:25AM (#8251973)
Retire to a tropical island with the savings gotten from the hourly rates.
Re:Boeing Flies on 99% Ada by atburrow on Sunday August 31, 2014 @08:54PM (#8251061)
Can I ask what her first name was? I used to work the exact same job. They moved all their operations to Oklahoma City and I helped with the transition.
Re:Boeing Flies on 99% Ada by SEJeff on Monday September 01, 2014 @11:20AM (#8253262)
Her name was Genevieve (Gen) and she worked with another girl name Jen. This was a few years back, around 2006-2008
Re:Boeing Flies on 99% Ada by angersock on Sunday August 31, 2014 @08:08PM (#8250954)
OpenGL from Ada?

That's a special sort of hell.

Re:Boeing Flies on 99% Ada by atburrow on Sunday August 31, 2014 @08:52PM (#8251057)
I worked on the B1-B Lancer as well. We never touched Ada with OpenGL. It was mainly C++ with VAPS (http://www.presagis.com/products_services/products/embedded-...). I'm not certain where they're getting the 99% Ada portion as a lot of it is in C or C++.

I got out of that space though. I do mobile application development now.

Re:Boeing Flies on 99% Ada by learc83 on Sunday August 31, 2014 @08:39PM (#8251028)
A friend of mine is rewriting Doom 3 in Ada.
Re:Boeing Flies on 99% Ada by archgoon on Sunday August 31, 2014 @08:45PM (#8251040)
Re:Boeing Flies on 99% Ada by learc83 on Sunday August 31, 2014 @10:06PM (#8251228)
Yep, that's the one.
Re:Boeing Flies on 99% Ada by techdragon on Sunday August 31, 2014 @08:54PM (#8251063)
What ever for... Masochistic enjoyment?
Re:Boeing Flies on 99% Ada by axman6 on Monday September 01, 2014 @12:15AM (#8251514)
Why do people seem to think Ada is painful? It's quite strict, but that's a blessing, not a curse. You end up making anything remotely dodgy but necessary very obvious, and in general well founded ideas are clear and concise. You can also define your program much more precisely and make sure that things never go wrong (You can't accidently treat an int and an enum)
Re:Boeing Flies on 99% Ada by yaantc on Monday September 01, 2014 @04:18AM (#8251961)
> Why do people seem to think Ada is painful?

I have a possible explanation on this. A lot of people only know Ada in passing, from classes. For someone fluent in another language typically derived from C, the syntax is very new and frustrating initially. People normally comfortable with coding in their preferred language become newbies again, making a lot of frustrating mistakes. And they hate Ada for it.

I've seen several persons being forced into using Ada for a longer time. Geek types, including two long haired ones. They all hated it initially, but after a while they all come to appreciate and enjoy it. Two of them ended up contributing to GNAT. The cross-over time is roughly around 6 months of full time work with Ada, so more than what you get from a class.

So I guess Ada is different enough to be frustrating at first, and most people don't use it long enough to come over the initial shock and appreciate the good sides of the language. They just hate it, and stay with the "Ada is bondage" meme. Too bad.

For any one interested in large software system design and languages, I recommend looking at the "Rationale for the design of the Ada programming language" book. Even if you don't like the result ;) it's an interesting analysis of the challenge of doing large, safety critical system software IMHO. Just read the latest version, the intial one (though interesting) is now dated and made some wrong bets, like using synchronous tasks as the base for concurrency because there was hope that a formal model enabling proving behavior would develop around it, and that never happened.

Re:Boeing Flies on 99% Ada by tankenmate on Monday September 01, 2014 @10:11AM (#8252890)
The reason that a formal model didn't arrive is because it's impossible; the foundation of concurrency is the ability to change state and return the previous state atomically (even if it is only one bit/byte; xref cmpxchg). This necessarily makes the system non deterministic. So building a base for concurrency from synchronous tasks is impossible unless those synchronous tasks are atomic from start to end; most tasks are more than one op code long.
Re:Boeing Flies on 99% Ada by rwallace on Monday September 01, 2014 @06:27AM (#8252248)
My experience with Ada was that it didn't actually make it any easier to make my code correct, because mixing up an int and an enum when you shouldn't is a trivial problem that's easy to fix in C (never mind that the majority of enums are actually labels for ints); the errors that were hard to figure out and costly to fix were the conceptual ones that were independent of language. Ada just made everything clumsier, more verbose and less readable for no benefit. I suspect on a larger project it would start significantly detracting from correctness by discouraging refactoring.
Re:Boeing Flies on 99% Ada by 0x1C3B00DA on Monday September 01, 2014 @11:35AM (#8253332)
Re:Boeing Flies on 99% Ada by rwallace on Monday September 01, 2014 @12:19PM (#8253581)
And yet when it came down to it, he chose to write all his code in C or C++. Actions speak louder than words.
Re:Boeing Flies on 99% Ada by axman6 on Monday September 01, 2014 @09:20PM (#8255342)
From memory, he made those comments after he'd been working for a long time in C/C++. He's since seen that language like Haskell and Ada which enforce much stricter requirements have a huge benefit to developers; the inital extra work to learn the language pays off when you get used to spotting even more bugs before you write them because you've been punched in the head by the error messages in the past. You begin to think about code not just from a "how doI get this done?" standpoint, but a "how do I get this done properly, safely and clearly, and make sure the compiler will catch me WHEN I make mistakes". Fixing bugs at development time is vastly less expensive than in testing or after release, so the extra errots can easily be justified.
Re:Boeing Flies on 99% Ada by 0x1C3B00DA on Monday September 01, 2014 @12:38PM (#8253672)
As far as I see the Ada Doom project is able to do more in less lines of code despite it being verbose (see https://github.com/AdaDoom3/AdaDoom3/blob/master/FOSDEM%20Pr...). For readability, clearly your argument is subjective. Its like saying English doesn't make any sense because it is nothing like Chinese which everyone knows
Re:Boeing Flies on 99% Ada by renox on Monday September 01, 2014 @11:41AM (#8253363)
OK, so how do you explain all these vulnerabilities caused by buffer overflow which happen in C but which would be much harder to produce in Ada?
Re:Boeing Flies on 99% Ada by rwallace on Monday September 01, 2014 @12:18PM (#8253576)
The sharpest edge of that language meeting bad design and sloppy or inadequate code review. Bad design is a problem in any language, safety critical projects need and typically have much better code review that would have caught the likes of Heartbleed, and every language has its particular sharp edges, e.g. the first launch of Ariane 5 would have successfully reached orbit had the code been written in C. (Yes, it would also have successfully reached orbit had that part of the code been adequately checked - see my above point about code reviews.)
Re:Boeing Flies on 99% Ada by renox on Tuesday September 02, 2014 @06:03AM (#8256703)
Or more realistically, your experience is on small projects, with only you coding so it is worthless, try opening a large C codebase and fixing all its flaws: good luck. Ada and its better strict typing is a pain for small projects which is why students don't like it but it really shines on large project (no, it doesn't fix all the issue but it helps). IMHO what should be done is to take Ada's semantic/strictness and wrap it around a less verbose syntax (1) because if the beginners hate the syntax then the language, no matter how good it is will NEVER take off (and even if it starts taking off it will fall down quickly: see Lisp).

1: yes, I know this was done on purpose but the lack of adoption of Ada EVEN AFTER there was free compilers available show that (IMHO) it was a mistake.

Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @04:27AM (#8251978)
The C cowboy culture won over the Algol safety one.
Re:Boeing Flies on 99% Ada by ArkyBeagle on Monday September 01, 2014 @03:29PM (#8254342)
I'd say it's closer to "The PC happened".
Re:Boeing Flies on 99% Ada by pjmlp on Monday September 01, 2014 @05:44PM (#8254794)
No. I never cared for C in the PC until forced to write code for those UNIX systems, starting with Xenix.

Until then Turbo Pascal and Modula-2 served me pretty well.

Re:Boeing Flies on 99% Ada by ArkyBeagle on Tuesday September 02, 2014 @07:54AM (#8257025)
The small tribe I ran with then found Turbo Pascal wanting and there was some issue with Modula-2, like it was bytecode-interpreted.

I don't regret learning 'C'. We had our own safety standards.

Re:Boeing Flies on 99% Ada by pjmlp on Tuesday September 02, 2014 @09:54AM (#8257524)
Modula-2, bytecoded?!? Where besides Lilith?

C safety is a oxymoron, which is only enforcable with externals tools.

I also don't regret learning C. It provided me a path to jump into C++ and use its features to close its C underpinnings into a dungeon, as much as possible.

Re:Boeing Flies on 99% Ada by ArkyBeagle on Tuesday September 02, 2014 @09:36PM (#8261127)
I honestly don't actually recall whether the Modula-2 toolchain was interpreted.

'C' safety is anything but an oxymoron. i don't even consider it all that difficult. It's an absolute pain the neck, but nobody said this is easy :)

Re:Boeing Flies on 99% Ada by 0x1C3B00DA on Tuesday September 02, 2014 @10:28PM (#8261252)
Time for a car analogy. If all languages are cars... I would call Ada's extra checking safety belts - they came with the car from the factory and are guaranteed, within certain amount, to keep you alive. With C you can either make your own safety belts (with duct tape or something), fit on aftermarket safety belts, or you can just be a good driver and not have an accident. I wouldn't call the C car safe, but that's just my opinion : p
Re:Boeing Flies on 99% Ada by jacquesm on Monday September 01, 2014 @02:46AM (#8251769)
Have you written code in Ada?
Re:Boeing Flies on 99% Ada by ArkyBeagle on Monday September 01, 2014 @03:19PM (#8254301)
It's all about gaining new habits.