emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recursion to iteration macro


From: Emanuel Berg
Subject: Re: recursion to iteration macro
Date: Sat, 23 Mar 2024 11:40:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

tomas wrote:

>>> At least for tail-call recursion, named-let will turn
>>> recursive code into iterative code.
>>>
>>> But generally speaking, if you need to accumulate data on
>>> the stack, then it becomes a lot more difficult.
>> 
>> Why is that so difficult, isn't a stack just a list with
>> `push' and `pop'?
>
> Only usually *much* more efficient.

How do you propose the virtual stack be implemented?

The goal is to have recursion syntax but iteration execution
transparently and seamlessly, other than that we will just
make it as efficient as possible.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]