top | item 38304989

(no title)

BorgHunter | 2 years ago

Conversely, I've worked on backend, data processing-type applications for most of my career, much of it in Java but some (especially recently) in Python, and the GIL is a huge limiting factor for writing efficient, readable Python code. I've had to write very annoying Python code using the multiprocessing library to get around the GIL, and ultimately it works, but it's ugly and clunky and overall just a pain. And remember, I've written a lot of Java code, so I have a high tolerance for pain! But the JVM's concurrency abstractions are actually kind of a joy to use, even if Java the language isn't. Python is the opposite, so if they can shed the GIL and make multithreading viable in Python without forking new processes, that would be a huge win.

discuss

order

Gabrys1|2 years ago

I think multiprocessing is quite sensible in Python (comparing to async for an example)

toxik|2 years ago

multiprocessing is almost never a good idea in my experience.