Conversation
Notices
-
Santa Claes 🇸🇪🇭🇰🎅 (clacke@libranet.de)'s status on Tuesday, 25-Jan-2022 10:21:20 UTC Santa Claes 🇸🇪🇭🇰🎅 @lanodan @piggo @chjara Ah, so there is some shared memory support in the multiprocessing package actually. I've never had to look. TIL.
How dynamic does the dict have to be? Maybe you can emulate it with Arrays and Structs?
If you have the performance requirements that make you fiddle with this, it sounds like the person who decided you should use python made a big mistake. 😐-
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Tuesday, 25-Jan-2022 10:21:21 UTC Haelwenn /элвэн/ :triskell: @piggo @chjara There is https://docs.python.org/3.9/library/multiprocessing.html?highlight=multiprocessing#multiprocessing.Value but it's for basically everything but dicts. -
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Tuesday, 25-Jan-2022 10:21:21 UTC Haelwenn /элвэн/ :triskell: @piggo @chjara (Yes I did use the multiprocessing library to share data between threads in other python code that I had to write…) In conversation permalink -
Piggo :verified_horse: (piggo@piggo.space)'s status on Tuesday, 25-Jan-2022 10:21:22 UTC Piggo :verified_horse: @lanodan @chjara theres probably some kind of ultra cursed C extension that gives you real mutex? In conversation permalink -
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Tuesday, 25-Jan-2022 10:21:23 UTC Haelwenn /элвэн/ :triskell: @chjara Well in Erlang there is ETS for this kind of thing.
Meanwhile having threads communicate between each others in python is a major catastrophe.In conversation permalink
-