首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >刚刚!TypeScript 首次超越 Python,登上 GitHub 最受欢迎语言榜首

刚刚!TypeScript 首次超越 Python,登上 GitHub 最受欢迎语言榜首

作者头像
民工哥
发布2026-03-24 17:01:18
发布2026-03-24 17:01:18
860
举报

特色专栏

MySQL/PostgreSQL/MongoDB

ElasticSearch/Hadoop/Redis

Kubernetes/Docker/DevOps

Kafka/RabbitMQ/Zookeeper

监控平台/应用与服务/集群管理

Nginx/Git/Tools/OpenStack

大家好,我民工哥!

刚刚!TypeScript 首次超越 Python,成功登顶 GitHub 最受欢迎编程语言榜首!

图片
图片

根据 GitHub 最新发布的《Octoverse 2025 报告》显示,TypeScript 在 2025 年 8 月首次超越 Python(历史首次),成为 GitHub 上使用最广泛的编程语言。

A vibrant abstract background with overlapping green, blue, and purple gradient ribbons behind the text ‘Octoverse 2025’ and the GitHub logo.
A vibrant abstract background with overlapping green, blue, and purple gradient ribbons behind the text ‘Octoverse 2025’ and the GitHub logo.

由此可见,TypeScript 这一编程语言正在崛起当中,尤其在 AI 辅助编程开发领域的优势正越来越凸显。

据 GitHub 的最新统计数据显示,TypeScript 在 2025 年 8 月贡献者数量达 2,636,006 名,同比增长 105 万(增幅 66.6%),首次跃居榜首

A line chart showing combined usage of JavaScript and TypeScript compared to Python, Java, and C# from 2023 to 2025. JavaScript and TypeScript lead with over 4.5 million users by 2025, followed by Python with about 3 million, and smaller but steady usage for Java and C#. The chart has a dark background with colored lines and the title ‘JavaScript & TypeScript have the largest combined usage.’
A line chart showing combined usage of JavaScript and TypeScript compared to Python, Java, and C# from 2023 to 2025. JavaScript and TypeScript lead with over 4.5 million users by 2025, followed by Python with about 3 million, and smaller but steady usage for Java and C#. The chart has a dark background with colored lines and the title ‘JavaScript & TypeScript have the largest combined usage.’

Python 贡献者数量为 260 万,同比增长 48%,虽仍保持强劲增长,但增速不及 TypeScript。

JavaScript 以 215 万贡献者排名第三,增长放缓,开发者逐渐向 TypeScript 迁移。

TypeScript 在新增仓库数量上领先,其严格的类型系统减少了代码模糊性,使 AI 生成的代码在进入生产环境前能更早捕获错误(如 LLM 生成的编译错误中 94% 是类型检查失败)。

Python 驱动了近一半的新增 AI 仓库(582,196 个),同比增长 50.7%,凸显其在模型训练、推理等应用型 AI 工作中的支柱地位。

A horizontal bar chart showing the most common programming languages in GitHub projects created in 2025, comparing year-over-year growth from August 2024 to August 2025. JavaScript leads with 9.3 million repositories (+14.57% YoY), followed by Python with 9.26 million (+53.41%), TypeScript with 5.39 million (+78.10%), Java with 3.52 million (+9.35%), C++ with 1.7 million (+11.82%), and C# with 1.48 million (+10.61%). The chart features bright color bars on a dark background with gradient ribbons on the left.
A horizontal bar chart showing the most common programming languages in GitHub projects created in 2025, comparing year-over-year growth from August 2024 to August 2025. JavaScript leads with 9.3 million repositories (+14.57% YoY), followed by Python with 9.26 million (+53.41%), TypeScript with 5.39 million (+78.10%), Java with 3.52 million (+9.35%), C++ with 1.7 million (+11.82%), and C# with 1.48 million (+10.61%). The chart features bright color bars on a dark background with gradient ribbons on the left.

那么,TypeScript 的崛起,它的核心驱动力在哪呢

首先是开发框架的默认支持,比如:Next.js 15、Astro 3、SvelteKit 2 等默认使用 TypeScript 搭建项目,从而大大降低了开发者入门门槛,推动其普及。

其次,就是AI 辅助开发的深度适配。

TypeScript 的强类型系统与 AI 生成代码的协作优势显著:

  • 减少模糊性:类型约束使 AI 更易理解代码意图,生成更可靠的代码。
  • 错误提前捕获:在代码进入生产前,类型检查可拦截大部分潜在问题,提升开发效率。

