unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Cc: guile-devel@gnu.org
Subject: Re: a rehash of the question of optimizing some prompt ideoms
Date: Sat, 31 Aug 2013 00:35:20 -0400	[thread overview]
Message-ID: <87k3j232bb.fsf@tines.lan> (raw)
In-Reply-To: <2849568.naTrYEPBA4@warperdoze> (Stefan Israelsson Tampe's message of "Fri, 30 Aug 2013 20:54:35 +0200")

Hi Stefan,

Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:
> Delimeted continuations can be looked upon as a generalization of
> common lisps tagbody e.g. it's trivial to produce tagbody semantics
> with the help of prompts.

I haven't yet digested the rest of your email, but I wanted to point out
that prompts are not needed to produce Common Lisp 'tagbody' semantics.
All that's needed is a set of mutually-recursive local procedures that
tail call each other.  Each local procedure corresponds to a label, and
the tail calls correspond to GOTOs.

In fact, one of the earliest papers on Scheme, "LAMBDA, The Ultimate
Imperative" published in 1976, showed how to convert arbitrary Lisp
'PROG' forms into a very early version of Scheme.  Note that Lisp 'PROG'
was a combined 'let', 'block', and 'tagbody', and can do everything that
Common Lisp's 'tagbody' can do.

    Regards,
      Mark



  reply	other threads:[~2013-08-31  4:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30 18:54 a rehash of the question of optimizing some prompt ideoms Stefan Israelsson Tampe
2013-08-31  4:35 ` Mark H Weaver [this message]
2013-08-31  4:56   ` Mark H Weaver
2013-09-01 20:34 ` Stefan Israelsson Tampe

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=87k3j232bb.fsf@tines.lan \
    --to=mhw@netris.org \
    --cc=guile-devel@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).