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

  1. Xref: sparky comp.edu:1409 comp.lang.fortran:3282 comp.lang.misc:2805 sci.math:10699
  2. Path: sparky!uunet!van-bc!rsoft!agate!ames!pacbell.com!network.ucsd.edu!lyapunov.ucsd.edu!mbk
  3. From: mbk@lyapunov.ucsd.edu (Matt Kennel)
  4. Newsgroups: comp.edu,comp.lang.fortran,comp.lang.misc,sci.math
  5. Subject: Re: Scientists as Programmers (was Re: Small Language Wanted)
  6. Date: 29 Aug 1992 22:55:05 GMT
  7. Organization: Institute For Nonlinear Science, UCSD
  8. Lines: 68
  9. Message-ID: <17ov89INNdls@network.ucsd.edu>
  10. References: <17opl4INN5gb@roundup.crhc.uiuc.edu>
  11. NNTP-Posting-Host: lyapunov.ucsd.edu
  12. X-Newsreader: Tin 1.1 PL3
  13.  
  14. hougen@uirvlh.csl.uiuc.edu (Darrell Roy Hougen) writes:
  15. : mbk@lyapunov.ucsd.edu (Matt Kennel) writes:
  16. : >I personally would love a "Numerical Eiffel" type of language ...
  17. : Try "Sather".  It is an object-oriented programming language that is
  18. : competitive with Fortran in speed for complex problems.  Of course,
  19. : the object oriented dispatch makes it slightly slower for some types
  20. : of problems, but the designers have gone to great lengths to make it
  21. : fast.  The principle designer, Steven Omohundro, is a physics PhD
  22. : turned computer scientist, so that may explain why he is interested in
  23. : bridging the gap, as it were.
  24.  
  25. I've downloaded and compiled Sather already, and I really like what I've
  26. seen so far.  After seeing Sather, I can't understand how C++ could be so
  27. needlessly complicated.  I'm just about ready to switch, but I worry about
  28. not having my code usable by anybody else.
  29.  
  30. What I like:
  31.  
  32. 1)  Simple class structure and rules (though I think the CS gurus have some
  33.     problems which I don't completely understand).
  34.  
  35. 2)  Garbage collection.
  36.  
  37. A couple of things tho:
  38.  
  39. 1)  There is only one basic "loop" construct, which means that you have to
  40.     write i:=i+1  all the time just do do the most basic things.  Of course
  41.     it's only "surface syntax", but these things make a real difference
  42.     in real life.  In the jihad for simplicity, Oberon discarded the
  43.     FOR i:=1 TO N DO loop, but it was put back into Oberon-2 and I think
  44.     Sather's designers should do the same.
  45.  
  46. 2) Along the same lines what I really meant by "Numerical Eiffel" was array
  47.    index notation as I've described before, or something to get rid of all
  48.    those silly loops.  Perhaps this is taken care of as their parallel
  49.    extension?
  50.  
  51. 3) The library right now is too bare to be completely useful yet, even though
  52.    the README spells out great plans (better for my purposes than ANYTHING
  53.    I've ever seen.  K-D trees!).  No complex numbers yet.  Can't read binary
  54.    (big blocks of FP numbers) yet.
  55.  
  56. Implementation issues:
  57.  
  58. 1)  It compiles into "C", and the 2-d arrays are implemented in
  59.     Numerical Recipes style (pointers to arrays of pointers). It's not clear
  60.     this is best for speed, especially with newer compilers I guess.
  61.     Depends on the relative cost of reading memory vs computation.
  62.  
  63. 2)  It doesn't yet output code in such a way that little methods can
  64.     be inlined, say by compiling with GNU CC.  If this were to happen, I'd
  65.     think that Sather programs could be quite a bit *faster* than C++, as it
  66.     generates new, specialized, code for classes with type parameters.
  67.     (I.e LIST{INT} gets special treatment vs. LIST{FOOBAR})
  68.  
  69. : Sather is available from Berkeley via anonymous ftp.  However, I can't
  70. : seem to find the ftp site at the moment.  The author's email address
  71. : is om@icsi.berkeley.edu.  Be sure to mention Sather in the subject.
  72. : Darrell
  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.