报告指出,80% 的新用户在注册 GitHub 第一周即启用 Copilot,而 TypeScript 的严格类型系统使其成为 AI 辅助开发的首选语言。

A graphic showing that nearly 80% of new developers on GitHub use Copilot within their first week, displayed in large bold text on a blue background with green and purple gradient ribbons.
A graphic showing that nearly 80% of new developers on GitHub use Copilot within their first week, displayed in large bold text on a blue background with green and purple gradient ribbons.
A line chart showing the number of new developers joining GitHub from 2020 to 2025. The line rises steadily, reaching 36.2 million in 2025, with a sharp increase after the launch of Copilot Free in late 2024. The chart has a dark background with blue data lines and the title ‘The number of new developers on GitHub.’
A line chart showing the number of new developers joining GitHub from 2020 to 2025. The line rises steadily, reaching 36.2 million in 2025, with a sharp increase after the launch of Copilot Free in late 2024. The chart has a dark background with blue data lines and the title ‘The number of new developers on GitHub.’

行业趋势的转向也影响因素之一,越来越多的开发者正从“原型阶段”向“生产技术栈”迁移,类型化语言(如 TypeScript)因更高的代码可靠性和可维护性,成为生产环境的优先选择。

前端和应用层语言中,TypeScript 增长 77.9%,JavaScript 增长 24.8%,表明围绕模型 API 接口构建的轻量级应用正在崛起。

尽管 Python 被 TypeScript 超越,但,Python 仍在 AI 和数据科学领域保持主导地位。

A chart listing the most commonly used programming languages in AI-tagged projects on GitHub in 2025. Python ranks first with 582,000 repositories (+50.7% year over year), followed by JavaScript with 88,000 (+24.8%), TypeScript with 86,000 (+77.9%), Shell with 9,000 (+324%), and C++ with 7,800 (+11%). The chart includes brief descriptions of each language’s role in AI development, displayed on a blue gradient background with green geometric ribbon graphics.
A chart listing the most commonly used programming languages in AI-tagged projects on GitHub in 2025. Python ranks first with 582,000 repositories (+50.7% year over year), followed by JavaScript with 88,000 (+24.8%), TypeScript with 86,000 (+77.9%), Shell with 9,000 (+324%), and C++ with 7,800 (+11%). The chart includes brief descriptions of each language’s role in AI development, displayed on a blue gradient background with green geometric ribbon graphics.

据相关统计数据显示,Jupyter Notebook 依旧是 AI 领域的首选探索性环境,相关仓库数量超 40 万个,同比增长 17.8%。

Python 驱动了近一半的新增 AI 仓库,涵盖从训练、推理到编排和部署的全流程,它仍是应用型 AI 工作的核心支柱。

A line chart showing the most common code environments used in AI projects on GitHub from 2022 to 2025. Python leads sharply with over 110,000 users by 2025, followed by Jupyter Notebooks with around 50,000 users. TypeScript and JavaScript trail behind but show gradual growth. The chart uses colored lines—blue for Python, green for Jupyter Notebooks, yellow for TypeScript, and pink for JavaScript—on a dark background with a blue gradient graphic on the left.
A line chart showing the most common code environments used in AI projects on GitHub from 2022 to 2025. Python leads sharply with over 110,000 users by 2025, followed by Jupyter Notebooks with around 50,000 users. TypeScript and JavaScript trail behind but show gradual growth. The chart uses colored lines—blue for Python, green for Jupyter Notebooks, yellow for TypeScript, and pink for JavaScript—on a dark background with a blue gradient graphic on the left.

所以,Python 生态依然稳固!

换句话说是,Python 将在模型训练、数据科学等领域持续发挥关键作用,与 TypeScript 形成互补。

AI 不仅改变了编码速度,更影响了开发团队对生产环境代码的信任标准。类型化语言的崛起,标志着软件开发进入“可信代码”时代。

此次报告,还总结一些其它的数据。

2023 年,GitHub 在从 5000 万增长到 1 亿后,开发者人数突破了 1 亿。但仅在过去一年,我们就以迄今为止最快的绝对增长重写了这条曲线。

如今,已有超过 1.8 亿开发者在 GitHub 上构建。

图片
图片

2025 年也成了创纪录的增长之年!

更多关于报告的其它数据,大家可以自行查阅:https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/

在不久的未来,TypeScript 会彻底取代 Python 吗?

你认为,哪种语言会成 AI 时代的主流编程语言呢?

欢迎在评论留言,聊一聊你的看法。

都看到这里了,觉得不错的话,随手点个赞👍 、推荐

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2025-11-22,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 民工哥技术之路 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档