Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Fun with nondeterministic searches
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Sugalski  
View profile  
 More options Apr 6 2004, 11:49 am
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Tue, 6 Apr 2004 11:22:38 -0400
Local: Tues, Apr 6 2004 11:22 am
Subject: Re: Fun with nondeterministic searches
At 9:12 AM +0100 4/2/04, Piers Cawley wrote:

>Leopold Toetsch <l...@toetsch.at> writes:

>>  Piers Cawley <pdcaw...@bofh.org.uk> wrote:

>>>  When you make a full continuation with clone, can't you chase up its
>>>  continuation chain and mark its reachable continuations (and only those
>>>  continuations) as non recyclable? (This is one of the reasons I think
>>>  that a Continuation should have an explicit copy of the continuation
>>>  that was current when it was made, rather than relying on
>>>  savetop/pushtopp to capture it.)

>>  We need getting at the call chain anyway. But storing P1 elsewhere seems
>>  not to be the right thing. OTOH a subroutine using integers only would
>>  preserve it's context just with C<pushtopi>, if P1 is saved elsewhere.
>>  Your proposal smells like: the return continuation is normally hidden
>>  (i.e.  not in any register, just in the context). Some opcode like
>>  C<get_current_cont> makes it available for backtracking or such.

>That certainly makes sense to me; can anyone think of cases where
>having/making an explicit return continuation is a good thing?

I'm OK with moving the return continuation out of P1 and into
somewhere else--I can even see throwing it on the control stack. (Or
a special register, I can live with that as well)

Explicitly making the continuation is generally unneccessary--most
calls ought to be callcc type calls, with plain call with
user-supplied continuations for tail call situations or cases where
one wants to do Evil Things. (Which is why it ought always be
available)
--
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.