Re:Callbacks as our Generation's Goto Statement
by nickmeharry on Thursday August 15, 2013 @06:21PM
(#6220971)
Have you looked at the Erlang model? Each Erlang process (green thread) only gets the arguments initially passed in and whatever else it asks for from other running processes. The only shared state is long-running processes created for the purpose of explicitly sharing state.
[ Parent
| on HN ]
Re:Callbacks as our Generation's Goto Statement
by fzzzy on Thursday August 15, 2013 @06:23PM
(#6220976)
Yep. The Actor model that Erlang uses is exactly what I was referring to being missing from green thread libraries for other languages (C#, python with greenlet or generators, js with generators)