News for hackers. Stuff that matters.
Re:Larry Wall has approved renaming Perl 6 to Raku by nuclear_eclipse on Friday October 11, 2019 @06:54PM (#21229198)
If it's entirely CPU bound, you can use multiprocessing to negate most of the GIL issues, and transparently send inputs/outputs between the parent and child processes. If it's I/O bound, then AsyncIO is a great way to express asynchronous workflows. If it's a combination of both I/O and CPU bound workloads, there are ways to mix multiprocessing and AsyncIO to better saturate your cores without losing the simplicity or readability of Python: https://github.com/jreese/aiomultiprocess
Re:Larry Wall has approved renaming Perl 6 to Raku by weff_ on Friday October 11, 2019 @08:41PM (#21229691)
Very true, I had not even thought about the multiprocessing package; it's sometimes not as convenient as multithreading but it'll get those other cores working.