Search the archive

14,355 indexed articles, 13,283 of them summarised by us.

Articles
14,355
Research papers
91,965
Models priced
2,249
Providers
163

8 results for “free-threaded python”

Newest and most relevant first

Python 3.14 and its New JIT Compiler

Python 3.14's experimental JIT could speed up Python workloads, but this teaser excerpt offers no details or numbers to act on.

This is a Towards Data Science blog post about Python 3.14, the newest version of the popular programming language, and the just-in-time (JIT) compiler it includes, a component that translates code into faster machine instructions while programs run. The excerpt shows only the subtitle and a link, so no explanation, benchmarks or version details are actually given.

The post covers Python 3.14's new JIT compiler, which matters because it affects runtime performance of Python applications and teams' upgrade decisions. However, the available content is a one-line subtitle ('A technical overview and some benchmarks') with no actual figures, costs or comparisons. There is nothing here to inform a decision; the full article is required.

The article promises a technical overview of Python 3.14's JIT compiler plus benchmarks, but the retrieved body contains only the subtitle and a canonical link. No architecture description, benchmark numbers, version dates or performance comparisons are present. The full post on Towards Data Science would be needed to evaluate the JIT's mechanism or measured speedups.

Towards Data Science Blog →

Python 3.14 and the End of the GIL

Python's GIL limits it to one core at a time, slowing big computations. Python 3.14 might remove it, letting programs use all cores for faster AI and data tasks. This matters as it makes Python quicker and more efficient for everyday tech work.

The potential end of Python's Global Interpreter Lock (GIL) in version 3.14 could unlock true multi-threading, boosting performance for AI and data science workloads on multi-core systems. Business leaders should anticipate scalable Python applications, lower compute costs, and faster ML pipelines, while addressing compatibility risks. This shift positions Python as a stronger contender against faster languages like Julia or Go.

Python 3.14 explores eliminating the GIL to enable genuine parallelism in multi-threaded code, improving CPU-bound task performance. Key challenges include thread-safety, memory overhead, and ABI compatibility; opportunities lie in subinterpreters and free-threading modes. Findings emphasize benchmarks showing 2-5x speedups for parallel workloads.

Towards Data Science Blog →

Python 3.14 Is Here. How Fast Is It?

Developers can expect roughly 27% faster Python 3.14 execution and a much better free-threading build, but the optional JIT shows little benefit in these basic benchmarks, so upgrades are worthwhile without JIT tuning.

Miguel Grinberg benchmarked Python 3.14, the latest version of the popular programming language, against version 3.13. He found it about 27% faster on Linux and macOS. A special build that lets Python programs use multiple processor cores at once gave a 3.09x speedup with four threads, up from 2.2x before. Anyone running Python programs benefits from the free upgrade.

Python 3.14 is out and independent benchmarks show around 27% faster execution than Python 3.13 on Linux and macOS. The free-threading build, which runs code across multiple processor cores, now reaches 3.09x speedup with four threads versus 2.2x previously, making multi-core Python work cheaper and more efficient. Teams still need to verify their own workloads, since the optional JIT compiler showed no meaningful gain here.

Miguel Grinberg ran basic benchmarks including fib(40) comparing Python 3.14 against 3.13 on Linux and macOS, measuring roughly 27% faster execution. The optional JIT compiler made no meaningful difference to his benchmark results. Using the free-threading build on a threaded benchmark, 3.14 delivered a 3.09x speedup with 4 threads, up from 2.2x in 3.13's free-threading build. Limitations: basic synthetic benchmarks only.

Simon Willison’s Weblog →

Python 3.14

Python 3.14's stable release means Python developers can now use t-strings, deferred annotations and subinterpreters, while Python 3.9 support ends for library maintainers.

Python 3.14, the yearly major update to the world's most popular programming language, has hit its first stable release. Its headline changes include template strings, postponed evaluation of type notes, and 'subinterpreters', a way to run several isolated Python engines inside one program to use multiple CPU cores. A free-threaded build, which removes the traditional bottleneck limiting code to one core at a time, is now officially supported. Python 3.9 is retired from support as a result.

Python 3.14 is now stable, and adopting it removes a known constraint: the free-threaded build is officially supported, so teams can finally use all CPU cores without the GIL limiting parallelism. The trade-off is dependency compatibility, Simon Willison points to a wheel-compatibility checker for the free-threaded build. Notably, dropping Python 3.9 lets open-source libraries require 3.10 features like match/case. CI can test all five supported versions via the updated setup-python action.

Python 3.14's first stable release adds template string literals (t-strings), deferred evaluation of annotations (PEP 649-era behavior), and stdlib subinterpreters for GIL-side multi-core concurrency. Library additions include asyncio introspection improvements and a compression.zstd module for Zstandard; the REPL gains syntax highlighting. The free-threaded build is now officially supported, use python@3.14t via uv if your dependency wheels cooperate (hugovk's checker). Python 3.9 is EOL, so libraries may now depend on 3.10's match/case and int | float | None union syntax.

