This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
implicit forcing and other lazy evaluation improvements
- From: Per Bothner <per at bothner dot com>
- To: "kawa at sourceware dot org" <kawa at sourceware dot org>
- Date: Fri, 03 Feb 2012 00:02:57 -0800
- Subject: implicit forcing and other lazy evaluation improvements
I've checked in a re-working of promises and streams.
Highlights:
- Semantics compatible with SRFI-45.
- Implicit forcing. This makes "lazy programming" more convenient.
- Blank promises - useful for passing data between processes,
logic programmming, and more.
- SRFI-41 streams re-implemented to use built-in promises.
Furthermore, stream-cons returns an immutable pair compatible
with standard car and cdr - except the car and cdr are promises.
See: http://www.gnu.org/software/kawa/Lazy-evaluation.html
Let me know if you see any bugs or typos or something confusing or missing.
--
--Per Bothner
per@bothner.com http://per.bothner.com/