Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

" Basically there are two models of concurrency:

    Shared state concurrency
    Message passing concurrency
"

Wouldn't the node.js style callbacks be a third type of concurrency? It's similar to message passing, but quite different from the user's perspective.



He did qualify that statement with "basically" and if you think about it, a "callback" function really is just sending a message.


Yes, however at the implementation level, message based concurrency is shared memory concurrency (as I understand anyway.) Callbacks seem to me an entirely a different abstraction.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: