News for hackers. Stuff that matters.
Re:C++17 Is Here: Interview with Herb Sutter by devrandomguy on Tuesday October 24, 2017 @12:59PM (#15543088)
Wow, just thinking about C++ while slacking, was enough to inspire a solution to a race condition in my Clojurescript project.

Earlier, I made some notes and walked away from the problem, because it was getting frustrating. Then, while I was checking this out, I started thinking "Imagine how complex this would have been if I had done it in C++" Then the immediately following thought was "Well, in C++, I would instead build it like so, because it needs to be thread safe." Problem solved, obvious-in-hindsight solution.

Even though my problem wasn't caused by a low level threading mistake, thinking about the problem in the context of a more primitive tool helped me to better understand how my own tools are working.

There are no comments on this comment yet.