« first day (3790 days earlier)      last day (1141 days later) » 

1:42 AM
 
 
9 hours later…
10:47 AM
Morning
 
 
1 hour later…
11:56 AM
curl/OpenSSL initialization functions being called from a secondary thread while doing process cleanup is apparently not a good idea.
Like this code-base has 2 threads at most, when the one I previously worked at had like 200 and I still stumble into the same dumb issues. I feel like anything to do with threading in C++ is like painting an actual target on your shoe and pulling out the fully automatic footgun
 
nwp
12:45 PM
Yeah, there is not really a difference in thread safety requirements between 2 threads and 200 threads.
I've had some fun with TypeScript/JavaScript. It's single-threaded but highly concurrent. Pretty interesting.
 
1:02 PM
@PeterT welcome to the unix philosophy and Eric Nibbler's thoughts
 
1:46 PM
heh, Nibbler. Someone watched too much Futurama
 
actually wrong Eric
I was thinking of Eric Lippert
who basically says that multi-threading was a mistake
 
 
2 hours later…
4:07 PM
@PeterT The footgun in this case isn't nearly as much C++ threading as it is cURL.
 
I'm pretty sure it was my fault to a higher degree. The future waiting on the thread was in a structure that was allocated as a static var. So as far as I could see it was already cleaning up static variables when it was trying to wait for the future to get a result back
 
4:51 PM
@nwp I actually had an issue with it. I wrote a program in the past that used to work perfectly in my previous 2 core(thread) CPU. After upgrading my system that supports 4 thread, it ran into a problem. I don't remember the exact issue. But I managed to fix it.
 
I just assume that the Cell Processor is the result of just one Engineers very specific issue with shared memory parallelism.
That went "alright, you guys don't want to write Agent-based parallelism in software? We'll do it in hardwarre then"
 
5:12 PM
@Milad I'd say he's (at least mostly) correct. The usual difference is that the more cores you have, the sooner you're likely to see the symptoms of a lot of threading problems. In a lot of cases, the growth rate of seeing symptoms seems to be super-linear, so as you add even a few more cores, they show up a lot faster.
That said, there are certainly cases where you can write code that will work perfectly with N or fewer cores, but fail with > N.
 
 
4 hours later…
9:35 PM
@PeterT honestly it feels like a "Well they want vector ops and GPU like abilities.... why can't we just make that into the CPU?"
 
 
2 hours later…
11:36 PM
hello
 

« first day (3790 days earlier)      last day (1141 days later) »