[e-lang] What is defensive consistency?
Tyler Close
tyler.close at gmail.com
Thu Nov 1 12:19:18 EDT 2007
On 10/31/07, David Wagner <daw at cs.berkeley.edu> wrote:
> Last question: Can anyone suggest an example of a defensively consistent
> component that helps illustrate the concept? MarkM's gives an example
> of a Counter that has an increment() method and nothing else, but I
> yearned for something that exposed some non-trivial challenges/issues.
> Can anyone give a slightly less trivial example that might help me to
> understand the concept of defensive consistency with a concrete example?
I think the observable, mutable slot is a useful example. There's a
write-up, adapted from MarkM's thesis, at:
http://waterken.sourceforge.net/javadoc/org/ref_send/promise/eventual/Eventual.html
At the top of the page is a version that exhibits all the failure
modes. Further down is a version that is defensively consistent:
http://waterken.sourceforge.net/javadoc/org/ref_send/promise/eventual/Eventual.html#_(T)
I think all the issues raised in your email can be explored using this example.
--Tyler
--
The web-calculus is the union of REST and capability-based security:
http://www.waterken.com/dev/Web/
Name your trusted sites to distinguish them from phishing sites.
https://addons.mozilla.org/firefox/957/
More information about the e-lang
mailing list