Skip to content
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

JIT Compilation #113464

Open
brandtbucher opened this issue Dec 25, 2023 · 3 comments
Open

JIT Compilation #113464

brandtbucher opened this issue Dec 25, 2023 · 3 comments
Labels
3.13 new features, bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage type-feature A feature request or enhancement

Comments

@brandtbucher
Copy link
Member

brandtbucher commented Dec 25, 2023

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

@brandtbucher brandtbucher added performance Performance or resource usage interpreter-core (Objects, Python, Grammar, and Parser dirs) 3.13 new features, bugs and security fixes labels Dec 25, 2023
@Eclips4 Eclips4 added the type-feature A feature request or enhancement label Dec 25, 2023
@cosmicexplorer
Copy link

Do you have a writeup or other non-video explainer available, or is the PR itself the best reference for this technique?

@MarshalX
Copy link

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

@brandtbucher
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 new features, bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

4 participants