News for hackers. Stuff that matters.
Re:No-GIL mode coming for Python by slt2021 on Friday July 28, 2023 @08:59PM (#36915610)
I would argue that if you have large concurrency and shared complex state - you better off use kafka and redis/memcached as a shared state - and design proper fan-out.

This design scales much better for systems that will eventually overgrow one big machine. the No-GIL pytohn will be of no use, when you need to deploy your app across 100s machines.

I understand people want to take advantage of all cores etc, but at large scale - you will eventually need to split computation across machines and will resort to in-memory cache/queue anyways - so better just architect your system since day0

Re:No-GIL mode coming for Python by whalesalad on Friday July 28, 2023 @09:41PM (#36915899)
sometimes you need all of that data in-process. when you move that state into redis, you still need to perform i/o to access it. when speed matters, this is troublesome.
Re:No-GIL mode coming for Python by n2d4 on Friday July 28, 2023 @09:19PM (#36915739)
Stores like that, while scaling well, are orders of magnitudes slower than CPU memory. The kind of application I was thinking of is more compute-intensive, eg. image processing or fancy algorithms.
Re:No-GIL mode coming for Python by pxeger1 on Saturday July 29, 2023 @02:01AM (#36917377)
But many systems will never need to run at that kind of scale, but could still benefit from better threading performance, so it's good to have an "intermediate" choice, if that's what you consider it.
Re:No-GIL mode coming for Python by AlphaSite on Saturday July 29, 2023 @02:56AM (#36917626)
There are a lot of performance sensitive codebases where something like this would destroy performance, it works well for shared nothing parallelism, but the moment you have shared state it kinda falls over.
Re:No-GIL mode coming for Python by lozenge on Saturday July 29, 2023 @04:35AM (#36918181)
PostgreSQL shows how far you can get with a single big box and using multiple cores and shared memory. It's incredibly powerful and the vast majority of applications never have data big enough to warrant "100s of machines".
Re:No-GIL mode coming for Python by merb on Saturday July 29, 2023 @05:09AM (#36918352)
and even they are looking into changing its shared memory and process model to work and make it multi-threaded: https://www.postgresql.org/message-id/flat/31cc6df9-53fe-3cd...

probably a way more problematic effort than no gil python tough and it might fail

Re:No-GIL mode coming for Python by mrkeen on Saturday July 29, 2023 @10:36AM (#36920733)
> you will eventually need to split computation across machines

More machines is a multiplier. Instead of underutilising 1 machine, you'll be underutilising 100s of machines. More incentive to remove locking.