Language
Aqua is a language for distributed workflow coordination in p2p networks.
It's structured with significant indentation:
- Tabs and spaces are allowed simultaneously
- Indentation of a parent block should be a strict prefix of indentation of a child block
- First line in a block defines indentation and all consequent lines should have the same indentation
aqua
aqua
Values in Aqua have types, which are designated by a colon, :, as seen in the function signature below. The type of a return, which is yielded when a function is executed, is denoted by an arrow pointing to the right -> , whereas yielding is denoted by an arrow pointing to the left <-.
aqua
aqua
Subsequent sections explain the main parts of Aqua.
Data:
Execution:
- Topology – how to express where the code should be executed
- Execution flow – control structures
Computations:
Advanced parallelism:
Code management:
Reference: