SUPPORT THE WORK

GetWiki

dataflow programming

ARTICLE SUBJECTS
aesthetics  →
being  →
complexity  →
database  →
enterprise  →
ethics  →
fiction  →
history  →
internet  →
knowledge  →
language  →
licensing  →
linux  →
logic  →
method  →
news  →
perception  →
philosophy  →
policy  →
purpose  →
religion  →
science  →
sociology  →
software  →
truth  →
unix  →
wiki  →
ARTICLE TYPES
essay  →
feed  →
help  →
system  →
wiki  →
ARTICLE ORIGINS
critical  →
discussion  →
forked  →
imported  →
original  →
dataflow programming
[ temporary import ]
please note:
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
{{Short description|Computer programming paradigm}}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.WEB, Schwarzkopf, Malte, The Remarkable Utility of Dataflow Computing,weblink ACM SIGOPS, 31 July 2022, 7 March 2020, Dataflow programming languages share some features of functional languages, and were generally developed in order to bring some functional concepts to a language more suitable for numeric processing. Some authors use the term datastream instead of dataflow to avoid confusion with dataflow computing or dataflow architecture, based on an indeterministic machine paradigm. Dataflow programming was pioneered by Jack Dennis and his graduate students at MIT in the 1960s.

Considerations

Traditionally, a program is modelled as a series of operations happening in a specific order; this may be referred to as sequential,JOURNAL, Johnston, Wesley M., J.R. Paul Hanna, Richard J. Millar, Advances in Dataflow Programming Languages, ACM Computing Surveys, March 2004, 36, 1–34,weblink 15 August 2013, 10.1145/1013208.1013209, 5257722, {{rp|p.3}}procedural,BOOK, Wadge, William W., Lucid, the Dataflow Programming Language, 1985, Academia Press, 9780127296500,weblink illustrated, Edward A. Ashcroft, 15 August 2013, registration, control flow (indicating that the program chooses a specific path), or imperative programming. The program focuses on commands, in line with the von Neumann{{rp|p.3}} vision of sequential programming, where data is normally "at rest".{{rp|p.7}}In contrast, dataflow programming emphasizes the movement of data and models programs as a series of connections. Explicitly defined inputs and outputs connect operations, which function like black boxes.{{rp|p.2}} An operation runs as soon as all of its inputs become valid.WEB, Dataflow Programming Basics,weblink Getting Started with NI Products, National Instruments Corporation, 15 August 2013, Thus, dataflow languages are inherently parallel and can work well in large, decentralized systems.{{rp|p.3}}WEB, Harter, Richard, Data Flow languages and programming - Part I,weblink Richard Harter's World, 15 August 2013,weblink" title="web.archive.org/web/20151208165213weblink">weblink 8 December 2015, dead, WEB, Why Dataflow Programming Languages are Ideal for Programming Parallel Hardware,weblink Multicore Programming Fundamentals Whitepaper Series, National Instruments Corporation, 15 August 2013,

State

One of the key concepts in computer programming is the idea of state, essentially a snapshot of various conditions in the system. Most programming languages require a considerable amount of state information, which is generally hidden from the programmer. Often, the computer itself has no idea which piece of information encodes the enduring state. This is a serious problem, as the state information needs to be shared across multiple processors in parallel processing machines. Most languages force the programmer to add extra code to indicate which data and parts of the code are important to the state. This code tends to be both expensive in terms of performance, as well as difficult to read or debug. Explicit parallelism is one of the main reasons for the poor performance of Enterprise Java Beans when building data-intensive, non-OLTP applications.{{Citation needed|date=March 2017}}Where a sequential program can be imagined as a single worker moving between tasks (operations), a dataflow program is more like a series of workers on an assembly line, each doing a specific task whenever materials are available. Since the operations are only concerned with the availability of data inputs, they have no hidden state to track, and are all "ready" at the same time.

Representation

Dataflow programs are represented in different ways. A traditional program is usually represented as a series of text instructions, which is reasonable for describing a serial system which pipes data between small, single-purpose tools that receive, process, and return. Dataflow programs start with an input, perhaps the command line parameters, and illustrate how that data is used and modified. The flow of data is explicit, often visually illustrated as a line or pipe.In terms of encoding, a dataflow program might be implemented as a hash table, with uniquely identified inputs as the keys, used to look up pointers to the instructions. When any operation completes, the program scans down the list of operations until it finds the first operation where all inputs are currently valid, and runs it. When that operation finishes, it will typically output data, thereby making another operation become valid.For parallel operation, only the list needs to be shared; it is the state of the entire program. Thus the task of maintaining state is removed from the programmer and given to the language's runtime. On machines with a single processor core where an implementation designed for parallel operation would simply introduce overhead, this overhead can be removed completely by using a different runtime.

