home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / edu / 1556 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.9 KB

  1. Xref: sparky comp.edu:1556 comp.lang.fortran:3451 comp.lang.misc:2953 comp.arch:9252 sci.math:11051
  2. Newsgroups: comp.edu,comp.lang.fortran,comp.lang.misc,comp.arch,sci.math
  3. Path: sparky!uunet!das.wang.com!wang!news
  4. From: amos@huji.ac.il (amos shapir)
  5. Subject: Re: Scientists as Programmers (was Re: Small Language Wanted)
  6. Reply-To: amos@cs.huji.ac.il
  7. Organization: Mail to News Gateway at Wang Labs
  8. Date: 6 Sep 92 13:37:15 GMT
  9. Message-ID: <amos.715786635@shum>
  10. Followup-To: comp.edu
  11. References: <1992Sep3.020355.20338@u.washington.edu> <2!ln9fc@lynx.unm.edu> <1992Sep3.112944.20996@dbsun.uucp> <Bu08uF.HBC@mentor.cc.purdue.edu>
  12. Sender: news@wang.com
  13. Lines: 25
  14.  
  15. hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  16.  
  17. >The present compilers translate such things as +, *, &, etc., into
  18. >some version of assembler.  Why not allow the user to say how other
  19. >operations will be similarly translated, and add them to the list?
  20. >These operations often produce temporaries; why not tell the user
  21. >how this is done, and let them be added to the list?  These would
  22. >not really complicate the language design or the compiler, except
  23. >insofar as precedence is affected.
  24.  
  25. You want C++, then; or the GNU compilers, which do allow you to dive
  26. into the compiler's source and create whatever language extensions you
  27. wish to.  The problem is, you'll have no time left in which to do the
  28. job originally intended...
  29.  
  30. The point is, we can use very simple and flexible meta-tools like
  31. assembler or FORTH to create our own tools - and end up each using a
  32. personal hand-tailored language, unique and non portable; or use a
  33. standard tool which does implement some constructs efficiently and
  34. portably, but never all we'd ever need.
  35. --
  36.     Amos Shapir        Net: amos@cs.huji.ac.il
  37. Paper: The Hebrew Univ. of Jerusalem, Dept. of Comp. Science.
  38.        Givat-Ram, Jerusalem 91904, Israel
  39. Tel: +972 2 585706               GEO: 35 11 46 E / 31 46 21 N
  40.