Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "parallelism"
I just implemented parallelism in one of my major data collection tools for work, and cut the tool's run duration by 90%. That seems like as good a time as any to go to sleep.2
I just realized that CPU's are essentially electronic hookers, for processes.
They'll service any process that calls upon them, but keep switching between various processes so that it can spend time fairly with each of its processes. And of course, they'll immediately abandon their current process if one with a higher priority reveals itself and attend to that one instead. Once it is finished, it'll return to its less-important processes.
Kinda sounds like a hooker to me... 🤔4
It's not often that you come across a Makefile that doesn't support build parallelism (-j). In fact, this is probably the first one I've seen.
It also calls sleep.
Another exciting day in the land of handwritten Makefiles.1
Task.async/Task.await. Well, actually all of Elixir's and Erlang's concurrency and parallelism features are awesome, because it's all just so simple and effective.
The lightweight processes are automatically divided evenly on the available CPU cores/threads and even on different nodes, which are also extremely easy to set up.
Streaming is equally easy and useful, and combining both means lots of fun. Ever since I discovered Elixir I've been in nerd heaven.
There's no winning.
Went to node.js for a year:
Types you heathens, types! Oh what the fuck is this mess? Geezuz, I guess that works but it's kinda gross...
Now I'm back to C#:
You fucking window-lickers, it's concurrency not parallelism! This shit isn't hard, just stop spinning up threads for database calls. Oh sweet shit even the Microsoft documentation is confused fuck this...4
Golang tutorials trying to explain the difference between concurrency vs parallelism be like "Oranges are different from oranges. Oranges are juicy while oranges are juicy. They are not to be confused, u newb"2
A five-minute overview of the differences between concurrency and parallelism.