Efficient logic variables for distributed computing
Seif Haridi, Peter Van Roy, Per Brand et al. · ACM Transactions on Programming Languages and Systems · 1999
We define a practical algorithm for distrubuted rational tree unification and prove its correctness in both the off-line and on-line cases. We derive the distributed algorithm from a centralized one, showing clearly the trade-offs between local and distributed execution. The algorithm is used to realize logic variables in the Mozart Programming System, which implements the Oz language (see http://www/mozart-oz.org). Oz appears to the programmer as a concurrent object-oriented language with dataflow synchronization. Logic variables implement the dataflow behavior. We show that lohgic variables can easily be added to the more restricted models of Java and ML, thus providing an alternative way to do concurent programming in these languages. We present common distributed programming idioms in a network-transparent way using logic variables. We show that in common cases the algorithm maintains the same message latency as explicit message passing. In addition, it is able to handle uncommon cases that arise from the properties of latency tolerance and third-party independence. This is evidence that using logic variables in distributed computing is beneficial at both the system and language levels. At the system level, they improve latency tolerance and third-party independence. At the language level, they help make network-transparent distribution practical.
Cited by 45 works. doi:10.1145/319301.319347 Open-access PDF
Authors
References
- Lecture Notes in Computer Science 1205
- A Machine-Oriented Logic Based on the Resolution Principle
- The C++ Programming Language
- The Java Language Specification
- Foundations of Logic Programming
- The C programming language
- The C++ programming language (2nd ed.)
- MULTILISP: a language for concurrent symbolic computation
- Foundations of logic programming; (2nd extended ed.)
- Constraint logic programming: a survey