Simon Willison’s Weblog →

Quoting Kumar Aditya

Python developers using free-threaded builds can now run multiple asyncio event loops across threads with linear scaling and no lock contention in the general case.

Python is a popular programming language, and its asyncio tool runs tasks that wait on things like network requests. In Python 3.14, developer Kumar Aditya rewrote asyncio so it can safely use multiple threads at once, using data structures that avoid slow locking. This means programs using the version of Python that no longer relies on its single-thread restriction can scale smoothly as threads are added.

Python 3.14 makes asyncio thread-safe on the free-threaded build of CPython, the Python interpreter being freed from the Global Interpreter Lock. Kumar Aditya states that with multiple event loops running in parallel there is no lock contention and performance scales linearly with thread count. Teams running concurrent Python services on free-threaded Python gain scalable async performance; those on standard builds see no change.

Kumar Aditya implemented several changes in Python 3.14 to fix asyncio thread safety on the free-threaded CPython build. asyncio now uses lock-free data structures and per-thread state for efficient task management and execution across threads. In the general case of multiple parallel event loops there is no lock contention and performance scales linearly with the number of threads. Implementation details are documented in CPython's internal asyncio docs.

Simon Willison’s Weblog →

Hypothesis is now thread-safe

Python teams running Hypothesis tests can now execute them in parallel threads, removing one blocker for testing packages against the free-threaded Python build.

Hypothesis is a popular Python testing tool that automatically invents thousands of odd test inputs, like strange lists of numbers, to catch bugs developers would miss. Until now it couldn't safely run multiple tests at the same time in parallel. Python is preparing to remove a long-standing bottleneck (its 'GIL') so programs can truly run in parallel, and packages now need parallel testing. Hypothesis contributor Liam DeVoe, funded by Quansight, made the tool safe for this.

Python's move to free threading (removing its global interpreter lock, per PEP 703) requires libraries to prove thread safety, but Hypothesis tests were being skipped in those runs, cutting test coverage across many packages. Quansight sponsored contributor Liam DeVoe to fix this, so that coverage gap is now closed. Any Python team planning free-threaded migration benefits immediately; there are no costs or benchmarks stated.

Hypothesis, the property-based Python testing library (e.g. @given(st.lists(st.integers()))), is now thread-safe, thanks to contributor Liam DeVoe with Quansight sponsorship. Previously tests had to run sequentially, and community packages skipped Hypothesis suites under the free-threaded build (PEP 703), losing substantial coverage. Running tests in two or more concurrent threads is now viable. The article gives no implementation details, version number or performance figures.

Simon Willison’s Weblog →

Liberating Performance with Immutable DataFrames in Free-Threaded Python

This is about making Python programs, especially those dealing with large amounts of data, run much faster. By using new features in Python and a tool called StaticFrame, computers can perform many tasks at once, which means analyzing big datasets or running complex calculations will be quicker and smoother.

For business leaders, leveraging advancements in Python's concurrency with tools like StaticFrame offers significant performance gains in data processing. This can accelerate analytical workflows, improve efficiency for data-intensive operations, and enable more scalable AI/ML solutions by overcoming traditional performance bottlenecks.

This article explores how StaticFrame utilizes Python 3.13t's 'free-threaded' architecture to achieve true thread-based concurrency. By employing immutable DataFrames, it aims to enhance performance for data-intensive tasks, addressing Global Interpreter Lock (GIL) limitations and enabling more efficient parallel processing in Python.

Towards Data Science Blog →

Quoting Donghee Na

Python's free-threaded build is now an officially supported option in Python 3.14, so teams building GIL-free, multi-threaded applications no longer risk adopting something that could be dropped.

Python's governing body has approved a plan that removes the 'experimental' label from the free-threaded version of Python 3.14. Normally Python runs one piece of code at a time, even on computers with many processor cores; the free-threaded build removes that restriction. The Steering Council says this build will not be removed without a formal deprecation process. Whether free-threading becomes the default version of Python is still an undecided future question.

The Python Steering Council has approved PEP 779, making the free-threaded build of Python 3.14 a supported option rather than an experiment, with a commitment that it won't be dropped without a proper deprecation schedule. Organisations running CPU-bound Python workloads can now invest in free-threading with lower platform risk. A move to Phase III, where free-threading becomes the default build, remains undecided and dependent on community and CPython factors.

The Python Steering Council approved PEP 779, removing the 'experimental' tag from the free-threaded build of Python 3.14 and committing to its supported status going forward, with removal only via a standard deprecation process. Transition to Phase III, where free-threading is the default or sole CPython build, is explicitly undecided and contingent on ecosystem and interpreter factors. No performance figures, adoption numbers, or timelines are given in the source.

Simon Willison’s Weblog →