home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / edu / 1503 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  2.7 KB

  1. Xref: sparky comp.edu:1503 comp.lang.fortran:3399 comp.lang.misc:2909
  2. Path: sparky!uunet!wupost!cs.utexas.edu!uwm.edu!ogicse!unmvax!cs.sandia.gov!mccurley
  3. From: mccurley@cs.sandia.gov (Kevin McCurley)
  4. Newsgroups: comp.edu,comp.lang.fortran,comp.lang.misc
  5. Subject: Re: Scientists as Programmers (was Re: Small Language Wanted)
  6. Message-ID: <1992Sep3.021822.14559@cs.sandia.gov>
  7. Date: 3 Sep 92 02:18:22 GMT
  8. Article-I.D.: cs.1992Sep3.021822.14559
  9. References: <92245.124125KGZXK@ASUACAD.BITNET>> <MEISSNER.92Sep120283 <9224622.17597@mulga.cs.mu.OZ.AU>
  10. Sender: usenet@cs.sandia.gov (Another name for news)
  11. Organization: Sandia National Laboratories, Albuquerque, NM
  12. Lines: 40
  13.  
  14. In article <9224622.17597@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
  15. >>C++.
  16. >
  17. >Exactly. What's more, with C++ I can have arbitrary precision integers,
  18. >arbitrary precision rational numbers, fixed point real numbers, etc.
  19. >(all of these are available using GNU's libg++). If you want
  20. >quaternions, then it's no big deal to add them too.
  21.  
  22. I am getting pretty tired of this thread, but there are lessons to be
  23. learned.  I personally do my programming in C because it allows me to
  24. get close to the silicon and manipulate data structures at high speed
  25. as is needed for my branch of science.  Others in my lab use Fortran
  26. for several good reasons: 
  27.  
  28. 1.  the existing code in their area of science is worth leveraging.
  29. 2.  Fortran manipulates integers, floats, and arrays.  Coincidentally
  30. these are the same things that silicon usually manipulate, and the
  31. thing that scientists most often need to compute with.  This makes it
  32. easier for the programmer to write efficient code (from a runtime
  33. viewpoint).
  34. 3. It provides some degree of portability between suns, sgis, crays, 
  35. and intel and ncube parallel machines.
  36.  
  37. We have access to the fastest computers (serial, parallel, and
  38. vector), but the solution is not to just get faster processors to make
  39. up for sloppy code.  One of the groups that consumes the largest
  40. amount of Cray time here at Sandia decided to switch to C++ to gain an
  41. advantage in code maintainability, but this change is not for free.
  42. One cost of C++ is that it hides the operations performed by Silicon
  43. (a good example is the problem of temporary copies).  Another lies in
  44. the fact that good (read efficient) C++ compilers are hard to come by.
  45.  
  46. I am always amused by the language wars.  It reminds me of the car
  47. salesman that tries to sell me a two door because that is what he
  48. sells, rather than what I need.  In the end the marketplace will
  49. decide this issue, and I predict that Fortran, C, C++, and even Cobol
  50. will find some prosperity in the future.  
  51.  
  52. Kevin McCurley
  53. Sandia National Laboratories
  54.