-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
PEP 744: Add link to slides and clarification about LLVM dependency #3850
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3a9c890
Add link to slides and clarification about LLVM dep
savannahostrowski 9986b55
Fix line break
savannahostrowski 498f260
Merge branch 'main' into pep-744-updates
savannahostrowski 3c44f2f
Merge branch 'main' into pep-744-updates
savannahostrowski 38ae3de
Merge branch 'main' into pep-744-updates
savannahostrowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
PEP: 744 | ||
Title: JIT Compilation | ||
Author: Brandt Bucher <[email protected]> | ||
Author: Brandt Bucher <[email protected]>, | ||
Savannah Ostrowski <[email protected]>, | ||
Discussions-To: https://discuss.python.org/t/pep-744-jit-compilation/50756 | ||
Status: Draft | ||
Type: Informational | ||
|
@@ -33,7 +34,7 @@ the following resources: | |
JIT at the 2023 CPython Core Developer Sprint. It includes relevant | ||
background, a light technical introduction to the "copy-and-patch" technique | ||
used, and an open discussion of its design amongst the core developers | ||
present. | ||
present. Slides for this talk can be found on `GitHub <https://github.com/brandtbucher/brandtbucher/blob/master/2023/10/10/a_jit_compiler_for_cpython.pdf>`__. | ||
|
||
- The `open access paper <https://dl.acm.org/doi/10.1145/3485513>`__ originally | ||
describing copy-and-patch. | ||
|
@@ -534,6 +535,12 @@ executable. These issues are no longer present in the current design. | |
Dependencies | ||
------------ | ||
|
||
At the time of writing, the JIT has a build-time dependency on LLVM. LLVM | ||
is used to compile individual micro-op instructions into blobs of machine code, | ||
which are then linked together to form the JIT's templates. These templates are | ||
used to build CPython itself. The JIT has no runtime dependency on LLVM and is | ||
therefore not at all exposed as a dependency to end users. | ||
|
||
Building the JIT adds between 3 and 60 seconds to the build process, depending | ||
on platform. It is only rebuilt whenever the generated files become out-of-date, | ||
so only those who are actively developing the main interpreter loop will be | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.