Incremental updates

Some recent dataflow libraries such as Differential/Timely Dataflow have used incremental computing for much more efficient data processing.WEB, McSherry, Frank, Murray, Derek, Isaacs, Rebecca, Isard, Michael, Differential dataflow, Microsoft,weblink 31 July 2022, 5 January 2013, WEB, Differential Dataflow,weblink Timely Dataflow, 31 July 2022, 30 July 2022,

History

A pioneer dataflow language was BLODI (BLOck DIagram), published in 1961 by John Larry Kelly, Jr., Carol Lochbaum and Victor A. Vyssotsky for specifying sampled data systems.JOURNAL, Bell System Tech. J., A block diagram compiler, John L. Kelly Jr., Carol Lochbaum, V. A. Vyssotsky, 40, 3, 1961, 669–678, 10.1002/j.1538-7305.1961.tb03236.x, A BLODI specification of functional units (amplifiers, adders, delay lines, etc.) and their interconnections was compiled into a single loop that updated the entire system for one clock tick.In a 1966 Ph.D. thesis, The On-line Graphical Specification of Computer Procedures,THESIS, Sutherland, William Robert, Bert Sutherland, January 1966, The on-line graphical specification of computer procedures
Massachusetts Institute of Technology>MIT, 1721.1/13474, PhD thesis,weblinkBert Sutherland created one of the first graphical dataflow programming frameworks in order to make parallel programming easier. Subsequent dataflow languages were often developed at the large supercomputer labs. POGOL, an otherwise conventional data-processing language developed at NSA, compiled large-scale applications composed of multiple file-to-file operations, e.g. merge, select, summarize, or transform, into efficient code that eliminated the creation of or writing to intermediate files to the greatest extent possible.POPL '73: PROCEEDINGS OF THE 1ST ANNUAL ACM SIGACT-SIGPLAN SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES TITLE=LARGE SCALE FILE PROCESSING: POGOL ASSOCIATION FOR COMPUTING MACHINERY>ACM PAGES=226–234, SISAL, a popular dataflow language developed at Lawrence Livermore National Laboratory, looks like most statement-driven languages, but variables should be single assignment. This allows the compiler to easily identify the inputs and outputs. A number of offshoots of SISAL have been developed, including SAC programming language>SAC, Single Assignment C, which tries to remain as close to the popular C programming language as possible.The United States Navy funded development of ACOS and SPGN (signal processing graph notation) starting in the early 1980s. This is in use on a number of platforms in the field today.Underwater Acoustic Data Processing, Y.T. ChanA more radical concept is Prograph, in which programs are constructed as graphs onscreen, and variables are replaced entirely with lines linking inputs to outputs. Incidentally, Prograph was originally written on the Macintosh, which remained single-processor until the introduction of the DayStar Genesis MP in 1996.{{citation needed|date=September 2023}}There are many hardware architectures oriented toward the efficient implementation of dataflow programming models.{{vague|date=September 2023}} MIT's tagged token dataflow architecture was designed by Greg Papadopoulos.{{undue inline|date=September 2023}}Data flow has been proposed{{by whom|date=September 2023}} as an abstraction for specifying the global behavior of distributed system components: in the live distributed objects programming model, distributed data flows are used to store and communicate state, and as such, they play the role analogous to variables, fields, and parameters in Java-like programming languages.

Languages

{{more citations needed|section|date=February 2019}}Dataflow programming languages include:

Libraries

  • Apache Beam: Java/Scala SDK that unifies streaming (and batch) processing with several execution engines supported (Apache Spark, Apache Flink, Google Dataflow etc.)
  • Apache Flink: Java/Scala library that allows streaming (and batch) computations to be run atop a distributed Hadoop (or other) cluster
  • Apache Spark
  • SystemC: Library for C++, mainly aimed at hardware design.
  • TensorFlow: A machine-learning library based on dataflow programming.

See also

References

{{Reflist}}

External links

{{Programming paradigms navbox}}{{Types of programming languages}}


- content above as imported from Wikipedia
- "dataflow programming" does not exist on GetWiki (yet)
- time: 5:05am EDT - Sat, May 04 2024
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 23 MAY 2022
GETWIKI 09 JUL 2019
Eastern Philosophy
History of Philosophy
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
CONNECT