In an earlier post, I pointed to Sean
Parent’s talk called
C++ Seasoning and how it is useful in writing better
programs. After posting multiple articles about
programming and other rich
sources of strange issues I thought I would watch a talk given by an actual
expert on the subject for a change.
No Raw Sync Primitives
Basically, Sean discourages you from reinventing the wheel, or a bicycle, or a motorcycle. In this talk, he helps you achieve greater speed He discourages the use of raw synchronization primitives such as mutex, semaphore, fence etc.
"Because you won't get it right" "Amen"
Traditional Synch Primitives:
Single Queue Example - Don’t try to speed the queue up, try to get off it
Try To Minimize the time spent in non parallelizable parts.
Futures in C++
Although it does take away some perf, it provides nice things like provide exception aggregation. What they lack:
Another informative talk by Sean that can hopefully improve our concurrency coding chops.
Bring Your Own Cause
If you think any info here has remotely helped you consider dropping a penny for this cause, just click me . You can visit https://www.bbc.com/news/world-asia-india-52672764 Unfortunately, there are plenty of sad things happening all over the world, if you have a different cause or charity you'd rather support please do. And if you did make a donation, please drop a note to me (annotated) or leave a comment here (anonymous is OK!) and I will use that as motivation to write more useful content here.
If you like topics such as this then please consider subscribing to my podcast. I talk to some of the stalwarts in tech and ask them what their favorite productivity hacks are:
Available on iTunes Podcast
Visit Void Star Podcast’s page on iTunes Podcast Portal. Please Click ‘Subscribe’, leave a comment.