Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c > #751

Re: Continuations in C?

Date 2011-08-13 13:19 +0200
From Philipp Klaus Krause <pkk@spth.de>
Newsgroups comp.std.c
Subject Re: Continuations in C?
References <4e463a29$0$4151$6e1ede2f@read.cnntp.org> <j25icu$snr$1@news.albasani.net>
Message-ID <4e465db9$0$4149$6e1ede2f@read.cnntp.org> (permalink)
Organization CNNTP

Show all headers | View raw


Am 13.08.2011 12:02, schrieb BGB:
> for example, continuations would themselves either boil down to nasty
> stack-copying hackery (not a terribly good general-purpose strategy in
> general),

setjmp() / longjmp() already are nasty stack-adjusting hackery. The
stack-copying would be simple approach that would just work and could
quickly be implemented.
Compilers that care for performance could (if enough people use the
continuations to make it worth) instead handle them in a special way
(like e.g. code is directly being generated for memcpy() instead of a
functionc all). There are many variants of the stack-copying hackery
that are much more efficient than a simple unconditional full copy (see
e.g. "Implementation Strategies for First-Class Continuations" by
Clinger et alii).

Philipp

Back to comp.std.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Continuations in C? Philipp Klaus Krause <pkk@spth.de> - 2011-08-13 10:47 +0200
  Re: Continuations in C? BGB <cr88192@hotmail.com> - 2011-08-13 03:02 -0700
    Re: Continuations in C? Philipp Klaus Krause <pkk@spth.de> - 2011-08-13 13:19 +0200
      Re: Continuations in C? BGB <cr88192@hotmail.com> - 2011-08-13 12:29 -0700
    Re: Continuations in C? Philipp Klaus Krause <pkk@spth.de> - 2011-08-15 09:49 +0200
      Re: Continuations in C? BGB <cr88192@hotmail.com> - 2011-08-16 10:53 -0700
  Re: Continuations in C? jacob navia <jacob@spamsink.net> - 2011-08-14 10:13 +0200
    Re: Continuations in C? BGB <cr88192@hotmail.com> - 2011-08-14 08:57 -0700
      Re: Continuations in C? Wojtek Lerch <wojtek_l@yahoo.ca> - 2011-08-14 23:38 -0400
        Re: Continuations in C? Philipp Klaus Krause <pkk@spth.de> - 2011-08-15 09:48 +0200
          Re: Continuations in C? BGB <cr88192@hotmail.com> - 2011-08-16 10:56 -0700
  Re: Continuations in C? Tim Rentsch <txr@alumni.caltech.edu> - 2011-08-30 15:36 -0700

csiph-web