home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20349 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.9 KB

  1. Path: sparky!uunet!ukma!gatech!ncar!mimbres.cs.unm.edu!sandia!dlewis
  2. From: dlewis@sandia.UUCP (Dave Lewis )
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why C over FORTRAN
  5. Message-ID: <787@sandia.UUCP>
  6. Date: 28 Jan 93 13:16:46 GMT
  7. References: <1993Jan19.091814.176@turtle.fisher.com> <1404@pivot-sts.sbi.com> <RVILLA.93Jan27211009@navier.ae.utexas.edu>
  8. Organization: Sandia Natl Labs, Div. 9224
  9. Lines: 30
  10.  
  11. In article <RVILLA.93Jan27211009@navier.ae.utexas.edu> rvilla@navier.ae.utexas.edu (reynaldo villarreal) writes:
  12. >
  13. >I am interested in the pros and cons of C vs. FORTRAN.(gcc vs f77 on a
  14. >Sun) I have to write code and have to give an informed choice to my
  15. >advisor on which to use.
  16.  
  17. The choice of one language over another has more to do with the problem you
  18. wish to solve than it does with the languages you have to choose from. FORTRAN
  19. is very good for numeric computations. In fact, some FORTRANs can handle 
  20. complex real numbers with very little work from the writter. On the other hand, 
  21. I've seem people try to do things with lists in FORTRAN and the tricks with 
  22. arrays that are required border on the grotesque! Also FORTRAN doesn't have 
  23. user definable data types (RECORDS) and most don't have much (if any) support 
  24. for structured programming.
  25.  
  26. Remember what FORTRAN is for: Number Crunching!
  27.  
  28. C is for systems programming.
  29.  
  30. Decide which your application is closer to and choose the right tool for 
  31. the job!
  32.  
  33. -----------------------------------------------------------------------------
  34. David Lewis
  35. It is inevitable that we shall eventually become indistinguishable from our 
  36. machinery! OR Computers, Martial Arts, and RPGs are better than Sex, Drugs, 
  37. and Rock n'Roll! Well ... Maybe not better than Sex!
  38. uucp:      ...{ucbvax | gatech}!unmvax!sandia!dlewis
  39. InterNet:  unmvax.unm.edu!sandia!dlewis   or   sandia!dlewis@unmvax.unm.edu
  40. -----------------------------------------------------------------------------
  41.