René's URL Explorer Experiment


Title: DO NOT MERGE: test-only AST ownership disposal prototype by youknowdot · Pull Request #9880 · RustPython/RustPython · GitHub

Open Graph Title: DO NOT MERGE: test-only AST ownership disposal prototype by youknowdot · Pull Request #9880 · RustPython/RustPython

X Title: DO NOT MERGE: test-only AST ownership disposal prototype by youknowdot · Pull Request #9880 · RustPython/RustPython

Description: DO NOT MERGE: test-only prototype, not a runtime fix Publish the unfinished AST-disposal investigation for review and continued work. This does not fix the Windows _pyrepl stack overflow or change production parser/compiler/VM behavior. The module is compiled only under cfg(test). Prototype Explicit ownership worklist instead of recursively destroying AST edges. Handles the pinned Ruff AST's 45 recursive-capable runtime_* field declarations in addition to semantic Transformer edges. Treats recursive ConstantValue::Tuple and Frozenset payloads as owned work items. Includes directly related small-stack tests for actual Ruff normal/recovered parses, synthetic runtime list/constant chains, and format-spec chains. Does not reuse the rejected shortcut that treats a successful Python recursion-limit check as a native-stack safety certificate. This reconstruction deliberately uses the simple iterative algorithm, not the prior bounded-chunk optimization. Older experimental timing is not validation of this reconstructed source. Unfinished / merge blockers No production ownership guard or integration into compiler, AST conversion, tokenizer, or WASM entry paths. Ownership must remain protected across early returns, transfers, and preprocessing subtree replacements, not just root destruction. Field coverage needs independent review and a robust maintenance strategy when Ruff's schema changes. The tests do not dynamically exercise every field or arbitrary runtime AST. Panic/unwind behavior has not been established. No same-baseline full-VM performance measurement. Worklist allocation and per-node dispatch may regress normal workloads; no performance claim is made. Windows, workspace tests, C-API tests, and workspace Clippy remain pending. Verification Current reconstruction compiled with rustc 1.99.0 --edition=2024 --test against existing debug rlibs for the pinned Ruff dependency. All three standalone module tests passed, zero ignored, on Linux (1.44 seconds). Each test runs its body on a 256 KiB thread stack. cargo fmt --all, git diff --check, and normal commit hooks passed (merge-conflict check, rustfmt, cspell; unrelated file hooks skipped). This direct-module check is not cargo test for the compiler/workspace. Full integration, Windows, C-API, workspace Clippy and performance remain unrun. Prior-environment test results are not counted as current verification. AI assistance: OpenAI Codex generated/reconstructed this prototype and its tests, performed the local checks, and drafted this description under the maintainer's instruction to publish unfinished work as an explicitly non-mergeable draft.

Open Graph Description: DO NOT MERGE: test-only prototype, not a runtime fix Publish the unfinished AST-disposal investigation for review and continued work. This does not fix the Windows _pyrepl stack overflow or change ...

X Description: DO NOT MERGE: test-only prototype, not a runtime fix Publish the unfinished AST-disposal investigation for review and continued work. This does not fix the Windows _pyrepl stack overflow or change ...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9880

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ec08de8e-7f18-e03a-210d-b7c4f3ea3b83
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC180:ADA9D:34E1069:43D5B2B:6B01D7F2
html-safe-nonce4e8340b40251ee401cc10e672babc8347c3b1c12d7cba3818c37250618d62753
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTgwOkFEQTlEOjM0RTEwNjk6NDNENUIyQjo2QjAxRDdGMiIsInZpc2l0b3JfaWQiOiI3Mzg0MzM0NTcyMjczNjUzNzQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca36ba0ee7bc076c12b990d167c41dce206b7572fd688b29460a57bf60ea9ade4
hovercard-subject-tagpull_request:5337461349
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9880/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altDO NOT MERGE: test-only prototype, not a runtime fix Publish the unfinished AST-disposal investigation for review and continued work. This does not fix the Windows _pyrepl stack overflow or change ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9880/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9880%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9880%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9880/files
Reloadhttps://github.com/RustPython/RustPython/pull/9880/files
Reloadhttps://github.com/RustPython/RustPython/pull/9880/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests132 (132)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowdothttps://github.com/youknowdot
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:wip/ast-owned-drop-20261116https://github.com/youknowdot/RustPython/tree/wip/ast-owned-drop-20261116
Conversation 2 https://github.com/RustPython/RustPython/pull/9880
Commits 2 https://github.com/RustPython/RustPython/pull/9880/commits
Checks 20 https://github.com/RustPython/RustPython/pull/9880/checks
Files changed https://github.com/RustPython/RustPython/pull/9880/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9880/files
DO NOT MERGE: test-only AST ownership disposal prototype https://github.com/RustPython/RustPython/pull/9880/files#top
Show all changes 2 commits https://github.com/RustPython/RustPython/pull/9880/files
a2a8756 WIP: incubate ownership-aware AST disposal in tests youknowdot Nov 16, 2026 https://github.com/RustPython/RustPython/pull/9880/commits/a2a8756fdc04ba6b966a2bfa7ff97f8c9aae81db
b4e21a6 Fix Clippy imports and loops in AST disposal prototype youknowdot Nov 16, 2026 https://github.com/RustPython/RustPython/pull/9880/commits/b4e21a65af0255fa5006065159df464712d73ae1
Clear filters https://github.com/RustPython/RustPython/pull/9880/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9880/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9880/files
lib.rs https://github.com/RustPython/RustPython/pull/9880/files#diff-560e1ff98a1fe1161356b6c726aeb89f8c5e9764ccd2f4fb4dfa7143508d09e7
owned_drop_wip.rs https://github.com/RustPython/RustPython/pull/9880/files#diff-2c66e613b960f0696eec527ceb0c55c2ae074dc3b619b198f97f325d53fccf96
crates/compiler/src/lib.rshttps://github.com/RustPython/RustPython/pull/9880/files#diff-560e1ff98a1fe1161356b6c726aeb89f8c5e9764ccd2f4fb4dfa7143508d09e7
View file https://github.com/RustPython/RustPython/blob/b4e21a65af0255fa5006065159df464712d73ae1/crates/compiler/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9880/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9880/files#diff-560e1ff98a1fe1161356b6c726aeb89f8c5e9764ccd2f4fb4dfa7143508d09e7
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9880/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9880/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.