[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] multiple values in chicken
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] multiple values in chicken |
Date: |
Mon, 4 Feb 2008 07:22:09 +0100 |
On Feb 1, 2008 7:55 PM, Will Farr <address@hidden> wrote:
> Hi Kon,
>
>
> would be expensive. You must create a closure, cons up a rest list,
> and I bet that apply uses some C varargs magic that probably is much
> slower than a straight function call.
Something like that, yes.
> But, how hard would it be to
> specify a re-write rule which takes effect after CPS conversion which
> transforms
>
> (##sys#values k v1 ...)
>
> into
>
> (k v1 ...)
>
The "k" above is an "internal" procedure that is not the same as
a normal user procedure or one created by "call/cc", unfortunately.
It is also not possible (without static whole-world analysis) to infer
whether "k" actually is a multival continuation.
cheers,
felix
- Re: [Chicken-users] multiple values in chicken, (continued)
- Re: [Chicken-users] multiple values in chicken, felix winkelmann, 2008/02/04
- Re: [Chicken-users] multiple values in chicken, John Cowan, 2008/02/04
- Re: [Chicken-users] multiple values in chicken, felix winkelmann, 2008/02/04
- Re: [Chicken-users] multiple values in chicken, John Cowan, 2008/02/04
- Re: [Chicken-users] multiple values in chicken, Graham Fawcett, 2008/02/04