From: Nala Ginrut <nalaginrut@gmail.com>
To: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Cc: guile-user@gnu.org, guile-devel@gnu.org
Subject: Re: guile-log and delimeted continuations
Date: Fri, 27 Sep 2013 10:53:04 +0800 [thread overview]
Message-ID: <1380250384.2898.26.camel@Renee-desktop.suse> (raw)
In-Reply-To: <14379934.SjYjgA6kID@warperdoze>
On Thu, 2013-09-26 at 17:14 +0200, Stefan Israelsson Tampe wrote:
> We would like to construct a continuation, howso? This will demand
> some trickery but in the end we would get it to work like
> (with-delimeted-continuation-tag tag
> (lambda () code ...)
> (lambda (kk a ...)
> ...))
>
We have call-with-prompt does the same work, but I'm not sure if you
want to re-implement it
> kk will be a meta continuation e.g. the state will be stored and a real
> continuation will be made by issuing k = (kk), we would still need to
> unwind explicitly (we will be at the state of the abort) and the we
> can use k just as a normal fact e.g. (k X Y Z). the meaning of issuing
> the continuation is that we will continue at the old state and when
> the (lambda () code ...) successes it will copy X Y Z to their values,
> reinstantiate the state at the beginning of (k X Y Z) and then unify
> the interpretation of X Y Z with the copied values. and continue after
> (k X Y Z) NICE!
>
> Anyway this is all words, I need to go into the fog and implement the
> stuff. All cheers and have a nice day/night!
>
> /Stefan
>
>
>
>
>
prev parent reply other threads:[~2013-09-27 2:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 15:14 guile-log and delimeted continuations Stefan Israelsson Tampe
2013-09-27 2:53 ` Nala Ginrut [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1380250384.2898.26.camel@Renee-desktop.suse \
--to=nalaginrut@gmail.com \
--cc=guile-devel@gnu.org \
--cc=guile-user@gnu.org \
--cc=stefan.itampe@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).