{"id":1167618,"date":"2023-08-02T18:01:48","date_gmt":"2023-08-02T22:01:48","guid":{"rendered":"https:\/\/www.prime-wow.com\/?p=1167618"},"modified":"2023-08-02T18:01:48","modified_gmt":"2023-08-02T22:01:48","slug":"gil-removal-and-the-faster-cpython-project","status":"publish","type":"post","link":"https:\/\/www.prime-wow.com\/?p=1167618","title":{"rendered":"[$] GIL removal and the Faster CPython project"},"content":{"rendered":"<p>The Python global interpreter lock (GIL) has long been a barrier to<br \/>\nincreasing the performance of programs by using multiple threads\u2014the GIL<br \/>\nserializes access to the interpreter&#8217;s virtual machine such that only one thread<br \/>\ncan be executing Python code at any given time.  There are other mechanisms<br \/>\nto provide<br \/>\nconcurrency for the language, but the specter of the GIL\u2014and its reality as<br \/>\nwell\u2014have often been cited as a major negative for Python.  Back in October<br \/>\n2021, Sam Gross <a href=\"https:\/\/lwn.net\/ml\/python-dev\/CAGr09bSrMNyVNLTvFq-h6t38kTxqTXfgxJYApmbEWnT71L74-g@mail.gmail.com\/\">introduced<\/a><br \/>\na <a href=\"https:\/\/lwn.net\/Articles\/872869\/\">proof-of-concept, no-GIL version of the<br \/>\nlanguage<\/a>. It was met with a lot of excitement at the time, but<br \/>\nseemed to languish to a certain extent for more than a year; now, the Python<br \/>\nSteering<br \/>\nCouncil has <a href=\"https:\/\/lwn.net\/Articles\/939568\/\">announced its intent to accept the<br \/>\nno-GIL feature<\/a>.  It will still be some time before it lands in a<br \/>\nreleased Python version\u2014and there is the possibility that it all has to be<br \/>\nrolled back at some point\u2014but there are several companies backing the<br \/>\neffort, which gives it all a good chance to succeed.&#013;<br \/>\n&#013;<br \/>\nSource: LWN.net &#8211; <a href=\"https:\/\/lwn.net\/Articles\/939981\/\" target=\"_blank\" rel=\"noopener\">[$] GIL removal and the Faster CPython project<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Python global interpreter lock (GIL) has long been a barrier to increasing the performance of programs by using multiple threads\u2014the GIL serializes access to the interpreter&#8217;s virtual machine such that only one thread can be executing Python code at &hellip; <a href=\"https:\/\/www.prime-wow.com\/?p=1167618\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[72],"tags":[75],"class_list":["post-1167618","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1167618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1167618"}],"version-history":[{"count":0,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1167618\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1167618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1167618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1167618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}