home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / function / 975 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  2.0 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!wupost!waikato.ac.nz!comp.vuw.ac.nz!brian
  2. Newsgroups: comp.lang.functional
  3. Subject: Re: ** LAZY LANGUAGES FASTER?? **
  4. Message-ID: <Bs4tz2.7n4@comp.vuw.ac.nz>
  5. From: brian@comp.vuw.ac.nz (Brian Boutel)
  6. Date: Wed, 29 Jul 1992 04:04:13 GMT
  7. Sender: news@comp.vuw.ac.nz (News Admin)
  8. References: <1992Jul24.134857.23289@gdstech.grumman.com> <3737@svin02.info.win.tue.nl> 
  9.  <farrell.712286497@coral.cs.jcu.edu.au> <1992Jul28.140801.21895@crl.dec.com> <farrell.712373890@coral.cs.jcu.edu.au>
  10. Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
  11. Nntp-Posting-Host: circa.comp.vuw.ac.nz
  12. Lines: 32
  13.  
  14.  
  15. In article <farrell.712373890@coral.cs.jcu.edu.au>, farrell@coral.cs.jcu.edu.au (John Farrell) writes:
  16. |> In <1992Jul28.140801.21895@crl.dec.com> nikhil@crl.dec.com (R.S. Nikhil) writes:
  17. |> >In article <farrell.712286497@coral.cs.jcu.edu.au>, farrell@coral.cs.jcu.edu.au (John Farrell) writes:
  18. |> >>   *Non-strict* evaluation saves time by not evaluating arguments which are not
  19. |> >> needed.
  20. |> 
  21. |> >Pardon my nit-picking, but this is not true.  I refer you to my earlier posting
  22. |> >(last week?) in which I pointed out that evaluators CAN work on unnecessary
  23. |> >arguments while preserving non-strictness.
  24. |> 
  25. |>   My statement is true if you are implementing non-strict evaluation on a
  26. |> sequential machine, in which case speculative evaluation can cause
  27. |> non-termination unless you can prove that the argument being speculatively
  28. |> evaluated was needed, and at the very least speculatively evaluating an
  29. |> unneeded argument will waste time. Your nit-picking is pardoned :-).
  30. |> 
  31. |> 
  32. |> John
  33.  
  34. To pick a further nit, you can, of course, simulate parallel evaluation on a
  35. sequential machine, and so preserve non-strictness while working on unnecessary
  36. arguments.
  37.  
  38. --brian
  39.  
  40.  
  41. -- 
  42. Internet: brian@comp.vuw.ac.nz
  43. Postal: Brian Boutel, Computer Science Dept, Victoria University of Wellington,
  44.         PO Box 600, Wellington, New Zealand
  45. Phone: +64 4 471-5328   Fax: +64 4 495-5232
  46.