encyclopegia.org

ParaSail (programming language)

Parallel Specification and Implementation Language (ParaSail) is an object-oriented parallel programming language.[src] Its design and ongoing implementation is described in a blog and on its official website.[src] ParaSail uses a pointer-free programming model, where objects can grow and shrink, and value semantics are used for assignment.[src] It has no global garbage collected heap.[src] Instead, region-based memory management is used throughout.[src] Types can be recursive, so long as the recursive components are declared optional.[src] There are no global variables, no parameter aliasing, and all subexpressions of an expression can be evaluated in parallel.[src] Assertions, preconditions, postconditions, class invariants, etc., are part of the standard syntax, using a Hoare-like notation.[src] Any possible race conditions are detected at compile time.[src] Initial design of ParaSail began in September 2009, by S.[src] Tucker Taft.[src] Both an interpreter using the ParaSail virtual machine, and an LLVM-based ParaSail compiler are available.[src] Work stealing is used for scheduling ParaSail's light-weight threads.[src] The latest version can be downloaded from the ParaSail website.[src]

Parallel Specification and Implementation Language (ParaSail) is an object-oriented parallel programming language.[src] Its design and ongoing implementation is described in a blog and on its official website.[src] ParaSail uses a pointer-free programming model, where objects can grow and shrink, and value semantics are used for assignment.[src] It has no global garbage collected heap.[src] Instead, region-based memory management is used throughout.[src] Types can be recursive, so long as the recursive components are declared optional.[src] There are no global variables, no parameter aliasing, and all subexpressions of an expression can be evaluated in parallel.[src] Assertions, preconditions, postconditions, class invariants, etc., are part of the standard syntax, using a Hoare-like notation.[src] Any possible race conditions are detected at compile time.[src] Initial design of ParaSail began in September 2009, by S.[src] Tucker Taft.[src] Both an interpreter using the ParaSail virtual machine, and an LLVM-based ParaSail compiler are available.[src] Work stealing is used for scheduling ParaSail's light-weight threads.[src] The latest version can be downloaded from the ParaSail website.[src] ==Description== The syntax of ParaSail is similar to Modula, but with a class-and-interface-based object-oriented programming model more similar to Java or C#.[src] More recently, the parallel constructs of ParaSail have been adapted to other syntaxes, to produce Java-like, Python-like, and Ada-like parallel languages, dubbed, respectively, Javallel, Parython, and Sparkel (named after the Ada subset SPARK on which it is based).[src] Compilers and interpreters for these languages are included with the ParaSail implementation.[src] ==Examples== The following is a Hello world program in ParaSail: func Hello_World(var IO) is IO.Println("Hello, World"); end func Hello_World; The following is an interface to a basic map module: interface BMap ; Element_Type is Assignable<>> is op "[]"() -> BMap; // Create an empty map func Insert(var BMap; Key : Key_Type; Value : Element_Type); func Find(BMap; Key : Key_Type) -> optional Element_Type; func Delete(var BMap; Key : Key_Type); func Count(BMap) -> Univ_Integer; end interface BMap; Here is a possible implementation of this map module, using a binary tree: class BMap is interface Binary_Node<> is // A simple "concrete" binary node module var Left : optional Binary_Node; var Right : optional Binary_Node; const Key : Key_Type; var Value : optional Element_Type; // null means deleted end interface Binary_Node; var Tree : optional Binary_Node; var Count := 0; exports op "[]"() -> BMap is // Create an empty map return (Tree => null, Count => 0); end op "[]"; func Insert(var BMap; Key : Key_Type; Value : Element_Type) is // Search for Key, overwrite if found, insert new node if not for M => BMap.Tree loop if M is null then // Not already in the map; add it M := (Key => Key, Value => Value, Left => null, Right => null); BMap.Count += 1; else case Key =?[src] M.Key of [#less] => continue loop with M.Left; [#greater] => continue loop with M.Right; [#equal] => // Key is already in the map; // bump count if Value was null; if M.Value is null then BMap.Count += 1; end if; // in any case overwrite the Value field M.Value := Value; return; end case; end if; end loop; end func Insert; func Find(BMap; Key : Key_Type) -> optional Element_Type is // Search for Key, return associated Value if present, or null otherwise for M => BMap.Tree while M not null loop case Key =?[src] M.Key of [#less] => continue loop with M.Left; [#greater] => continue loop with M.Right; [#equal] => // Found it; return the value return M.Value; end case; end loop; // Not found in BMap return null; end func Find; func Delete(var BMap; Key : Key_Type) is // Search for Key; delete associated node if found for M => BMap.Tree while M not null loop case Key =?[src] M.Key of [#less] => continue loop with M.Left; [#greater] => continue loop with M.Right; [#equal] => // Found it; if at most one subtree is non-null, overwrite // it; otherwise, set its value field to null // (to avoid a more complex re-balancing).[src] if M.Left is null then // Move right subtree into M M Univ_Integer is // Return count of number of items in map return BMap.Count; end func Count; end class BMap; Here is a simple test program for the BMap module: import PSL::Core::Random; import BMap; func Test_BMap(Num : Univ_Integer; Seed : Univ_Integer) is // Test the Binary-Tree-based Map var Ran : Random := Start(Seed); // Start a random-number sequence // Declare a map from integers to strings var M : BMap Univ_Integer, Element_Type => Univ_String>; M := []; // Initialize the map to the empty map for I in 1..Num*2 forward loop // Add elements to the map const Key := Next(Ran) mod Num + 1; const Val := "Val" | To_String(I); Println("About to insert " | Key | " => " | Val); Insert(M, Key, Val); end loop; Println("Count = " | Count(M)); for I in 1..Num loop // Search for elements in the map const Key := Next(Ran) mod Num + 1; Println("Looking for " | Key | ", found " | Find(M, Key)); end loop; for I in 1..Num/3 loop // Delete some elements from the map const Key := Next(Ran) mod Num + 1; Println("About to delete " | Key); Delete(M, Key); end loop; Println("Count = " | Count(M)); for I in 1..Num forward loop // Search again for elements in the map Println("Looking for " | I | ", found " | Find(M, I)); end loop; end func Test_BMap; ==References== ===General references=== ==External links== Blog of design and implementation process ParaSail language newsgroup[src]

36 sentences · 36 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"ParaSail (programming language)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/parasail-programming-language. Accessed 29 November 2026.

Chicago

"ParaSail (programming language)." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/parasail-programming-language.

APA

encyclopegia.org. (2025). ParaSail (programming language). Retrieved November 29, 2026, from https://encyclopegia.org/wiki/parasail-programming-language

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

official language

stub · references available

pan-Slavic language

stub · references available

Hawaiʻi Sign Language

stub · references available

Taiwanese Sign Language

stub · references available

Category:Programming languages

stub · references available

International Mother Language Day

stub · references available

polysynthetic language

stub · references available

Category:Films by country or language

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1323543695 · 0.5 · snapshot enwiki-001323543695

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.