Skip to content

搞英语 → 看世界

翻译英文优质信息和名人推特

Menu
  • 首页
  • 作者列表
  • 独立博客
  • 专业媒体
  • 名人推特
  • 邮件列表
  • 关于本站
Menu

2024 年的 Python:比以往更快、更强大、更流行

Posted on 2024-12-29

python_64.png

InfoWorld 写道:“在 2024 年,Python 一次又一次地证明了为什么它是最流行、最有用、最有前途的编程语言之一。”该语言的最新版本进一步推动了速度和功能的极限,摆脱了Python 的许多最陈旧的元素,并扩大了它对全世界开发人员的吸引力。让我们回顾一下 Python 的这一年。今年最大的新闻是,Python 核心开发团队在克服 Python 长期存在的缺陷之一方面迈出了重要一步:全局解释器锁或“GIL”,一种管理解释器状态的机制。 GIL 可防止 Python 程序中跨线程的数据损坏,但其代价是使线程对于 CPU 密集型工作几乎无用。多年来,各种删除 GIL 的尝试都以失败告终,因为它们使单线程 Python 程序的速度大大减慢。但最近的 no-GIL 项目在解决这个问题方面取得了很大的进展——足以让普通用户可以尝试。无 GIL 或“自由线程”构建仍被视为实验性的,因此不应在生产中部署它们。 Python 团队希望在为无 GIL 构建全面开绿灯之前,尽可能减轻单线程性能影响以及任何其他问题。这些构建也完全有可能永远无法达到全面的生产就绪状态,但早期迹象令人鼓舞。 Python 3.13 中引入的另一个前瞻性功能是实验性的即时编译器或 JIT。它扩展了之前通过在运行时为某些操作生成机器代码来加速解释器的努力。目前,加速并不算多(对于大多数程序来说可能是 5%),但 Python 的未来版本将扩展 JIT 的功能,从而产生现实世界的回报。现在,Python 在 GitHub 上的使用比 JavaScript 更广泛(部分归功于它在人工智能和数据科学代码中的作用)。

twitter_icon_large.png facebook_icon_large.png

在 Slashdot 上阅读这个故事的更多内容。

原文: https://developers.slashdot.org/story/24/12/29/0534253/python-in-2024-faster-more-powerful-and-more-popular-than-ever?utm_source=rss1.0mainlinkanon&utm_medium=feed

本站文章系自动翻译,站长会周期检查,如果有不当内容,请点此留言,非常感谢。
  • Abhinav
  • Abigail Pain
  • Adam Fortuna
  • Alberto Gallego
  • Alex Wlchan
  • Answer.AI
  • Arne Bahlo
  • Ben Carlson
  • Ben Kuhn
  • Bert Hubert
  • Bits about Money
  • Brian Krebs
  • ByteByteGo
  • Chip Huyen
  • Chips and Cheese
  • Christopher Butler
  • Colin Percival
  • Cool Infographics
  • Dan Sinker
  • David Walsh
  • Dmitry Dolzhenko
  • Dustin Curtis
  • Elad Gil
  • Ellie Huxtable
  • Ethan Marcotte
  • Exponential View
  • FAIL Blog
  • Founder Weekly
  • Geoffrey Huntley
  • Geoffrey Litt
  • Greg Mankiw
  • Henrique Dias
  • Hypercritical
  • IEEE Spectrum
  • Investment Talk
  • Jaz
  • Jeff Geerling
  • Jonas Hietala
  • Josh Comeau
  • Lenny Rachitsky
  • Lou Plummer
  • Luke Wroblewski
  • Matt Baer
  • Matt Stoller
  • Matthias Endler
  • Mert Bulan
  • Mostly metrics
  • News Letter
  • NextDraft
  • Non_Interactive
  • Not Boring
  • One Useful Thing
  • Phil Eaton
  • Product Market Fit
  • Readwise
  • ReedyBear
  • Robert Heaton
  • Ruben Schade
  • Sage Economics
  • Sam Altman
  • Sam Rose
  • selfh.st
  • Shtetl-Optimized
  • Simon schreibt
  • Slashdot
  • Small Good Things
  • Taylor Troesh
  • Telegram Blog
  • The Macro Compass
  • The Pomp Letter
  • thesephist
  • Thinking Deep & Wide
  • Tim Kellogg
  • Understanding AI
  • 英文媒体
  • 英文推特
  • 英文独立博客
©2025 搞英语 → 看世界 | Design: Newspaperly WordPress Theme