Linux Takes Flight on Northwest Simulators
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*.
Real FORTRAN programmers can write FORTRAN in any language
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...
I work in a combat simulations group, and every sim has FORTRAN at its core, either for the entire structure except for UI, or at least for the aerodynamic sections of code. I don't think that FORTRAN will ever be done away with, there is too much heritage with it out there. Modern Aerospace Engineering Degrees require FORTRAN (at least mine did), but C/C++ are all electives for the CS majors.
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...
-- toolie
One of my previous jobs was working with a quantum physics group that had a program to simulate quantum interaction... sort-of a chemistry lab simulator that does the reactions atom by atom.
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
I know both NWA and Opinicus. The rehost from Vax/VMS to Linux makes sense to me, actually the
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
you guys seem to think "Fortran" means fotran 77--F90/F95 is a pretty slick language. You have operator-overloads, pointers, built-in level 1 and (partially) 2 BLAS, derived types, etc. Check out Imagine's no-cost F translator (it's a subset of f90).
rot13 the email address.