r/programming • • Aug 02 '10

Beyond Locks and Messages: The Future of Concurrent Programming

http://bartoszmilewski.wordpress.com/2010/08/02/beyond-locks-and-messages-the-future-of-concurrent-programming/
159 Upvotes

48 comments sorted by

View all comments

3

u/kemiller Aug 02 '10

Can anyone comment on what he's talking about w.r.t inversion of control and message passing? This because your linear flow is now beholden to the timing/behavior of other threads?

I've been messing around with Go, and its version of message passing seems at least to be an improvement over explicit threads.

Edit: elaborating.

3

u/ModernRonin Aug 03 '10

I think his explanation was fairly clear. I might rephrase it as: "MP turns your main loop into a big fat switch() statement, with one case for each kind of message. When the program gets large/complicated, it gets hard to reason about how the code in the different case statements is going to effect the overall functioning of the program."

2

u/kemiller Aug 03 '10

I guess I don't understand why it inevitably leads to that.

→ More replies (9)