unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* What are the arguments in favor of delay/force in eval.c?
@ 2005-12-06 21:14 Rob Browning
  2005-12-07 21:31 ` Kevin Ryde
  0 siblings, 1 reply; 10+ messages in thread
From: Rob Browning @ 2005-12-06 21:14 UTC (permalink / raw)



Does anyone know what the arguments are, if any, for implementing
delay and force directly in eval.c rather than more generically, at
the Scheme level, perhaps in boot-9.scm via define-record, lambda,
etc.?

  (define-record promise
    ...)

  (define-syntax (delay exp) ... (make-promise ... (lambda () (exp) ...) ...))

  (define-syntax (force promise) ... ((promise-get-thunk promise)) ...)

Is the primary argument efficiency?

I ask because I was thinking about SRFI-45 (perhaps in prelude to
SRFI-40) and was trying to determine what Guile specific constraints
might apply to an implementation.

   SRFI-45: Primitives for Expressing Iterative Lazy Algorithms
   SRFI-40: A Library of Streams

If these were added to Guile, then we might want the SRFI-40 delay and
force to just replace our existing implementations.

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-12-14 21:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-06 21:14 What are the arguments in favor of delay/force in eval.c? Rob Browning
2005-12-07 21:31 ` Kevin Ryde
2005-12-07 22:47   ` Rob Browning
2005-12-08  0:29     ` Kevin Ryde
2005-12-08  0:52       ` Rob Browning
2005-12-10  0:11         ` Kevin Ryde
2005-12-10  4:23           ` Rob Browning
2005-12-14 21:10             ` Kevin Ryde
2005-12-08  0:57     ` Ken Raeburn
2005-12-08  1:28       ` Rob Browning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).