This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: How often are continuations created?
Telford Tendys <telford@eng.uts.edu.au> writes:
> If you are going to invoke the same continuation over and over then you
> pretty much have to copy EVERYTHING on the stack...
Yes of course. You have to copy the complete *control* stack
everytime you invoke a continuation -- or better: The continuation is
a normal procedure that copies its saved stack back to the "real"
stack and then executes a longjump.
But note that Keisuke's VM separates the control stack from the
environments and the code. Thus even unbounded stack copying
isn't as expensive as it is now.
Jost