Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #22717] [PATCH] take 2: convert parrot to continuation passing style

6 views
Skip to first unread message

Dan Sugalski

unread,
Jun 17, 2003, 9:26:53 PM6/17/03
to perl6-i...@perl.org, bugs-bi...@netlabs.develooper.com
At 7:58 PM +0000 6/16/03, Jonathan Sillito (via RT) wrote:
>[perl #22633] [PATCH] convert parrot to continuation passing style" is
>outdated. Attached is a less ambitious patch to convert parrot to
>continuation passing style. Here is a summary of the ops (recall that the
>continuation gets stored in P1):
>
> invokecc # standard invoke
> invoke P1 # standard return
> invoke # tail call (leave P1 as is)

While I think I want to change the names a bit, that can wait. Until
then, applied, thanks! :)
--
Dan

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

K Stol

unread,
Jun 22, 2003, 8:59:30 AM6/22/03
to perl6-i...@perl.org
Hello,
Somehow I lost track of the thread of converting Parrot to CPS.
Some time ago, I read on www.sidhe.org/~dan/blog:
" That is, assuming we do CPS, which we don't right now. Though that may
well change."

Then, I blinked my eyes one or two times (well maybe 3, 4, 5 times :-), and
Parrot has already been converted to CPS (or it's being converted). I think
I missed the part in which the decission was made to do this. I can't find
it in the mailing list.
I'd like to know what the reasons were to convert Parrot to CPS. (a link to
the posting will do)
Thanks in advance.

Sorry for my inattentiveness.
Klaas-Jan

Leopold Toetsch

unread,
Jun 22, 2003, 9:59:37 AM6/22/03
to K Stol, perl6-i...@perl.org
K Stol <k_s...@hotmail.com> wrote:
> Hello,
> Somehow I lost track of the thread of converting Parrot to CPS.

> I missed the part in which the decission was made to do this. I can't find


> it in the mailing list.

It probably started on p6i with Dans post: "More sub/method call stuff"

> Klaas-Jan

leo

Luke Palmer

unread,
Jun 22, 2003, 11:08:39 AM6/22/03
to l...@toetsch.at, k_s...@hotmail.com, perl6-i...@perl.org

Yeah, about there. But he just kinda said "We're going to CPS". I,
for one, am curious why.

Luke

Dan Sugalski

unread,
Jun 22, 2003, 12:04:36 PM6/22/03
to Luke Palmer, l...@toetsch.at, k_s...@hotmail.com, perl6-i...@perl.org

Because I finally realized that we had to save off so much state that
we essentially had a continuation anyway, and might as well just make
it formal and save all the hassle. I'll give more detail later. (On
the way out)

0 new messages