technology

Python's crown slips as ai rewrites the rules of code

Python just bled five percentage points of market share in eight months. The language that swallowed a quarter of global development is now retreating faster than any incumbent in Tiobe’s 23-year dataset, and the exodus is being led by the very coders it once seduced.

R and perl stage a surprise counter-attack

The bleeding is not uniform. R, long dismissed as a statistical backwater, vaulted from 15th to 8th place while Python was still explaining why indentation beats braces. Its share doubled to 2.19 %, the sharpest year-over-year climb recorded for any niche language. Perl, pronounced clinically dead for a decade, crawled out of position 30 and is now knocking on the top-ten door at 1.67 %. Paul Jansen, Tiobe’s CEO, confirms the pattern: engineers who once googled “Python tutorial” now type “R data frame” or “Perl one-liner” instead.

Behind the keyword shift lurks a colder truth. Generative models write pedestrian Python faster than most juniors, so hiring managers no longer reward résumés that list “fluent in pandas.” They want proof you can interrogate a model, not scaffold it. That plays to R’s statistical primitives and Perl’s regex kung-fu—both languages treat data like a suspect that needs interrogation, not a pet that needs feeding.

The ai subsidy dries up

The ai subsidy dries up

Python’s dominance was propped up by an implicit subsidy: every new ai library shipped with a Python wrapper first. Google released TensorFlow in 2015 and PyTorch followed in 2016; both treated C++ as an implementation detail and Python as the public façade. The arrangement held as long as GPU clusters were scarce and researchers were king. Now that inference runs on a phone, latency budgets trump prototyping speed. Framework authors are publishing Rust and C++ front ends first; Python becomes the optional afterthought.

Universities feel the chill. Enrollment in intro Python courses flattened this spring for the first time since 2012, while advanced R electives overflowed. The reason is brutally economic: Wall Street quants who once hired Pythonistas for model validation now demand R scripts that can be audited by regulators already trained in SAS syntax. A résumé that lists only Python triggers an automatic HR filter; one that adds R reaches a human.

What stroustrup warned about

What stroustrup warned about

Bjarne Stroustrup once joked that there are only two kinds of languages: “those people complain about and those nobody uses.” Python is discovering the corollary: when people stop complaining, they also stop recruiting. The language is not headed for oblivion—21.81 % share still dwarfs Java’s 8.12 %—but it is entering the awkward middle age C++ endured after 2005: respected, ubiquitous, and suddenly uncool.

The next Tiobe update drops 26 March. If Python slips below 20 % before its 3.14 release, maintainers will face a choice they last confronted in the Python 2-to-3 transition: break compatibility for speed, or preserve the gentle syntax that made them beloved and watch defections accelerate. Either path ends with fewer pip installs and more rust-analyzer tabs. The king is not dead; he just noticed the crown is made of scrap metal.