Repository navigation
JIT Compilation #113464
Copy link
Copy link
Closed
Labels
3.13only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetopic-JITtype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
- addedperformancePerformance or resource usagePerformance or resource usageinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)3.13only security fixesonly security fixes
on Dec 25, 2023 - addedtype-featureA feature request or enhancementA feature request or enhancement
on Dec 25, 2023 Do you have a writeup or other non-video explainer available, or is the PR itself the best reference for this technique?
Do you have a writeup or other non-video explainer available, or is the PR itself the best reference for this technique?
Maybe this one will be helpful to you https://aha.stanford.edu/sites/g/files/sbiybj20066/files/media/file/aha_050621_xu_copy-and-patch.pdf
Do you have a writeup or other non-video explainer available, or is the PR itself the best reference for this technique?
There four main resources that I've been directing people towards... they each explain different things in different levels of detail:
- The white paper: high-level overview of copy-and-patch.
- The blog post: low-level implementation details for copy-and-patch.
- The YouTube video: high-level overview of CPython's approach to copy-and-patch.
- The pull request: low-level implementation details for CPython's approach to copy-and-patch.
Reacted by Jongwook Choi, Erlend E. Aasland, 叶芝秋, Tachimanga, pjmlp, Xor Byte, Caio Carvalho, Wojtek Rzepliński and tamaronReacted by Ilya Siamionau, Alexandre Ferreira, Loren McIntyre, Jongwook Choi, Xor Byte, Carlson Büth and Wojtek RzeplińskiDone! I'll be opening follow-up issues for further improvements to both the build process and the generated code.
Reacted by Hugo van Kemenade, Ilya Siamionau, jakirkham, Erlend E. Aasland, Helmy LuqmanulHakim, Caio Carvalho, Sem and soltanoff9 remaining items
- added a commit that references this issue
on May 24, 2024 - added a commit that references this issue
on Aug 14, 2024
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetopic-JITtype-featureA feature request or enhancementA feature request or enhancement
It's probably about time to start thinking seriously about just-in-time compilation. To kick things off, here's my talk from this year's sprint about "copy-and-patch", which I think is a really promising path forward: https://youtu.be/HxSHIpEQRjs
I'll also be opening a draft PR for discussion soon.
Linked PRs
aarch64-apple-darwin/clangto JIT CI #114759_SIDE_EXITin_EXIT_TRACE#118545cpython-bin-depson Windows #133278