简体   繁体   中英

Why PyPy 1.7 desn't implement “stackless” stack?

Default build of PyPy 1.7 with stackless included in, does not offer the ability to run with no recursion depth limit (in straight way).

Why?

Previus builds of PyPy with stackless support continuation style of function call and tail recursion.

I'm not asking about solutions involving coroutines, but the looking for the problems of integration stackelss.

the reason is that the new continulets work on the os level stack, which is limited (however they are much more simple than the old stackless transform in the translation process)

there is a current work in progress for continulet jit that experiments with the stack being gc-managed blocks

if that is successfull, the "limitless" stack for stackless will be back in the form of just allocating new stack blocks till you run out of memeory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM