18 points · by luckystrike · 18y ago · 7 comments
"Many of the processes will actually be suspended waiting for the next message, [...]" Exactly. What's the use of making a function call asynchronous, if the program has to wait for the result? None. It's just going to generate overhead.
Just a thought experiment: What if I take a program and make every line of code spawn a process, and the next line wait for the result. It's clear that this won't improve performance.
i "feel" that problems are more due to difference in semantics associated with the syntax, rather than with just the syntax itself.
So it strikes me that this proposal is sort of re-inventing in Erlang something that already exists. Moreover when one throws in OTP and it's frameworks for structuring collections of processes, I'm not quite sold on the benefits of doing this beyond making Erlang accessible to the larger audience steeped in the OO way.
Corrado Santoro has done a little bit with this in his agent technology http://www.diit.unict.it/users/csanto/exat
Rubinius is going whole-hog on green (lightweight) threads, BTW.