Linux Takes Flight on Northwest Simulators 51
Rewbob writes "Northwest arlines is spending $34 million to convert its flight simulators to linux. "
Nifty practical applications. Normally when neat toys like this
come along, I beg for someone to send me one, but for some reason,
I don't expect NW to ship an airplane simulator over to the
Geek Compound. But the best part is that there will be one less
Fortran program out there *grin*.
Re:one less fortran program? (Score:3)
Ugh. I know this to be true. Back in the mid 80's I had the misfortune of seeing some code written by an old Fortran programmer that was purportedly C code... What it really was, was FORTRAN code that was just marginally close enough to C that it would pass through the compiler without errors (although prodigious warnings). Lint positively went postal at the sight of that code.
Imagine this: All the code was in the main(), no other functions were used (so sometimes the main was 20 or 30 pages of code). Flow control consisted mainly of liberal use of 'goto' to mostly numeric labels (like 'L010030'). Instead of using #define for constants, the programmer used global variables set to the value of the constant. The programmer didn't seem to understand C looping functions, so mostly did things with do and while loops instead of using for loops where appropriate. Things that should have been done with real data structures such as trees, linked lists, etc. were all done with arrays (apparently the guy didn't understand pointers). The programmer didn't seem to understand printf() very well either, so the way that he did output was abhorrent.
What a horrible, wretched mess. It segment faulted and bus errored right and left. I was glad I wasn't the guy who had to maintain that stuff...
Re:Pot calling the kettle black (Score:1)
Well, while you are correct that it wasn't my express intent with that post to do that, I do have an active dislike of Fortran and a fondness for C.
The post was just a funny story about the difficulties that occur when you take a verteran A programmer and try to make them a B programmer.
That was indeed the real intent of the post. I guess I struck a nerve with someone who either is a big Fortran fan or (obviously) a big time C/C++ hater.
I know I had a tough time once I left nursery school (Java) and moved out into the real world (C/C++).
On the other hand, going from C++ to Java is pretty easy (at least it was for me). Going directly from C to Java would be a bit more of a leap of course.
Re:Where, oh where did my FORTRAN go... (Score:1)
Try checking your math department. When I took computational linear algebra a few years ago, I had to pick up enough FORTRAN to get by since all of the in-class examples and many of the homework and test questions used it. C was allowed for some of the homework assignments, but the rest of the class was in FORTRAN.
(OTOH, if you took regular linear algebra instead of the computer-assisted variety, you could more than likely get through college without ever having to write a line of FORTRAN code.)
The airline industry RUNS on FORTRAN. :-) (Score:1)
I'm not sure which I dislike more -- ugly C code, or old Fortran V code which makes heavy use of arithmetic IFs and assigned GOTOs.
--
-Rich (OS/2, Linux, Mac, NT, Solaris, FreeBSD, BeOS, and OS2200 user in Bloomington MN)
Re:Now you know why Northwest sucks.. (Score:1)
If so, why SGI gave the infos on the new intel-based systems to the linux-developpers?? Why did they unroll the kernel-features the same day those machines were officially avalyable??
I do not think there is much need for SGIs in the future.... the PC Hardware will become the longer the more efficient concerning 3D.
FORTRAN Dead??? (Score:1)
USAF Flight sims/ B-52 (Score:2)
I guess it just goes to show, nothing TRULY obsolete. . .
Yes! (Score:1)
Re:Any Linux Flight Sims? (Score:2)
http://www.flightgear.org/ [flightgear.org] is an open-source flight simulator that has a port to Linux.
They describe on their website:
Re:Anyone remember.. (Score:1)
I don't think anyone deems corporate training
as "mission critical".
Flight safety *is* extermely important. However,
"mission critical" is usually reserved for systems
that if they didn't work your company would
be dead in water and not making money.
Northwest not being able to train pilots for a
day or two will not have an immediate impact on their bottom line. It would a pain in the butt
getting those pilots rescheduled, but planes
would still fly.
If their revenue management, reservation, or flight scheduling systems went off line. Those are critical. I suspect all of these are
chunging away on the corporate "big iron".
I'm not sure any company is up for betting
the large corporate fortune on a non-stop
performance of a beawolf cluster. Crunching
numbers for R&D isn't "Mission critical" either.
FORTRAN Will Never Die... (Score:3)
We are planning on porting one of the sims from IRIX to linux, but thats been planned for awhile. I'll just have to see what happens...
Re:Impressive (Score:1)
one less fortran program? (Score:1)
mission critical? (Score:1)
FORTRAN not dead yet. (Score:2)
Flight computer software compiles on Linux (Score:2)
Also a major jet engine manufacturer in the US has successfully compiled FADEC (Full Authority Digital Engine Control) software on Linux.
I know of at least one Unmanned Air Vehicle project which uses RTLinux.
Linux is nowhere close to flight certification but it could turn out to be a very useful system for flight systems development.
Re:Pot calling the kettle black (Score:1)
From what I gathered from the original post he/she was not tying to discredit FORTRAN or praise C. The post was just a funny story about the difficulties that occur when you take a verteran A programmer and try to make them a B programmer. I know I had a tough time once I left nursery school (Java) and moved out into the real world (C/C++).
Note: The comment above about Java and C/C++ was in no way intended to be against Java or for C/C++ :^)
Re:one less fortran program? Code translator?? (Score:1)
Are you sure this wasn't an old FORTRAN program that had been run through something like Cobalt Blue's FORTRAN-to-C translator? I played with^H^H^H^H^H^H^H^H^H^H^Hevaluated a copy of it back in the mid/late-80s and seem to recall it creating labels like that in the translated code.
Anyone remember.. (Score:2)
which analyst/columnist it was a month or so ago that issued a challenge looking for any mission-critical usage of Linux by a Fortune 500 company? I remember reading it on the web, some analyst going on about how no one was taking Linux seriously. Would love to be able to forward him this story.
Just another rabid Linux evangelist.
Re:Impressive (not trolling) (Score:2)
I'm really not trying to stand up and say, "See how great Linux is?" I titled the post "Impressive" because, well, _I_ was impressed when I read the article. (It was also a nod to Darth Vader in ESB)
No, I don't know the first thing about commercial flight simulators. All of my assumptions could be completely wrong. I would love for someone who knows something about this stuff to correct me, so I'll know if this really IS impressive.
Finally, despite what one moderator thinks, this was not meant as a troll. I was genuinely impressed that Linux would be chosen for such a task. I understand that probably no one else is interested in whether or not I'm impressed. I'm also sure that slashdot would be no worse off if I kept my little opinions and comments to myself.
I apologize if the original post was troll-like, but I promise that it was not my intent. You can tell when I'm trolling, because I'll log in as Anonymous Coward.
Re:Pot calling the kettle black (Score:1)
I'll be happy to put down any Fortran 77 or older. The incident described in the initial posting happened in the late 80's, way before Fortran 90 came out. I haven't seen enough Fortran 90 to make an honest judgement yet (and hopefully won't have the occasion to).
(and Fortran programmers),
I wouldn't put down all Fortran programmers, this particular guy probably wrote lousy Fortran code by Fortran standards.
while forgetting that the C language in is only marginally better.
C is a much better general purpose language than Fortran 77, and nearly infinitely better for systems programming.
One can just as easily put down C
C isn't perfect, but it provides everything necessary to write good code. Fortran 77 is missing a lot of things I consider necessary to write good code. That being said, C was written by experts, for experts, and it has a fairly steep learning curve for the inexperienced.
and C programmers.
There are good C programmers, and bad C programmers. Technically speaking, I wouldn't consider the guy who wrote the code I was describing a C programmer at all. He was a Fortran programmer trying to fool the C compiler into compiling thinly disguised Fortran code.
Most C programs are composed of really poor quality code.
The same thing could be said about just about any language. This doesn't necessarily mean the language is bad. It also doesn't mean that there isn't a lot of really good, clean C code out there. C provides what is necessary to write good code, but it doesn't go out of its way to force you to do it. It also provides a number of features which provide a tremendous amount of power that are dangerous if misused.
They consist of code that is not modular, a nightmare to read, figure out, maintain, and extend.
I've had to maintain some of it. I've also seen code in Pascal, various BASICk dialects and even some Java that was pretty horrid. Some of the code I've seen in other languages has been just as bad as the worst C code I've seen (other than IOCC entries of course). Even languages that attempt to force people to do the right thing can be circumvented by the truly lazy, truly clueless or truly warped.
C in fact encourages the writing really poor quality code because it is so primitive and lacks several important features while supporting some really awful features.
Oh please. I'm not saying that C is ideal for every use, but to say that it actively encourages bad programming is a little much. For some things C is the right tool for the job, for some others, C++, Java, Perl, etc.
Most C programs are also full of bugs.
Again, this is something that could be said about just about any language. I've seen plenty of buggy code written in languages that supposedly do more to try to insulate inexperienced, lazy or bad programmers from themselves.
Especially prominent are bugs cause by abnormal conditions which the programmer didn't think of or which are too much work to take care of in C.
The problem of not handling all abnormal conditions is in no way unique to C. I've seen this sort of bug in every language I've had the occasion to deal with.
See the "Fuzz Revisited" paper for ample evidence of this.
I've probably seen it before, but do you by chance have an URL?
"anal cutie" simulator (Score:1)
FORTRAN will never die.... (Score:3)
They started writing the code back in the late 60's, and are still writing it today. Of course, it's written entirely in FORTRAN. They still have a copy of the first version of the program... stored on punch cards. The original programmer (who's still working with the project) once gave me this prophetic quote:
"I don't know what computers will look like 20 years from now, but I know they will run FORTRAN."
I think he's probably right.
--Mid
Any Linux Flight Sims? (Score:1)
Linux flight simulator?
I've been a fan since my first
Sublogic simulator on my TRS80.
It was a Christmas gift.
Ole Bill slapped his brand name on it years
later.
Re:one less fortran program? (Score:1)
--
Re:one less fortran program? Code translator?? (Score:1)
Unless it generates significantly worse code than f2c (which I am familiar with), I doubt it. This code, if it was translated, appeared to have been done by hand. A friend of mine also had occasion to talk to the guy who wrote the code and he seemed to think it was hand written.
Re:FORTRAN Will Never Die... (I agree) (Score:1)
I am a mechanical engineer and I took FORTRAN, but the university I went to just removed the requirement for mechanical engineers to take FORTRAN because of the maturity and availability of software like MathCAD and Matlab which will do a good job of crunching numbers for the everyday general engineering work that most people do. Writing programs in FORTRAN used to be your only option.
Flight Sims and *ix (Score:5)
OS is not real critical as a Sim tends to use almost NO OS features in operation. Flight Sims run a realtime dispatcher on top of whatever OS they boot from, and newer Sims are distributed computing systems with the host OS doing little during operation. just for reference the new A320 and 777 Sims from Thomson use 15-25 Motorola VME CPU cards spread in cages both on the Sim and in the computer room, and one of those runs Mot SYSV unix and talks to the "host" Sun workstation , the rest all run a custom RTOS.
dave
No, it was NOT the "anal cutie". . . (Score:1)
AN/ = Electronics unit built for US Dept of Defense (Originally: Army/Navy)
A = Airborne application
L = Radar
Q = Countermeasures
T = Trainer
4 = 4th in this series of devices
Where, oh where did my FORTRAN go... (Score:1)
I think they *might* teach it somewhere on campus, but no one in thier right mind would take it becuase it's just wasted credits.
Sorry.
Northwest - as in Redmond WA territory (Score:1)
Wondering if Linux would be up to running a ticket/reservation system as well.
Chuck
Re:Where, oh where did my FORTRAN go... (Score:3)
Linux Flight Simulation (Score:1)
Re:Now just have to work on Personality....Bzzzzt (Score:1)
Impressive (Score:2)
-- This part of my post left blank for note-taking --
Re:Where, oh where did my FORTRAN go... (Score:1)
"I don't know what language I'll be programming with in [insert future year here], but I know it will be called FORTRAN."
Pot calling the kettle black (Score:1)
You seem to be putting down Fortran (and Fortran programmers), while forgetting that the C language in is only marginally better. One can just as easily put down C and C programmers.
Most C programs are composed of really poor quality code. They consist of code that is not modular, a nightmare to read, figure out, maintain, and extend. C in fact encourages the writing really poor quality code because it is so primitive and lacks several important features while supporting some really awful features. Most C programs are also full of bugs. Especially prominent are bugs cause by abnormal conditions which the programmer didn't think of or which are too much work to take care of in C. See the "Fuzz Revisited" paper for ample evidence of this.
Re:one less fortran program? (Score:1)
I remember the quote coming from Ed Post's famous "Real Programmers Don't Use Pascal" but it was
Close enough though.