News for hackers. Stuff that matters.
Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by packetlost on Saturday July 08, 2023 @12:04PM (#36645667)
Why not do it the other way? Have an opt-in at runtime for no-gil?
Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by johnmaguire on Saturday July 08, 2023 @12:30PM (#36645957)
Because in general, removing the GIL should be an improvement.
Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by gcbirzan on Saturday July 08, 2023 @02:49PM (#36647489)
In general, until you do use threads, removing the GIL is a performance loss. Even if you do use threads, you have an overhead: https://peps.python.org/pep-0703/#performance
Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by packetlost on Sunday July 09, 2023 @09:10PM (#36660837)
Oh, that makes sense! I forgot that there would be overhead related to the changes for no GIL.