What’s New in Python 3.13? Exploring GIL Removal, JIT, and Rankings
Python 3.13 beta introduces groundbreaking features such as an optional GIL, an experimental JIT compiler, and various module improvements, while the Redmonk ranking confirms Python’s surge to the second most popular language, reflecting its growing role in AI, data science, and modern development.
Python 3.13 Beta Highlights
Python 3.13 beta 1 has been released, bringing two major experimental features: an optional Global Interpreter Lock (GIL) that can be disabled to enable true multithreading, and a basic Just‑In‑Time (JIT) compiler aimed at improving performance. The beta also marks the feature freeze for the 3.13 series.
Current Programming Language Rankings
According to the Redmonk programming language index, Python ranks second only to JavaScript, driven by its strong ties to artificial intelligence and machine‑learning workloads.
1 JavaScript
2 Python
3 Java
4 PHP
5 C#
6 TypeScript
6 CSS
8 C++
9 Ruby
10 C
11 Swift
12 Go
12 R
14 Shell
14 Objective‑C
16 Scala
17 Kotlin
18 PowerShell
19 Rust
20 Dart
The list is considered fair and objective by developers.
New Features in Python 3.13
The release includes a “basic JIT compiler” that is disabled by default. According to its PEP, this represents a significant departure from the traditional CPython execution model.
Python currently compiles source code to bytecode, which is then interpreted at runtime. Python 3.12 introduced micro‑operations that are optimized, but the overhead outweighed the performance gains, so they remain disabled.
The JIT compiler goes further by statically compiling optimized micro‑operations, aiming to overcome bottlenecks and boost speed. It will only be enabled when certain criteria are met, such as a minimum 5 % performance improvement, minimal deployment disruption, and approval from the Python Steering Council. Potential security concerns and higher memory usage are also noted.
Although the JIT is disabled by default, the feature is included because its developers view it as a major achievement and a viable path forward for future development.
Another key experiment in 3.13 is making the GIL optional, removing a major obstacle to concurrency. The PEP notes that lack of concurrency is often a bigger issue than raw execution speed. An optional GIL would allow Python code to express parallelism more naturally, improving maintainability and reinforcing Python’s appeal as a teaching language.
Additional enhancements include a new interactive shell with colored prompts, multiline editing with history, and F1‑key help.
Third‑Party Support
Apple’s iOS platform will now support Python, albeit limited to level‑3 (coding support) and without console or interactive usage.
Release Notes and Caveats
No brand‑new modules are added in 3.13, but many existing modules receive improvements, and several are slated for deprecation in upcoming 3.14‑3.16 releases.
The release schedule comprises four test releases and two release candidates, with the final version expected in early October 2024. Although the feature set is frozen, the release manager notes that minor changes may still occur before the release‑candidate phase.
Overall, Python continues to evolve with performance‑focused innovations while maintaining its strong position in the programming ecosystem.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
21CTO
21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
