From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: Patrick F. McGehearty Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/09 Message-ID: <61iuna$3li@deadzone.rsn.hp.com>#1/1 X-Deja-AN: 279005856 Sender: patrick@rsn.hp.com References: <61cqkc$9r@news-rocq.inria.fr> <343AC71D.5531EE2D@powertelglobal.com> <343C1030.4A86F6D6@tonys.ecology.umn.edu> Organization: Convex Technology Center of Hewlett Packard, Richardson, Tx USA Reply-To: patrick@convex.COM (Patrick F. McGehearty) Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article <343C1030.4A86F6D6@tonys.ecology.umn.edu>, boo wrote: >Shankar Unni wrote: > >> But if I'm doing numerical analysis or linear regressions, I'll pick >> Fortran almost any day. > >Hahahah! linear regressions!! I can do those on my watch calculator!! >Hey, that is some high level stuff you are doing there, thank God >you have Fortran to help you out! I agree, with advanced (heh) stuff >like that, you need to have a specialized numerical language. If you think that you can handle serious numerical analysis on your watch calculator, you have no understanding of current issues in high end technical computing. Data set sizes often run to Gigabytes, and compute times on high end servers (that run in excess of 10Gflops) runs to days or weeks. The problem sizes will continue to grow as compute power per dollar grows to allow larger problems to be attacked. The problems are not just of academic interest. Most every major manufacturing company uses computer simulation before they start "bending iron" (actually its seldom iron these days). Technical computing applications include: simulation of the whole airplane to improve fuel economy and quietness, crash simulation of cars to improve occupant surviability, flow analysis of air filters for better durability and effectiveness, seismic data analysis to improve drilling success rates, modeling of chemical interactions to reduce time to market for new treatments for illnesses, and many others. The overwhelming majority of existing code in these market areas is in Fortran and C. New development is moving to C++ and Fortran90. In most of these areas, the common method of programming is to the computationally interesting part of the code in Fortran and the human interface part of the code in C. That method works because each language has areas where it is strongest. Some developers chose to forgo the advantages of using both languages in order to have only one development language, but they also pay a penalty, either in performance if they use only C or ease of development of elaborate data structures if they use only Fortran. All high-end vendors that I know of offer reasonable (and semi-portable) ways to mix Fortran and C. For example, Fortran arrays are column-major and C arrays are row-major. You mix them by being sure to reverse the order of array indices when going from one language to the other. If you want portable code, you avoid passing certain kinds of data structures between the Fortran and C portions of your (large) application. Character strings in particular tend to have non-uniform representations between vendors. But vectors of float (real*4) and double (real*8) tend to work the same on almost all vendors between C and Fortran. All this "my language is best because it is all I know" discussion is not very enlightening. Let's get back on the "language features which will aid/hender future architectures generate fast applications" topic. - Patrick McGehearty patrick@convex.hp.rsn