News for hackers. Stuff that matters.
Re:Faster CPython 3.12 Plan by eyelidlessness on Tuesday September 20, 2022 @01:47AM (#32908091)
> Very basic question: [not basic at all question which has been the subject of decades of research and produced several specialized programming models]

(Brackets my own of course.)

Sharing data in concurrent programs is not trivial, especially in environments where data is mutable. The most trivial answer to the question is “message passing”, as in the SmallTalk notion of OOP or the Erlang/OTP Actor Model. Some solutions look much more like working with a database (Software Transactional Memory). Some models that seem entirely designed for a different problem space are also compelling (various state models common in UI and games like reactivity and Entity Component systems).

Re:Faster CPython 3.12 Plan by wenc on Tuesday September 20, 2022 @01:59AM (#32908177)
PyPy pursued the STM route many years ago but later abandoned it.

https://doc.pypy.org/en/latest/stm.html

Re:Faster CPython 3.12 Plan by eyelidlessness on Tuesday September 20, 2022 @03:28AM (#32908757)
I was gonna ask why it was abandoned but then I read through the caveats, and well… yikes!
Re:Faster CPython 3.12 Plan by wiz21c on Tuesday September 20, 2022 @03:27AM (#32908750)
Is there an explanation of why they abandoned it ? It seemed very cool at that time...