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 — Cleanup: Possible removal of some `__wasi__` special case handling · Issue #156692 · python/cpython Open Labels OS-wasiextension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior) DescriptionAs a hopefully helpful cleanup task, I went through all the uses of I found a few, but the rest look like they are still needed. Happy to send PRs for the couple of ones at the top of the list which look like they can be safely removed. The rest of the list is probably not useful, but I figured I would include it for completeness in case I have made some incorrect assumptions that stand out. Full disclosure: I started off going through these one by one myself, but after the first pass to understand the patterns, I used Claude to scan and categorise the usages and to cross reference the Good candidates for removal:
This is now defined in
Looks like this was fixed by wasi-libc PR #391 (merged 2023-02-04); tracking issue #305 is still marked open but I think it could be closed now. Possible candiates for removal:
Introduced by gh-81793 / PR #132517 (May 2025) which doesn't explicitly mention why the Could possibly be removed for preview2/3 when dropping support for preview1:
wasi-libc implemented the Probably need to be kept:
Special cases for WASM Stack sizeI'm not super clear on the reasons for the smaller stack size limits. I suspect it's related to the 16MiB stack size specified here: Line 2500 in 41b3f0a
--stack-first is apparently the default now, so perhaps in future that can be removed).
I suspect these ones need to stay.
Threading stuffI didn't go as deep on the threading cases, but as far as I can tell all of these need to stay. There's still no
Unavailable featuresAlso didn't look closely at these ones, but I suspect they need to stay - I don't see the semantics of the cpu time clocks changing in WASI any time soon, also I'm not clear on what it would take to implement subinterpreters.
Vendored third-party codeChanges to these should be considered upstream.
Activity
MetadataMetadataAssigneesLabelsOS-wasiextension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior) ProjectsMilestoneRelationshipsDevelopmentIssue actions | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |