[erlang-questions] Parse-transforming !! to a function call

Tony Finch dot@REDACTED
Thu Aug 16 20:08:35 CEST 2007


On Thu, 16 Aug 2007, Richard Carlsson wrote:
>
> To end this on a more positive note, I'd like to encourage everyone on
> this list to keep thinking about how Erlang process communication could
> be made even simpler and more streamlined.

I quite like E's promise-passing RPC. It's sort of intermediate between
Erlang's async one-way messages and a synchronous RPC. The immediate
result of an RPC is a promise, and you can send messages to it on the
assumption that it will resolve into an object that can handle the
messages (in Erlang that would be a pid). For anything else you have to
wait for the promise to resolve or be broken; I think it would be
reasonable for the promise to provide standard ways of doing so while
handling errors and timeouts.

See erights.org for more. Their promises asynchronously morph into the
value they resolve to, which makes me worry - I prefer the idea of
promises that are more visibly proxies that must be unwrapped when they
are ready.

Tony.
-- 
f.a.n.finch  <dot@REDACTED>  http://dotat.at/
IRISH SEA: SOUTHERLY, BACKING NORTHEASTERLY FOR A TIME, 3 OR 4. SLIGHT OR
MODERATE. SHOWERS. MODERATE OR GOOD, OCCASIONALLY POOR.



More information about the erlang-questions mailing list