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