自由线程 Python 的第一年

  • CPython 3.14.0b1 and PyCon 2025: Last week, CPython 3.14.0b1 was rolled out. This week, PyCon 2025 starts in Pittsburgh. Both events are significant for shipping and stabilizing free-threaded Python.
  • Free-threaded Python benefits: Unlocks full compute power of modern hardware with multicore CPUs and GPUs. In GIL-enabled build, using parallel algorithms requires workarounds. threading module often not used due to GIL. multiprocessing has its own issues.
  • Challenges: Ecosystem was broken last year. Many packages need auditing for thread safety. Popular packages may lack resources to support free-threading.
  • Major accomplishments: Contributed to many packages and projects. CPython core developers made improvements in warnings, asyncio, ctypes, garbage collector, etc. Wrote a comprehensive guide.
  • How to help: Follow the contribution guide. Join the community Discord. There's a manually updated status tracking table and an automatically updated tracker.
  • PyCon talk: The speaker will give a talk at PyCon with Lysandros Nikolaou, sharing experiences in porting packages and hoping the recording will be a valuable resource.
阅读 9
0 条评论