From owner-freebsd-chat Thu Dec 9 13:35:56 1999 Delivered-To: freebsd-chat@freebsd.org Received: from nisser.com (c1870039.telekabel.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id EDBD4156EA; Thu, 9 Dec 1999 13:35:51 -0800 (PST) (envelope-from roelof@nisser.com) Received: from nisser.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id WAA10923; Thu, 9 Dec 1999 22:33:46 +0100 (CET) (envelope-from roelof@nisser.com) Message-ID: <38502053.28737F7B@nisser.com> Date: Thu, 09 Dec 1999 22:34:11 +0100 From: Roelof Osinga Organization: eboa - engineering buro Office Automation X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: David Scheidt Cc: Brett Glass , Tani Hosokawa , Jonathon McKitrick , Alfred Perlstein , Kris Kennaway , freebsd-chat Subject: Re: Yahoo hacked last night References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org David Scheidt wrote: > > I learned it in the context of functional languages which do > lazy-evaluation. A function call didn't need to return the actual result of > the function, but rather just a promise that the result would be evaluated > in the future, but only if the result were really needed for something. For > all intents, the thunk returned could be used in any way that the actual > result could. So it is easy to right an O(1) function to find the Nth digit > of Pi. Printing your result, though, could take a really long time. Why the past tense? I "recently" implemented one. Unfortunately I wrote it in Smalltalk on OS/2 (Digitalk's V/PM) so it has been sort of neglected since I moved away from that platform. You're right that they're inherently slow. OTOH they lend themselves quite well to automatic transformations and thus optimizations. Not the least of which is detecting when strict evaluation can be used. But their type correctness makes up for a lot. Will prevent a lot of errors and thus save a lot of time. With the continued increase in clock speed and RAM they could have a very good future ahead of them. Roelof -- Home is where the (@) http://eboa.com/ is. Telekabel home http://nisser.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message