2 ms·
> Can you safely replay arbitrary C, C++, etc.? No, because side-effecting code could run at any time and occur in any context. So that is one problem that has
by seanmcdirmid 12y ago
> Can you safely replay arbitrary C, C++, etc.? No, because side-effecting code could run at any time and occur in any context. So that is one problem that has to be solved first.
I spend my time solving this problem. You can do it with a programming model especially designed for it. Functional programming is not required, though can be convenient.
> Well, now for a distributed system, you need to make STM talk to STM. Make one module talk to another over a network, or a filesystem, or another database, or a client browser. Do you have STM working in the JavaScript running on client's machines? And even if you managed that feat, do you have end-to-end STM from your datastore to your client's actions?
STM is the wrong way of thinking about this problem, mainly because replay is not an intrinsic part of the paradigm (instead, users manage that themselves). Rather, go back further to Jefferson's virtual time/Time Warp system [1], which was designed specifically in the context of distributed systems.
[1] http://dl.acm.org/citation.cfm?id=3988 http://dl.acm.org/citation.cfm?id=3988
There are also many related systems like Concurrent Revisions, LVars, Bloom, and so on...