You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Decided] Free-threaded CPython 3.15t is the only build; make every repo correct on it #158
Why the default stays GIL today: no free-threaded prebuilt for Android or iOS (checked 2026-08-12), so switching splits the threading, lifetime and thread-state design across platforms; free-threaded wheel coverage of C extensions is thin; our own code is not ready (PyType.getInstance cache race, GIL release after init not enabled (C-4), ROADMAP 9.1 open).
Recommendation:
Keep pythonFreeThreaded=false as the default.
Make every thisisthepy repo free-threaded-ready: no reliance on GIL atomicity; a required CI job on desktop 3.14t for python-multiplatform, TypedPython and pythonx-*; native extensions declare Py_MOD_GIL_NOT_USED only once proven thread-safe.
TypedPython free-threaded support as its own stage (see linked issue).
Binder issues: PyType cache race, GIL release after init, withGIL on JVM virtual threads.
Investigate building free-threaded CPython for Android and iOS ourselves.
Options: (a) the above; (b) switch desktop default to 3.14t now and accept the platform split; (c) do nothing until upstream mobile prebuilts exist.
Free-threaded is the default and the only build. The GIL build is not kept as an option.
Baseline is CPython 3.15t, not 3.14t. Reasons: PEP 803 (abi3t) is Final for 3.15, so one stable-ABI extension wheel serves the free-threaded build (pypackpack, the Cargo backend and TypedPython output); 3.15.0 final is scheduled for 2026-10-09 (PEP 790), before the 11-30 milestone; we are pre-1.0 with no users to keep on 3.14, and we build our own free-threaded CPython for Android and iOS anyway (Investigate: free-threaded CPython builds for Android and iOS built by us #163, now an implementation item).
Cost accepted: third-party cp315t / abi3t wheels lag the release for a while; pypackpack builds from sdist where they are missing; an extension without Py_mod_gil still runs and re-enables the GIL, and pypackpack warns at build time.
changed the title [-][Decision] Free-threaded readiness: keep GIL as default, make every repo correct on 3.14t[/-][+][Decided] Free-threaded CPython 3.15t is the only build; make every repo correct on it[/+]on Oct 3, 2026
Desktop half landed in develop via #398. Desktop JVM and desktop Kotlin/Native embed free-threaded 3.15t only, and -PpythonFreeThreaded is removed. Whether a platform is free-threaded is now set per platform (embedsFreeThreadedPython). CI on the branch: Desktop 43329515729 (desktopTest, linuxX64Test, notebook E2E including the native image), iOS 43306319317, Android Native 43306311299, WasmJS 43306326647, TypedPython 43306335397 and stubs 43306343765, all success. The first desktop run found four tests that assumed GIL-build or 3.14t behaviour; they were corrected for 3.15.0, with no product change. Mobile follows in #387 (#328) and wasm in #175.
Reopened: the owner put #175 (wasm on 3.15t) back in 1.0 on 2026-11-21 (via the leader, team report pmp-binder.md, "## Owner decision (2026-11-21, via the leader): #175 is back in 1.0"), which replaces the "after 1.0" answer this issue was closed on. Desktop, Android and iOS are done (#398, #328); this closes when #175 lands.
Closing per the criterion in the reopen comment: "this closes when #175 lands". #175 landed in develop via #542 (merged with #544 in the batch run 45848955214) and the leader closed it on 2026-11-26.
wasm: wasmJs embeds free-threaded CPython 3.15t with pthreads (#175) #542. wasmJs embeds CPython 3.15t with pthreads and shared memory (embedsFreeThreadedPython = true on wasmJs). In run 45848955214, wasmJsNodeTest ran 599 tests with 1 expected failure, and wasmJsBrowserTest ran 10 tests with 0 failures.
Still open, recorded rather than hidden: WasmCompiledWheelTest fails by design under -PrequireWasmRuntime until pypackpack Fix: Stubs list every Kotlin supertype that has a stub class #82 produces a cp315t pyemscripten wheel (leader Decision 10 (c) c1, 2026-11-26). androidNative arm64-v8a is compiled and packaged against 3.15t but is not run on a device in CI (as noted on 2026-11-21).
Activity
b-re-w commentedon Oct 3, 2026
Decided by the maintainer, 2026-10-04:
Follow-up: AGENTS §12.8, SPEC T-1/T-2/C-4, threading-and-abi.md, gradle.properties default, CPython pins.
[-][Decision] Free-threaded readiness: keep GIL as default, make every repo correct on 3.14t[/-][+][Decided] Free-threaded CPython 3.15t is the only build; make every repo correct on it[/+]Plugin: iOS consumer wiring is 3.15t only, no freeThreaded switch (#328)
Android, androidNative and iOS embed free-threaded CPython 3.15t (#328 …
Tests: assert 3.15t behaviour where four tests asserted GIL-build or …
Merge pull request #398 from thisisthepy/feat/desktop-ft-default
b-re-w commentedon Nov 13, 2026
Desktop half landed in develop via #398. Desktop JVM and desktop Kotlin/Native embed free-threaded 3.15t only, and
-PpythonFreeThreadedis removed. Whether a platform is free-threaded is now set per platform (embedsFreeThreadedPython). CI on the branch: Desktop 43329515729 (desktopTest, linuxX64Test, notebook E2E including the native image), iOS 43306319317, Android Native 43306311299, WasmJS 43306326647, TypedPython 43306335397 and stubs 43306343765, all success. The first desktop run found four tests that assumed GIL-build or 3.14t behaviour; they were corrected for 3.15.0, with no product change. Mobile follows in #387 (#328) and wasm in #175.Merge pull request #400 from thisisthepy/feat/ft-315-docs
b-re-w commentedon Nov 21, 2026
Closing per the criterion in the pmp-binder triage: closes when #328 is closed and #175 has the leader's 1.0 scope decision.
b-re-w commentedon Nov 21, 2026
Reopened: the owner put #175 (wasm on 3.15t) back in 1.0 on 2026-11-21 (via the leader, team report pmp-binder.md, "## Owner decision (2026-11-21, via the leader): #175 is back in 1.0"), which replaces the "after 1.0" answer this issue was closed on. Desktop, Android and iOS are done (#398, #328); this closes when #175 lands.
b-re-w commentedon Nov 27, 2026
Closing per the criterion in the reopen comment: "this closes when #175 lands". #175 landed in develop via #542 (merged with #544 in the batch run 45848955214) and the leader closed it on 2026-11-26.
embedsFreeThreadedPython = trueon wasmJs). In run 45848955214, wasmJsNodeTest ran 599 tests with 1 expected failure, and wasmJsBrowserTest ran 10 tests with 0 failures.WasmCompiledWheelTestfails by design under-PrequireWasmRuntimeuntil pypackpack Fix: Stubs list every Kotlin supertype that has a stub class #82 produces a cp315t pyemscripten wheel (leader Decision 10 (c) c1, 2026-11-26). androidNative arm64-v8a is compiled and packaged against 3.15t but is not run on a device in CI (as noted on 2026-11-21).