med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

363
active users

#multiprocessing

0 posts0 participants0 posts today
dr 🛠️🛰️📡🎧:blobfoxcomputer:<p>I've been working on a <a href="https://hachyderm.io/tags/space" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>space</span></a> <a href="https://hachyderm.io/tags/visualization" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>visualization</span></a> tool for our operators. It basically needs to always know, and be ready to plot, where every single one of 60k+ objects is down to millidegree/meter/second resolution just in case the sensor suddenly slews there</p><p>My own constraint is that it has to be 1) a single 2) <a href="https://hachyderm.io/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> executable because otherwise I'm not interested</p><p>Earlier this year, I found a great 30x faster technique for determining which <a href="https://hachyderm.io/tags/satellites" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>satellites</span></a> are above the horizon. (In fact, it's far more general than that, but that's all the help it gives me to this problem.)</p><p>I also realized I could spawn a <a href="https://hachyderm.io/tags/multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multiprocessing</span></a> child to do lookahead on data and then pass a huge <a href="https://hachyderm.io/tags/numpy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>numpy</span></a> array to my graphing process. (Investigated ~9 different ways, chose the best)</p><p>But there I was stuck. </p><p>At any given moment, there are ~4500 space objects above the horizon (at our latitude). Putting 4500 points with little persistence trails and labels and then updating all that at 1Hz let alone the 10Hz I'd like was taking too long, even using the amazing <a href="https://hachyderm.io/tags/pyqtgraph" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pyqtgraph</span></a></p><p>So there I was stuck. Until this week.</p>
rk: it’s hyphen-minus actually<p>The LOCK# signal is like “stop trying to make fetch happen.”</p><p><a href="https://mastodon.well.com/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.well.com/tags/multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multiprocessing</span></a></p>
vintage screwlisp account<p><span class="h-card"><a href="https://climatejustice.social/@kentpitman" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>kentpitman</span></a></span> <span class="h-card"><a href="https://nein.ftrv.se/@sigrid" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>sigrid</span></a></span> <span class="h-card"><a href="https://appdot.net/@mdhughes" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>mdhughes</span></a></span> <span class="h-card"><a href="https://functional.cafe/@awkravchuk" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>awkravchuk</span></a></span> </p><p>Featuring <a href="https://mastodon.sdf.org/tags/unix_surrealism" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unix_surrealism</span></a> ! <span class="h-card"><a href="https://merveilles.town/@prahou" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>prahou</span></a></span> </p><p><span class="h-card"><a href="https://mastodon.sdf.org/@pkw" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>pkw</span></a></span> ncurses <a href="https://mastodon.sdf.org/tags/lisp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lisp</span></a> <a href="https://mastodon.sdf.org/tags/asdf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>asdf</span></a> <a href="https://mastodon.sdf.org/tags/multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multiprocessing</span></a> <a href="https://codeberg.org/pkw/open-borders" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">codeberg.org/pkw/open-borders</span><span class="invisible"></span></a></p><p>telnet lambda.moo.mud.org 8888<br>co guest<br>@join screwtape </p><p><a href="https://mastodon.sdf.org/tags/lambdaMOO" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lambdaMOO</span></a> !</p><p>I think <span class="h-card"><a href="https://social.jlamothe.net/profile/me" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>me</span></a></span> bumped eir head on the resource limit in-MOO finally? Meet in paradise sushi!</p>
Emilia Jarochowska 🇺🇦🌱<p>Have you ever programmed a human computer? Having 30 people walking around the room to exchange information between RAM addresses and CPU registers, and human CPUs execute operations on the clock is a very special experience*.</p><p>This week I learned more than in a ~year of self-study, thanks to the 16th Advanced Scientific Programming in <a href="https://circumstances.run/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://aspp.school" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">aspp.school</span><span class="invisible"></span></a> <br>We covered version control, packaging, testing, debugging, computer architecture, some <a href="https://circumstances.run/tags/numpy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>numpy</span></a> and <a href="https://circumstances.run/tags/pandas" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pandas</span></a> -fu, programming patterns aka what goes into a class and what doesn't, big-O to understand the scaling of various operations and how to find the fastest one for the given data type and size, and an intro to <a href="https://circumstances.run/tags/multithreading" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multithreading</span></a> and <a href="https://circumstances.run/tags/multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multiprocessing</span></a> 🍭</p><p>A personal highlight for me was pair programming. I never thought writing code in with a buddy would be so much fun, but I learned a lot from my buddies and now I don't want to go back to writing code alone 😅</p><p>Very indebted to the teachers and organizers; <a href="https://aspp.school/wiki/faculty" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">aspp.school/wiki/faculty</span><span class="invisible"></span></a> if you ever meet one of those people, please buy them a drink for what they have done for a better code karma state in the universe</p><p>*our human computer didn't manage to execute the simplest sorting algorithm and the CPUs started to sweat; we experienced what happens when the code is ambiguous and imprecise 😱🫨</p>
Alex Jimenez<p>Introduction to <a href="https://mas.to/tags/Multithreading" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Multithreading</span></a> and <a href="https://mas.to/tags/Multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Multiprocessing</span></a> in <a href="https://mas.to/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> </p><p><a href="https://www.kdnuggets.com/introduction-to-multithreading-and-multiprocessing-in-python" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">kdnuggets.com/introduction-to-</span><span class="invisible">multithreading-and-multiprocessing-in-python</span></a></p><p><a href="https://mas.to/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a></p>
Rye<p>Adventures in <a href="https://ioc.exchange/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <br>I need to explore <a href="https://ioc.exchange/tags/multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multiprocessing</span></a> the process I created took more than 4 min to run, that's okay but I I will be using this data frequently so I'm looking for feedback on how to either structure the problem better, OR more resources? </p><p>100% consumption for 4 min on my main machine isn't what I want to do. Tho the data set is big, all other tasks run very reasonably with most tasks completing in 20 or 30 seconds.</p>
dr 🛠️🛰️📡🎧:blobfoxcomputer:<p>Took a fun couple hours creating a function that does his slowest part as a service (not doing his work for him--we realized this needs to exist outside of his work) and then also making a parallelized helper for it.</p><p>Yep, 10-15x speedup using 16 cores. I think the operational machines have 32 or more cores, so this is great. Gets our final runtimes down to &lt;1s (easy case) and &lt;10s (hard case). </p><p><a href="https://hachyderm.io/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://hachyderm.io/tags/multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multiprocessing</span></a> <a href="https://hachyderm.io/tags/threads" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>threads</span></a> <a href="https://hachyderm.io/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a> <a href="https://hachyderm.io/tags/space" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>space</span></a> <a href="https://hachyderm.io/tags/orbitalmechanics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>orbitalmechanics</span></a></p>
dr 🛠️🛰️📡🎧:blobfoxcomputer:<p><span class="h-card"><a href="https://hachyderm.io/@the_curiostech" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>the_curiostech</span></a></span> I don't have a particular go-to. My frequent <a href="https://hachyderm.io/tags/multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multiprocessing</span></a> use-case is embarassingly parallel so I use <a href="https://hachyderm.io/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> mp.Pool.map().</p><p>No rpc, no queues or locks or anything. Just "please blast this code across 10000 items and give me the results".</p><p>I find if I write "base code" any more complicated than that the bugs I encounter are too hard for my tiny brain.</p>
Peter Kahn🏳️‍⚧️🇺🇦🇵🇸🏳️‍🌈<p>Oh wow <a href="https://tech.lgbt/tags/pyhton" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pyhton</span></a> threading lib is sooo nice. I used the <a href="https://tech.lgbt/tags/multiprocessing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>multiprocessing</span></a> lib a while back and found it cumbersome. Parallelism in my existing Artifactory calls will be a snap with this one. I update metadata on docker manifests with quality gate data, deployment operator and deployment approver. When I did this we had less than related 20 images. We now have 60+ and it’s time to boost the efficiency a bit. This will be easy. I haven’t had to do much unit testing around threading so this should be fun</p>