From owner-freebsd-chat Wed Dec 8 21: 7:23 1999 Delivered-To: freebsd-chat@freebsd.org Received: from mail.enteract.com (mail.enteract.com [207.229.143.33]) by hub.freebsd.org (Postfix) with ESMTP id 4455315323; Wed, 8 Dec 1999 21:07:06 -0800 (PST) (envelope-from dscheidt@enteract.com) Received: from shell-3.enteract.com (dscheidt@shell-3.enteract.com [207.229.143.42]) by mail.enteract.com (8.9.3/8.9.3) with SMTP id XAA83504; Wed, 8 Dec 1999 23:05:30 -0600 (CST) (envelope-from dscheidt@enteract.com) Date: Wed, 8 Dec 1999 23:05:30 -0600 (CST) From: David Scheidt To: Brett Glass Cc: Tani Hosokawa , Jonathon McKitrick , Alfred Perlstein , Roelof Osinga , Kris Kennaway , freebsd-chat Subject: Re: Yahoo hacked last night In-Reply-To: <4.2.0.58.19991208204754.048bd8e0@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 8 Dec 1999, Brett Glass wrote: > Actually, "thunk" is a general term for a small snippet of code > that the compiler must generate to create a connection between > two parts of a program. 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. David Scheidt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message