さまざまな機能強化が予定されている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」の問題の一つは ...
2024年10月にリリースされたPython 3. 13。その中でもっとも注目すべき実験的な新機能の 「free threading」 について紹介します。本記事ではfree threadingについて紹介するにあたり、避けては通れない 「Global Interpreter Lock (以下GIL⁠)⁠」というCPythonのロック機構 ...
スクリプト言語「Python」の新しい年次リリース「Python 3.13」が、10月7日に正式リリースされた。多くの新機能と最適化が含まれている。 「Python 3.13」では、「PyPy」ベースの新しい改良型インタラクティブインタプリターを搭載。複数行(ブロック)編集への ...
A major criticism of the Python programming language is that it can't thread across cores. The reason is because of the CPython's Global Interpreter Lock (GIL). The inability to take advantage of more ...
Python 3.13 has been released with a slight delay on the home straight. The new interactive shell aims to make development more convenient. In addition, the global interpreter lock can now be ...