NewsCrawler.org

Python's experimental JIT to be removed

Python's experimental JIT[1] compiler, added to CPython[2] in 2024 for the 3.13 release, is on its way out after its maintainers withdrew PEP 836[3], the standards-track proposal the steering council had required before allowing the work to continue. Brandt Bucher added the JIT in early 2024 without first authoring such a PEP; the earlier PEP 744, which he drafted with Savannah Ostrowski, was informational and did not represent formal consensus to proceed. In June the steering council asked for a PEP making the case for the JIT "as a supported, non-experimental part of CPython", covering its guarantees, maintenance commitments and impact on redistributors, and set a six-month deadline, after which the JIT code would have to be removed from the main branch. Bucher, Ostrowski and Ken Jin published PEP 836 on July 3; commenters including Thomas Wouters and Mark Shannon argued it should be two separate PEPs, with Shannon saying it should cover only the goals for accepting the JIT and leave out implementation details.

On September 21, Wouters posted a council statement — Ostrowski, as a PEP co-author, did not take part — explaining that the council was evaluating whether the JIT should remain in the main branch as an experiment, since the lack of unified design and the shifting behaviours and API surfaces leave core developers, package maintainers and users facing uncertainty. The statement said the PEP was not specific enough about support plans and performance criteria and too vague or too optimistic in a number of other areas, and included a ten-point list of items, covering concerns from platform parity and memory impact to security, that the authors should either spell out or discuss and reject. The council called security "an underserved area in the PEP", suggested a discussion with the Python security response team, and wanted a security review to be part of the criteria for supported status; it also found the PEP "overly optimistic" about user-visible differences with the JIT enabled. It called the PEP's compatibility review milestone, tied to the first Python 3.17 release candidate expected in August 2028 and based on running the test suites of the top PyPI[4] packages, "way, way too late", asking for an ongoing and continuous process instead. The council concluded that PEP 836 "mostly answers the questions we asked" but wanted more discussion to gauge community support before pronouncing on it; Ken Jin thanked the council and said the authors would work on its suggestions.

On October 19, Ostrowski, release manager for Python 3.16 and 3.17, announced the PEP's withdrawal, and development on the once-promising project appears to have come to an end.

Read the original lwn.netDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page