Why doesn't PyPy 1.7 implement a stack stack?

By default, the PyPy 1.7 build with the stack turned on does not allow running without limiting the depth of the recursion (directly).

Why?

Previus is building PyPy with a support stack for continuing the function call style and tail recursion.

I am not asking about coroutine related solutions, but looking for stack integration problems.

+4
source share
1 answer

the reason is that new continuums work on the os level stack, which is limited (however, they are much simpler than old conversions without a stack in the translation process)

ongoing work is being done for the jit continuum that stack experiments are gc-driven blocks

if it succeeds, the "limitless" stack for the stacks will be returned as simply allocating new stack blocks until you finish the memeory

+2
source

Source: https://habr.com/ru/post/1392379/


All Articles