Live data from Hacker News

gh-116167: Allow disabling the GIL

github.com

1–10 of 259 posts

Re: gh-116167: Allow disabling the GIL

#5
post #2

While the title is correct, it is a bit misleading, because disabling the GIL breaks the asyncio tests. It's like saying the engine can be removed from my car. Sure, it can, but the car won't work.

This comment feels very disingenuous because non-threaded programs do in fact work.

Re: gh-116167: Allow disabling the GIL

#6
post #2

While the title is correct, it is a bit misleading, because disabling the GIL breaks the asyncio tests. It's like saying the engine can be removed from my car. Sure, it can, but the car won't work.

I mean, you're not wrong, but also it's a huge feat to provide a toggle for a major feature like the GIL. Though, if it's just asyncio that's broken, perhaps it's not like removing your engine, but rather your antilock brakes :)

EDIT:

> [the test synchronous programs] all seem to run fine, and very basic threaded programs work, sometimes

Perhaps this is closer to removing the oil pan

Re: gh-116167: Allow disabling the GIL

#7
post #2

While the title is correct, it is a bit misleading, because disabling the GIL breaks the asyncio tests. It's like saying the engine can be removed from my car. Sure, it can, but the car won't work.

Well this release will break any code that uses threads. The goal of this particular release is to work for thread-free programs.

Re: gh-116167: Allow disabling the GIL

#8
post #7
post #2

While the title is correct, it is a bit misleading, because disabling the GIL breaks the asyncio tests. It's like saying the engine can be removed from my car. Sure, it can, but the car won't work.

Well this release will break any code that uses threads. The goal of this particular release is to work for thread-free programs.

How do single-threaded programs benefit from a lack of GIL?
Post reply on HN