a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment
thundara  ·  4730 days ago  ·  link  ·    ·  parent  ·  post: Massive non-parallel core programming
Well, for a lot of people, the mental shift towards non-deterministic code can be a bit troublesome, I've seen plenty programs that failed because they didn't bother to use locks and tried to poke a bit of memory after it had been freed by another thread.

On the other hand, there are problems that are inherently unsolvable with locks because they just aren't available, like network programming.

Other problems are difficult to imagine without some sort of central synchronization. If you're running reddit, how do you store comments/replies without using one central database? What if someone replies to a comment that was stored on server X and server Y receives that request before server X tells it about the first comment?

Should it error? Or just store the comment in that inconsistent state and worry about resolving/cleaning up dangling references later?