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

  1. Xref: sparky comp.lang.misc:2751 comp.lang.logo:168 comp.lang.scheme:2067 comp.lang.forth:2988 comp.edu:1294
  2. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!mikc
  3. From: mikc@hal.gnu.ai.mit.edu (Mike Coughlin)
  4. Newsgroups: comp.lang.misc,comp.lang.logo,comp.lang.scheme,comp.lang.forth,comp.edu
  5. Subject: Re: Small Language Wanted
  6. Message-ID: <1992Aug21.140111.24487@mintaka.lcs.mit.edu>
  7. Date: 21 Aug 92 14:01:11 GMT
  8. References: <41910@skye.dcs.ed.ac.uk>
  9. Sender: news@mintaka.lcs.mit.edu
  10. Organization: /etc/organization
  11. Lines: 44
  12.  
  13. In article <41910@skye.dcs.ed.ac.uk> gvw@epcc.ed.ac.uk (Greg Wilson) writes:
  14. >[apologies if this is a re-post --- problems first time around]
  15. >
  16. >Hello.  I am looking for a small language to use and modify for teaching
  17. >purposes.  Features I want include:
  18. >
  19. >* small, simple implementation in C (at most one week for a senior
  20. >  student with a C/Unix background to read and understand source).
  21. >
  22. >* very simple syntax --- preferably only a single syntactic form,
  23. >  like Scheme, Logo, and Forth.
  24. >
  25. >* textual scoping of variables (which (sigh) rules out Logo itself)
  26. >
  27. >* logical, integer, floating-point, and string data types (I'm
  28. >  happy to have single characters treated as 1-length strings)
  29. >
  30.     Your goals are mutually exclusive. You ask for a simple language
  31. and then want to include many complicated features. There are versions
  32. of Forth available in the form of C programs. You can get a good one
  33. by ftp from prep.ai.mit.edu as part of the gnu collection. Look for 
  34. the file called tile.2.1.tar.Z. Since it is written in C and does
  35. not exactly follow usual Forth practices, it is named a "threaded
  36. interpretive language" or TIL.
  37.  
  38. >  I regularly lambast physicists for using "old" languages like Fortran,
  39. >  so I feel I should set a good example for students by using some
  40. >  modern ideas myself)
  41.   As a user of Fortran, I must protest the idea that Fortran is an 
  42. old language. Since structured programming concepts were introduced
  43. into Fortran many years ago, there are no "modern" programming ideas
  44. that are need in Fortran to accomplish its purpose of scientific
  45. and mathematical computation. The mathematical notation used by 
  46. physicists is an old language and they don't have much interest in
  47. changing it. So why should they want to switch from Fortran? Perhaps
  48. if other computing languages included things like exponential operations
  49. ( ** ), and complex number arithmetic there would be more reason to use
  50. something besides Fortran.
  51.   The best new idea that physicists (and every other programmer) should
  52. use is extensive commenting so human beings can read source listings.
  53. That would be the greatest advance since digital computers were invented.
  54.    Of course if you want a language that can be modified to include any
  55. new idea that you want to try, Forth is a very good choice. And I've
  56. heard that Lisp and Scheme are good for that too.
  57.