Linda (coordination Language)
   HOME

TheInfoList



OR:

In
computer science Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, Linda is a coordination model that aids communication in
parallel computing Parallel computing is a type of computing, computation in which many calculations or Process (computing), processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time. ...
environments. Developed by David Gelernter, it is meant to be used alongside a full-fledged computation language like Fortran or C where Linda's role is to "''create'' computational activities and to support communication among them".


History

David Gelernter wrote the first version of Linda as a Ph.D. candidate in 1979, naming it after Linda Lovelace, who appeared in the pornographic film '' Deep Throat''. At the time, the main language for parallel processing was Ada (named for the unrelated
Ada Lovelace Augusta Ada King, Countess of Lovelace (''née'' Byron; 10 December 1815 – 27 November 1852), also known as Ada Lovelace, was an English mathematician and writer chiefly known for her work on Charles Babbage's proposed mechanical general-pur ...
), which Gelernter considered an "inelegant and bulky" language. It was widely released in 1986, when Gelernter, along with his Yale colleague Nicholas Carriero and Sudhir Ahuja at
AT&T Bell Laboratories Nokia Bell Labs, commonly referred to as ''Bell Labs'', is an American industrial research and development company owned by Finnish technology company Nokia. With headquarters located in Murray Hill, New Jersey, Murray Hill, New Jersey, the compa ...
, published "Linda and Friends" in an
IEEE The Institute of Electrical and Electronics Engineers (IEEE) is an American 501(c)(3) organization, 501(c)(3) public charity professional organization for electrical engineering, electronics engineering, and other related disciplines. The IEEE ...
journal. By the early 1990s, Linda was widely used by corporations to more efficiently conduct
big data Big data primarily refers to data sets that are too large or complex to be dealt with by traditional data processing, data-processing application software, software. Data with many entries (rows) offer greater statistical power, while data with ...
analyses, including
Wall Street Wall Street is a street in the Financial District, Manhattan, Financial District of Lower Manhattan in New York City. It runs eight city blocks between Broadway (Manhattan), Broadway in the west and South Street (Manhattan), South Str ...
brokerage A broker is a person or entity that arranges transactions between a buyer and a seller. This may be done for a commission when the deal is executed. A broker who also acts as a seller or as a buyer becomes a principal party to the deal. Neith ...
s as well as
AT&T AT&T Inc., an abbreviation for its predecessor's former name, the American Telephone and Telegraph Company, is an American multinational telecommunications holding company headquartered at Whitacre Tower in Downtown Dallas, Texas. It is the w ...
,
Boeing The Boeing Company, or simply Boeing (), is an American multinational corporation that designs, manufactures, and sells airplanes, rotorcraft, rockets, satellites, and missiles worldwide. The company also provides leasing and product support s ...
, and
United Technologies United Technologies Corporation (UTC) was an American multinational corporation, multinational list of conglomerates, conglomerate headquartered in Farmington, Connecticut. It researched, developed, and manufactured products in numerous are ...
. There were even companies that specialized in creating specialized parallel computing applications based on Linda, the largest of which was Scientific Computing Associates, a
New Haven New Haven is a city of the U.S. state of Connecticut. It is located on New Haven Harbor on the northern shore of Long Island Sound. With a population of 135,081 as determined by the 2020 U.S. census, New Haven is the third largest city in Co ...
-based company founded by several Yale computer scientists (Gelernter occasionally consulted for them but did not work there). Interest in Linda dropped in the mid-1990s, only to make a comeback in the late 1990s with several corporations implementing Linda in
Java Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
, including
Sun Microsystems Sun Microsystems, Inc., often known as Sun for short, was an American technology company that existed from 1982 to 2010 which developed and sold computers, computer components, software, and information technology services. Sun contributed sig ...
and
IBM International Business Machines Corporation (using the trademark IBM), nicknamed Big Blue, is an American Multinational corporation, multinational technology company headquartered in Armonk, New York, and present in over 175 countries. It is ...
.


Overview


Model

