Re:An Object is not a Hash
by riffraff on Tuesday October 09, 2012 @03:43AM
(#4630451)
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)
[ Parent
| on HN ]
There 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.
Re:An Object is not a Hash
by JulianMorrison on Tuesday October 09, 2012 @05:12AM
(#4630638)
They'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.
Re:An Object is not a Hash
by brian_cloutier on Tuesday October 09, 2012 @02:49PM
(#4633310)
You put it much better than I could.