Content deleted Content added
Cosmoose312 (talk | contribs) No edit summary Tags: Mobile edit Mobile app edit Android app edit |
|||
(26 intermediate revisions by 24 users not shown) | |||
Line 1:
{{Short description|Theoretical programming language for describing concurrent computations}}
The '''UNITY''' programming language was constructed by [[K. Mani Chandy]] and [[Jayadev Misra]] for their book ''Parallel Program Design: A Foundation''. It is a rather theoretical language, which tries to focus on ''what'', instead of ''where'', ''when'' or ''how''. The peculiar thing about the language is that it has no [[flow control]]. The [[statement]]s in the program run in a [[random]] order, until none of the statements causes change if run. A correct program converges into a ''fix-point''.▼
{{about|the 1988 theoretical language|other uses|Unity (disambiguation)#Software{{!}}Unity § Software}}
{{multiple issues|
{{technical|date=September 2011}}
{{primary sources|date=July 2019}}
}}
▲
== Description ==
All statements are [[assignment (computer science)|assignment]]s, and are separated by <code>#</code>. A statement can consist of multiple assignments,
==Examples==
Line 9 ⟶ 16:
===Bubble sort===
[[Bubble sort]] the array by comparing
Program bubblesort
Line 17 ⟶ 24:
initially
n = 20 #
<
assign
<# k : 0 <= k < 2 ::
Line 45 ⟶ 52:
end
===Floyd–Warshall algorithm===
Using the [[
Program shortestpath
Line 84 ⟶ 91:
* K. Mani Chandy and Jayadev Misra (1988) ''Parallel Program Design: A Foundation''.
[[Category:
|