-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-128563: A new tail-calling interpreter #128718
Open
Fidget-Spinner
wants to merge
89
commits into
python:main
Choose a base branch
from
Fidget-Spinner:tail-call
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+14,052
−439
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-Authored-By: Garrett Gu <[email protected]>
This reverts commit b9bedb1.
This reverts commit 982c51d.
hugovk
reviewed
Jan 16, 2025
markshannon
reviewed
Jan 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks to me as if we ought to make some preparatory changes before this PR.
I'll list them on the issue.
commit f89f147 Author: Ken Jin <[email protected]> Date: Sat Jan 25 11:18:43 2025 +0800 Address review commit e4a9de7 Author: Ken Jin <[email protected]> Date: Thu Jan 23 02:05:13 2025 +0800 Regen files commit 5d56130 Author: Ken Jin <[email protected]> Date: Thu Jan 23 02:00:44 2025 +0800 Address review by removing in test cases generator commit e1f9475 Author: Ken Jin <[email protected]> Date: Wed Jan 22 09:39:54 2025 +0800 Remove entry_frame commit 15ca6dd Author: Ken Jin <[email protected]> Date: Wed Jan 22 09:27:37 2025 +0800 fix upstream changes commit fdd4540 Merge: 1ec8033 86c1a60 Author: Ken Jin <[email protected]> Date: Wed Jan 22 09:27:31 2025 +0800 Merge remote-tracking branch 'upstream/main' into labels-in-dsl commit 1ec8033 Author: Ken Jin <[email protected]> Date: Tue Jan 21 20:16:42 2025 +0800 Lint commit c6df7a1 Author: Ken Jin <[email protected]> Date: Tue Jan 21 20:14:10 2025 +0800 cleanup diff commit 63a88ab Author: Ken Jin <[email protected]> Date: Tue Jan 21 20:13:12 2025 +0800 remove outdated file commit b911bb1 Author: Ken Jin <[email protected]> Date: Tue Jan 21 20:11:27 2025 +0800 Move labels into tier 1 generator commit af4bf1a Author: Ken Jin <[email protected]> Date: Tue Jan 21 15:52:53 2025 +0800 Add to generated files commit 3ae88a5 Author: Ken Jin <[email protected]> Date: Tue Jan 21 09:01:39 2025 +0800 lint commit 5cccb98 Author: Ken Jin <[email protected]> Date: Tue Jan 21 08:58:53 2025 +0800 Fix mypy commit 2082537 Author: Ken Jin <[email protected]> Date: Tue Jan 21 08:54:50 2025 +0800 Move labels in ceval.c to bytecodes.c
hugovk
reviewed
Jan 25, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Features:
Preliminary benchmark results here https://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20250107-3.14.0a3+-f1d3190-CLANG
TLDR (all results are pyperformance, clang-19, with PGO + ThinLTO unless stated otherwise):
More recent benchmark results:
https://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20250116-3.14.0a4+-df5d01c-CLANG
This initial implementation focuses on correctness. There's still room to improve performance even further. I've detailed performance plans in the original issue.
Changset:
configure.ac
to auto-detect when we can do this.opcode
in the call arguments because it might be modified by instrumented instructions.Credits also to Brandt and Savannah for the JIT workflow file.