News for hackers. Stuff that matters.
Re:Why threads vs events is a nonsensical question. by divtxt on Sunday August 21, 2011 @02:57AM (#2908687)
The important question is: how can humans correctly write concurrent code?

We think of "threads" as one of the options. The thing is that we've mostly been using threads with locks (e.g. Java), and slide #3 points out where we have gone wrong:

  Drawbacks of threads
    ...
  Drawbacks of events
    ...
  Actually drawbacks of locks and top-level select loops!
In fact, it is "locks" that humans have trouble with.

Note the title of the presentation - Threads without Locks - suggesting another option. (as others have noted, this presentation describes Go, and I personally believe this is why Go will do well)

edit: wording, formatting

There are no comments on this comment yet.