さまざまな機能強化が予定されているPython 3. 14の中で、今回筆者が注目するのはasyncioの新しい可視化ツールです。asyncio psコマンド、asyncio pstreeコマンドと、asyncio. print_ call_ graph()関数やasyncio. capture_ call_ graph()関数によって、実行中のasyncioタスクの状態を ...
プログラミング言語「Python」の成長に伴い、往年の課題である「GIL」(Global Interpreter Lock)の制約が顕在化してきた。GILはCPython(Pythonの標準実装)が持つ仕組みで、複数のスレッドが同時にPythonプログラムを実行することを妨げる。これはマルチコアCPUの ...
「Python」におけるマルチコアCPUの利用を妨げているのが「GIL」だ。GIL廃止の提案が承認されたことで積年の課題が解決する見込みが出てきた。一方、「混乱が起きる可能性がある」と指摘する有識者もいる。 プログラミング言語「Python」の問題の一つは ...
高速化が話題のPython 3. 11ですが、今回取り上げるのは非同期I/ Oで並行処理を実現する標準ライブラリasyncioの新機能asyncio. TaskGroupです。asyncio. TaskGroupは複数のタスクを並行処理する高レベルAPIになります。同様の既存機能 (asyncio. gather()やasyncio. wait()) と ...
Formal plans for a Python that supports true parallelism are finally on the table. Here’s how a GIL-free Python will finally come together. After much debate, the Python Steering Council intends to ...