The Linda model provides a
distributed shared memory In computer science, distributed shared memory (DSM) is a form of memory architecture where physically separated memories can be addressed as a single shared address space. The term "shared" does not mean that there is a single centralized memo ...
, known as a tuple space because its basic addressable unit is a
tuple In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
, an ordered sequence of typed data objects; specifically in Linda, a tuple is a sequence of up to 16 typed fields enclosed in parentheses". The tuple space is "logically shared by processes" which are referred to as workers that store and retrieve tuples.


Operations

One of Linda's main advantages is that it's simple, with only six operations that workers perform on the tuples to access tuplespace: * out: Puts a tuple into the tuplespace * in: Takes out a tuple that matches a given pattern from the tuplespace (if there's no match, the operation is blocked) * rd: Copies a tuple that matches a given pattern from the tuplespace (if there's no match, the operation is blocked) * eval: Creates a new process to evaluate tuples * inp: A non-blocking version of in (if there's no match, an error message is returned) * rdp: A non-blocking version of rd (if there's no match, an error message is returned)


Comparison

Compared to other parallel-processing models, Linda is more
orthogonal In mathematics, orthogonality (mathematics), orthogonality is the generalization of the geometric notion of ''perpendicularity''. Although many authors use the two terms ''perpendicular'' and ''orthogonal'' interchangeably, the term ''perpendic ...
in treating process coordination as a separate activity from computation, and it is more general in being able to subsume various levels of concurrency—uniprocessor, multi-threaded multiprocessor, or networked—under a single model. Its orthogonality allows processes computing in different languages and platforms to interoperate using the same primitives. Its generality allows a multi-threaded Linda system to be distributed across multiple computers without change. Whereas message-passing models require tightly coupled processes sending messages to each other in some sequence or protocol, Linda processes are decoupled from other processes, communicating only through the tuplespace; a process need have no notion of other processes except for the kinds of tuples consumed or produced. Criticisms of Linda from the multiprocessing community tend to focus on the decreased speed of operations in Linda systems as compared to
Message Passing Interface The Message Passing Interface (MPI) is a portable message-passing standard designed to function on parallel computing architectures. The MPI standard defines the syntax and semantics of library routines that are useful to a wide range of use ...
(MPI) systems. While not without justification, these claims were largely refuted for an important class of problems. Detailed criticisms of the Linda model can also be found in Steven Ericsson-Zenith's book ''Process Interaction Models''. Researchers have proposed more primitives to support different types of communication and co-ordination between (open distributed) computer systems, and to solve particular problems arising from various uses of the model. Researchers have also experimented with various means of implementing the virtual shared memory for this model. Many of these researchers proposed larger modifications to the original Linda model, developing a family of systems known as Linda-like systems and implemented as orthogonal technology (unlike original version). An example of this is the language Ease designed by Steven Ericsson-Zenith. Linda's approach has also been compared to that of flow-based programming.


Linda-calculus

The Linda-calculus is a formalisation of the above model with the difference that in the following \mathrm subsumes both out and eval operations.


Syntax

We abstract the concrete representation of tuples. We just assume that we have a set of tuples t \in \mathcal and we are allowed to form and apply a substitution function \sigma on tuples substituting variables for terms that yields a tuple. For example, given we have a tuple t = (\mathit, x), then applying a substitution \sigma = \ on t yields (\mathit, \mathit) The Linda-calculus processes are defined by the following grammar. P,Q ::= t \;, \; \mathrm(P).Q \;, \; \mathrm(t).P \;, \; \mathrm(t).P \;, \; P + Q \;, \; \mathbf X. P \;, \; X The syntax includes the aftermentioned Linda operations, non-deterministic choice, and
recursion Recursion occurs when the definition of a concept or process depends on a simpler or previous version of itself. Recursion is used in a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in m ...
. The substitution function is extended to processes recursively.


Semantics

