[issue45256] Remove the usage of the C stack in Python to Python calls

2022-01-06 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2022-01-05 Thread Mark Shannon
Mark Shannon added the comment: New changeset 332e6b972567debfa9d8f3f9a4a966c7ad15eec9 by Brandt Bucher in branch 'main': bpo-45256: Don't track the exact depth of each `InterpreterFrame` (GH-30372) https://github.com/python/cpython/commit/332e6b972567debfa9d8f3f9a4a966c7ad15eec9

[issue45256] Remove the usage of the C stack in Python to Python calls

2022-01-03 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher nosy_count: 10.0 -> 11.0 pull_requests: +28584 pull_request: https://github.com/python/cpython/pull/30372 ___ Python tracker

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-12-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-12-06 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-11-17 Thread Mark Shannon
Mark Shannon added the comment: https://bugs.python.org/issue45829 is the related issue for special methods -- ___ Python tracker ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-29 Thread Sam James
Change by Sam James : -- nosy: +thesamesam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-28 Thread Mark Shannon
Mark Shannon added the comment: New changeset 7f61d9d84843e3445f62eb00c47902f0daa30a72 by Mark Shannon in branch 'main': bpo-45256: Rationalize code around Python-to-Python calls a bit. (GH-29235) https://github.com/python/cpython/commit/7f61d9d84843e3445f62eb00c47902f0daa30a72 --

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately, seems that https://github.com/python/cpython/pull/28937 has broken the AMD64 FreeBSD Shared 3.x buildbot: https://buildbot.python.org/all/#/builders/483/builds/1003/steps/5/logs/stdio The buildbot was green until we merged this

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-27 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +27501 pull_request: https://github.com/python/cpython/pull/29238 ___ Python tracker ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-27 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +27498 pull_request: https://github.com/python/cpython/pull/29235 ___ Python tracker ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-18 Thread Mark Shannon
Mark Shannon added the comment: New changeset 70945d57e775b335eb58b734d82e68484063e835 by Mark Shannon in branch 'main': bpo-45256: Avoid C calls for most Python to Python calls. (GH-28937) https://github.com/python/cpython/commit/70945d57e775b335eb58b734d82e68484063e835 --

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-13 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +27226 pull_request: https://github.com/python/cpython/pull/28937 ___ Python tracker ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-13 Thread Mark Shannon
Mark Shannon added the comment: New changeset 3901c081143ef29624f9c1cb49cc70a70321d139 by Pablo Galindo Salgado in branch 'main': bpo-45256: Fix cleanup of stolen locals for Python-to-Python calls (GH-28905) https://github.com/python/cpython/commit/3901c081143ef29624f9c1cb49cc70a70321d139

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27196 pull_request: https://github.com/python/cpython/pull/28905 ___ Python tracker ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 543acbce5a1e23633379a853f38dc55b12f6d931 by Pablo Galindo Salgado in branch 'main': bpo-45256: Small cleanups for the code that inlines Python-to-Python calls in ceval.c (GH-28836)

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27152 pull_request: https://github.com/python/cpython/pull/28836 ___ Python tracker ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b4903afd4debbbd71dc49a2c8fefa74a3b6c6832 by Pablo Galindo Salgado in branch 'main': bpo-45256: Remove the usage of the C stack in Python to Python calls (GH-28488)

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Steve Dower
Steve Dower added the comment: The goal is reduced stack depth, not reframing the entire call model around not having a C stack. We can't even reasonably rewrite getattr() without supporting callbacks from C into Python, so further generalisation is very unlikely. But if you inspect the

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Christian Tismer
Christian Tismer added the comment: Very much appreciated approach. Too bad that things stop when people are writing extensions as usual. Or do you think we can teach them how to avoid the C stack? Anyway, good luck! -- ___ Python tracker

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We are starting to optimize first the easy cases of CALL_FUNCTION and move slowly to add more and more calls into it. This approach has the advantage that allow us to take it in small increments. -- ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Christian Tismer
Christian Tismer added the comment: FWIW, getting all function to avoid the C stack will most probably take a long time, if it happens at all. Especially functions which might call into Python multiple times must be re-designed heavily, turned into multiple pieces to be in tail position.

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Mark Shannon
Mark Shannon added the comment: PR 28488 has no NEWS entry, or What's New entry. However, adding multiple entries will be confusing, so that's best left until all calls to Python functions and method don't use the C stack. -- ___ Python tracker

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-24 Thread Christian Tismer
Christian Tismer added the comment: FYI., in Stackless Python I built a chain of frames by a double linked list. This was the replacement for the current frame/stack mix. Debugging was still quite easy, following this frame chain. Note that it is a rather easy step to add the capability to

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Though I wouldn't like to lose the ability to extract the Python stack by > inspecting native memory alone. Don't worry about it, I am personally making sure that keeps being possible. it will need some changes in the tools, but not any more that

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-23 Thread Steve Dower
Steve Dower added the comment: I fully support implementing the core idea of Stackless Python :) I spent a whole EuroPython a couple of years back discussing the idea with (apparently) everyone except Mark. Though I wouldn't like to lose the ability to extract the Python stack by

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-23 Thread Mark Shannon
Mark Shannon added the comment: I've trying to do this since about 2011 :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-23 Thread Christian Tismer
Christian Tismer added the comment: Hey guys, you know that you are about to implement the core idea of Stackless Python, right? :-D -- nosy: +Christian.Tismer ___ Python tracker

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-22 Thread STINNER Victor
Change by STINNER Victor : -- title: Remove the usage of the cstack in Python to Python calls -> Remove the usage of the C stack in Python to Python calls ___ Python tracker