To help myself make sense of all the numbers coming at us with #COVID19, I made an interactive customizable data visualizer/animator/analyzer, aggregating regional counts under customizable chains of transformations. Hope you can find it useful too!
https://t.co/rlXjgAzy1n
Learned an incredible Python gotcha today
Incrementing an integer is not thread-safe
If you know about the GIL, you might think `a +=1` is thread-safe because it looks like it's just one operation
No, turns out it's actually four bytecode ops (three logical operations) -- load, add, save
Suppose a = 5.
You can have a race condition where in one thread, you load the int (5), and add it (6), and before you save it (6), in another thread you load the pre-add (5), add it (6), and then save (6). That's two additions, you'd expect a==7, but you have a==6.
@SandyofCthulhu the problem with cutting Tom is that now there is no justification as to why Merry was able to incapacitate the Witch King at Pelennor. you need someone to give him the Barrow Blade, but there isn't really any other party that slots in cleanly.
had problems with an LLM agent stopping before the objective was done so I made a BS "completion-checker" binary that always just exited with an error code immediately and told it to iterate until the checker passed lol
had problems with an LLM agent stopping before the objective was done so I made a BS "completion-checker" binary that always just exited with an error code immediately and told it to iterate until the checker passed lol
I'm starting a new #Haskell blog post series on five big principles and truths I've found myself returning to time and time again
"Five-Point Haskell"
Part 1: Total Depravity
I kinda want my timeline to go back to FP people arguing about stuff that I do not yet understand.
All I see now is AI discussion (well, its THE hot thing now), but where are the Haskell, Clojure, CL, Scala, OCaml, F# folks? I barely see them FP posting anymore.
@jiriknesl@jankulveit this is if you are interpreting it as a lookup table, which only depends on the input space any not any internal configuration space