A tuple space is represented as a
multiset In mathematics, a multiset (or bag, or mset) is a modification of the concept of a set that, unlike a set, allows for multiple instances for each of its elements. The number of instances given for each element is called the ''multiplicity'' of ...
of the processes. We write M \,, \, P for M \uplus \ where M is a multiset, \ a singleton multiset, and \uplus is the multiset union operation. The semantics is then defined as a reduction relation on a multiset M \rightarrow M' as follows. \begin \text & M \,, \, \mathrm(P).Q &\rightarrow& M \,, \, P \,, \, Q & \\ \text & M \,, \, \mathrm(t).P \,, \, t' &\rightarrow& M \,, \, P\sigma \,, \, t' & \text \sigma \text t\sigma = t' \\ \text & M \,, \, \mathrm(t).P \,, \, t' &\rightarrow& M \,, \, P\sigma & \text \sigma \text t\sigma = t' \\ \text & M \,, \, P + Q &\rightarrow& M \,, \, P & \\ \text & M \,, \, P + Q &\rightarrow& M \,, \, Q & \\ \text & M \,, \, \mathbf X. P &\rightarrow& M \,, \, P\ & \\ \end Note that (input) consumes the tuple t' from the tuple space whereas (read) only reads it. The resulting operational semantics is synchronous.


Implementations

Linda was originally implemented in C and Fortran, but has since been implemented in many programming languages, including: * C: C-Linda
TCP-LindaLinuxTuples
* C++
CppLindaBoreas
* C#
pSpaces
* Erlang
Erlinda
* Go
pSpaces
*
Java Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
: JavaSpaces
jRESPTSpacesLightTSpSpaces
*
JavaScript JavaScript (), often abbreviated as JS, is a programming language and core technology of the World Wide Web, alongside HTML and CSS. Ninety-nine percent of websites use JavaScript on the client side for webpage behavior. Web browsers have ...

pSpaces
*
Lisp Lisp (historically LISP, an abbreviation of "list processing") is a family of programming languages with a long history and a distinctive, fully parenthesized Polish notation#Explanation, prefix notation. Originally specified in the late 1950s, ...
* Lua
LuaTSLua Lanes
*
Prolog Prolog is a logic programming language that has its origins in artificial intelligence, automated theorem proving, and computational linguistics. Prolog has its roots in first-order logic, a formal logic. Unlike many other programming language ...

SICStus Prolog Linda
* Python: PyLinda *
Ruby Ruby is a pinkish-red-to-blood-red-colored gemstone, a variety of the mineral corundum ( aluminium oxide). Ruby is one of the most popular traditional jewelry gems and is very durable. Other varieties of gem-quality corundum are called sapph ...
: Rinda *
Swift Swift or SWIFT most commonly refers to: * SWIFT, an international organization facilitating transactions between banks ** SWIFT code * Swift (programming language) * Swift (bird), a family of birds It may also refer to: Organizations * SWIF ...

pSpaces
Some of the more notable Linda implementations include: * C-Linda or TCP-Linda - the earliest commercial and a widespread implementation of virtual shared memory for supercomputers and clustered systems from Scientific Computing Associates, founded by Martin Schultz. * JavaSpaces - a Java-based tuplespace implementation that helped popularize distributed computing.
TSpaces
- a Java-based tuplespace platform from IBM.


See also

*
Dataflow In computing, dataflow is a broad concept, which has various meanings depending on the application and context. In the context of software architecture, data flow relates to stream processing or reactive programming. Software architecture Dat ...
*
Data flow diagram A data-flow diagram is a way of representing a flow of data through a process or a system (usually an information system). The DFD also provides information about the outputs and inputs of each entity and the process itself. A data-flow diagram ha ...
*
Dataflow programming In computer programming, dataflow programming is a programming paradigm that models a program as a directed graph of the data flowing between operations, thus implementing dataflow principles and architecture. Dataflow programming languages share ...
* Flow-based programming *
Parallel computing Parallel computing is a type of computing, computation in which many calculations or Process (computing), processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time. ...


References

{{DEFAULTSORT:Linda (Coordination Language) Concurrent programming languages Programming languages