home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / misc / 2756 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  3.4 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!swrinde!network.ucsd.edu!lyapunov.ucsd.edu!mbk
  2. From: mbk@lyapunov.ucsd.edu (Matt Kennel)
  3. Newsgroups: comp.lang.misc
  4. Subject: Re: Small Language Wanted
  5. Message-ID: <173ksiINNiov@network.ucsd.edu>
  6. Date: 21 Aug 92 20:49:22 GMT
  7. References: <1992Aug21.140111.24487@mintaka.lcs.mit.edu>
  8. Organization: Institute For Nonlinear Science, UCSD
  9. Lines: 66
  10. NNTP-Posting-Host: lyapunov.ucsd.edu
  11. X-Newsreader: Tin 1.1 PL3
  12.  
  13. mikc@hal.gnu.ai.mit.edu (Mike Coughlin) writes:
  14. : In article <41910@skye.dcs.ed.ac.uk> gvw@epcc.ed.ac.uk (Greg Wilson) writes:
  15. : >  I regularly lambast physicists for using "old" languages like Fortran,
  16. : >  so I feel I should set a good example for students by using some
  17. : >  modern ideas myself)
  18. :   As a user of Fortran, I must protest the idea that Fortran is an 
  19. : old language. Since structured programming concepts were introduced
  20. : into Fortran many years ago, there are no "modern" programming ideas
  21. : that are need in Fortran to accomplish its purpose of scientific
  22. : and mathematical computation.
  23.  
  24. I disagree.  There are some "modern" programming ideas that are necessary
  25. for scientific and mathematical computation, such as all the various types
  26. of 'tree data structures' and such things requiring dynamically allocated
  27. objects and some sort of pointer notion,
  28.  
  29. : The mathematical notation used by 
  30. : physicists is an old language and they don't have much interest in
  31. : changing it.
  32.  
  33. and even worse, there are alot of useful mathematical notions that should be
  34. in a mathematical programming language that have been defined away as
  35. uninteresting by the "modern" computer science community.  The surging
  36. importance of parallel computing (for which the primary users are
  37. scientists) might perhaps reverse the trend, but I'm not confident.
  38.  
  39. Examples:
  40.  
  41. 1)  One that I'd appreciate (this has been hashed over many times) is
  42.     array index notation.  A(i,j) = B(i,k)*C(k,j).  I do NOT think that
  43.     matrix and vector computations are best done by "overloading operators"
  44.     with a "class library".
  45.  
  46. 2)  Mathematicians (like the infamous Prof. Rubin) would probably enjoy
  47.     fast multiprecision arithmetic, though this wouldn't be as useful for 
  48.     scientists.
  49.  
  50. I'm sure that there are other examples, that I can't quite think of
  51. right now.
  52.  
  53. Notation for expressing standard mathematical computations
  54. (I'm not talking about logic or set theory or other esoterica like that)
  55. hasn't been substantially improved since original Fortran.
  56.  
  57. : So why should they want to switch from Fortran? Perhaps
  58. : if other computing languages included things like exponential operations
  59. : ( ** ), and complex number arithmetic there would be more reason to use
  60. : something besides Fortran.
  61.  
  62. Agreed.  It's unconscionable to make things *worse* than 1959 Fortran.
  63.  
  64. :   The best new idea that physicists (and every other programmer) should
  65. : use is extensive commenting so human beings can read source listings.
  66.  
  67. I think it's the clarity of thought that makes the real difference.
  68.  
  69. : That would be the greatest advance since digital computers were invented.
  70. :    Of course if you want a language that can be modified to include any
  71. : new idea that you want to try, Forth is a very good choice. And I've
  72. : heard that Lisp and Scheme are good for that too.
  73.  
  74. --
  75. -Matt Kennel          mbk@inls1.ucsd.edu
  76. -Institute for Nonlinear Science, University of California, San Diego
  77. -*** AD: Archive for nonlinear dynamics papers & programs: FTP to
  78. -***     lyapunov.ucsd.edu, username "anonymous".
  79.