In this discussion
https://lists.gnu.org/archive/html/guile-user/2022-02/msg00113.html
we hinted on the possibility of having a Guile Cookbook, along the lines of
the Guix Cookbook
Is there any interest/possibility to have such a cookbook hosted within the
Guile official documentation (as it is
(define (f x)
(let lp ((i 0))
(if (< i 10)
(begin
(pk 'value-from-parent (pause x i))
(lp (+ i 1))
(define (test-1)
(let ((x (make-pause-stack))
(ret 0))
(let lp ((i 0))
(let-values (((k x) (resume x (- i
(cond
((= k
Hi,
I'm trying to understand this.
The example of a generator which you give below counts upwards, but I don't
see how the value of n is passed out of the generator.
Could you give another example of a generator which does pass out the
values, along with a usage case which prints out the values
-- Forwarded message -
From: Stefan Israelsson Tampe
Date: Sat, Feb 12, 2022 at 5:04 AM
Subject: Re: Pausable continuations
To: Vijay Marupudi
I would say that they represent the same idea but that using separate
stacks is an optimization and I intended to explore what to
gain
The case with A simple loop of 20M operations are now down to 0.3 s that's
almost 20X improvements over
the best delimited continuation example (6s). Cpython takes 0.5s!
On Fri, Feb 11, 2022 at 1:10 PM Stefan Israelsson Tampe <
stefan.ita...@gmail.com> wrote:
> Hmm, I can improve the delimited