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

  1. Xref: sparky comp.edu:1542 comp.lang.fortran:3434 comp.lang.misc:2938 comp.arch:9237 sci.math:11014
  2. Newsgroups: comp.edu,comp.lang.fortran,comp.lang.misc,comp.arch,sci.math
  3. Path: sparky!uunet!utcsri!geac!jtsv16!itcyyz!yrloc!rbe
  4. From: rbe@yrloc.ipsa.reuter.COM (Robert Bernecky)
  5. Subject: Re: Re: Scientists as Programmers (was Re: Small Language Wanted)
  6. Message-ID: <1992Sep4.144825.25070@yrloc.ipsa.reuter.COM>
  7. Reply-To: rbe@yrloc.ipsa.reuter.COM (Robert Bernecky)
  8. Organization: Snake Island Research Inc, Toronto
  9. References: <1992Aug25.154501.8654@colorado.edu> <1992Aug26.192410.6523@ultb.isc.rit.edu> <1992Aug27.154823.583@alchemy.chem.utoronto.ca> < <KERS.92Sep2081741@cdollin.hpl.hp.com>
  10. Date: Fri, 4 Sep 92 14:48:25 GMT
  11. Lines: 39
  12.  
  13. In article <KERS.92Sep2081741@cdollin.hpl.hp.com> kers@hplb.hpl.hp.com (Chris Dollin) writes:
  14. >In article ... KGZXK@ASUACAD.BITNET (Zafer KADI) writes:
  15. >
  16. >   There is no one wrong or right on the issue of :
  17. >
  18. >   1. FORTRAN or anyother language.
  19. >      All you Computer Science major that think Fortran is so bad    can
  20. >   you tell me anyother language that has all the forms of numbers
  21. >   that the scinetist use such as integers, real numbers and COMPLEX
  22. >   numbers. 
  23. >
  24. >Just to keep the record straight: Common Lisp and Poplog Pop11 both have
  25. >integers, floats, and complexes. They also have ratios. Scheme has them all in
  26. >the standard, but an implementation need only provide a coherent subset. 
  27. >
  28. >But this doesn't mean that I'm suggesting ``scientists'' (now *there's* an
  29. >abstract term!) should write in Pop.
  30.  
  31. APL and J support all of the above, as well as Boolean arrays and
  32. recursive arrays (Arrays whose elements are other arrays).
  33. Booleans are extremely useful in array computations. For example,
  34. blanks can be removed from a list X by the expression:
  35.     (~ X = ' ')/X
  36.  
  37. Another recent posting noted that " the CDC 6600 had a 'bit count'
  38. instruction, but NO language supports this".  In APL and J,
  39. the sum of any array is written as  +/X. If the array happens to be
  40. Boolean, then this can be implemented using bit count.
  41.  
  42. APL and J binaries (and J source) are available for anonymous FTP 
  43. from watserv1.waterloo.edu, in /languages/apl.
  44.  
  45. Bob
  46.  
  47. Robert Bernecky      rbe@yrloc.ipsa.reuter.com  bernecky@itrchq.itrc.on.ca 
  48. Snake Island Research Inc  (416) 368-6944   FAX: (416) 360-4694 
  49. 18 Fifth Street, Ward's Island
  50. Toronto, Ontario M5J 2B9 
  51. Canada
  52.