logoalt Hacker News

Deterministic Concurrency [video]

26 points • by surprisetalk • last Saturday at 12:14 AM • 2 comments • view on HN

Comments

CoolestBeans • today at 7:27 AM

Refreshing post. This is way above my skis. What's interesting to me is that explaining why someone would want deterministic models clarified why someone would want a nondeterministic model. As long as you have a way to make the properties you care about invariant, then you can let the actual implementation be whatever. You also might not want to use a deterministic concurrency model to deal with faults. The point is working around the nondeterminism that the actual implementation experiences. This is a conceit of Erlang, to accept that there are nondeterministic parts of the system, but that the recovery from them is deterministic. You could probably model fault as an input in the Reactor model and then model fault recovery.

What's interesting about the Reactor model is you don't have to accept that combining two deterministic processes automatically makes it nondeterministic. That has to be super useful for real world systems.

jeffreygoesto • today at 6:18 AM

I immediately thought "Edward Lee" when I read the title. And sure...

His seminal paper "The problem with threads" [0] and others inspired [1] a lot.

Boy would I love to see what would have happened if he and Joe Armstrong would have collaborated...

[0] https://ptolemy.berkeley.edu/publications/papers/06/problemw...

[1] https://edms.etas.com/