GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — Snapshot live code through its owner in the compiler adapter by youknowdot · Pull Request #9450 · RustPython/RustPython Conversation
|
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Merging this PR will not alter performance
Comparing Footnotes
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| pub struct CodeUnits { | ||
| // Construction provenance, never updated by runtime specialization. Keep | ||
| // original opcode identity: GET_ITER fixup does not apply to its specialized forms. | ||
| source: Box<[CodeUnit]>, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
really? disagree to this approach
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Agreed—the immutable construction provenance and layout policy are broader than CPython requires. CPython reconstructs and caches public bytecode from execution state plus monitoring metadata; its marshal constructor validation does not introduce this provenance layer. I propose retaining that model and narrowing this change to fresh execution storage when copying live code, without carrying specialization caches or unresolved monitoring wrappers. External-bytecode rejection and frozen decoding should be considered separately rather than bundled into this change. This is a proposed direction, not an implemented revision.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
pls do it
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Implemented in e065e68. The provenance/layout framework, external-bytecode rejection policy, and frozen-decoding rewiring are removed. The replacement is confined to the existing _testinternalcapi compiler adapter: snapshot through the owning PyCode.get_code, then recursively snapshot nested code constants after releasing the owner lock; current filenames come from the owner getter.
The PR title/body now describe this narrower scope and the pinned CPython basis. Focused VM check and strict Clippy passed, and normal commit hooks passed (the final hook change was formatting-only, verified against the checked source). No runtime/C-API or full workspace tests were run locally; new-head CI is pending. This does not claim general live-code cloning, malformed-bytecode safety, constant-identity preservation, or a complete fix for the broader monitoring consumer paths.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Merge main and remove the construction provenance, external-bytecode policy, and frozen decode framework. Snapshot live code in the internal compiler adapter through its owning PyCode, recursively preserving access to monitoring metadata and current filenames. AI assistance: OpenAI Codex performed source research, implementation, review response drafting, and guarded static validation. Runtime and C-API tests were not run. Assisted-by: OpenAI Codex: model version unavailable
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.