3 ms·
I'd assume erlang doesn't count cause the way you do concurrency in it is the opposite of you do it in node (a bunch of stateless processes communicating over s
by riffraff 14y ago
I'd assume erlang doesn't count cause the way you do concurrency in it is the opposite of you do it in node (a bunch of stateless processes communicating over stateful channels vs a single stateful process with callback spaghetti)
- JulianMorrison 14y agoThey're more or less duals: move the functions to the data via closure thunks as callbacks, versus move the data to the function via messages.
- brian_cloutier 14y agoYou put it much better than I could.
- mononcqc 14y agoThere is no channel in Erlang. Each process has a mailbox. Each process is stateful. Node has only 1 and it works with callbacks as a way to do cooperative scheduling, Erlang has N of them and they work through message passing, using preemptive scheduling. They have nearly nothing in common.