0.5.1 • Published 3 years ago

@fluencelabs/aquamarine-stepper v0.5.1

Weekly downloads
1,067
License
Apache 2.0
Repository
github
Last release
3 years ago

Aquamarine

  • composability medium
  • allows developers to express network choreography in a script
  • moves script & data from peer to peer in a single-use logical network with checking merkle proofs and signatures.

Fluence stack

Fluence nodes use aquamarine to coordinate requests between different services run by FCE:

Aquamarine Intermediate Representation

AIR: What is it?

  • S-expression-based low-level language
  • Controls Fluence network and its peers
  • Inspired by WAT (WebAssembly Text Format)
  • Meant to be a compile target
  • Development meant to happen in a higher-level language
  • Syntax is in flux, will change

Scripts written in AIR look like this:

  1. Gather chat members by calling chat.members
  2. Iterate through elements in members array, m = element
  3. Each m is an object, represented as array; 0 is the first field
  4. (next m) triggers next iteration

AIR: Instructions

call: execution

  • call commands the execution
  • moves execution to a peer, specified by location
  • peer is expected to have specified WASM service
  • the service must have specified function available to be called
  • argument list is given to the function
  • result of the function is saved and available under output name
  • example call could be thought of as data.result = dht.put(key, value)

seq: sequential

  • seq takes two instructions
  • executes them sequentially

par: parallel

  • par takes two instructions
  • executes them in parallel

fold: iteration

  • fold takes an array, a variable and an instruction
  • iterates through the array, assigning each element to the variable
  • on each iteration instruction is executed
  • instruction can read the variable
  • next triggers next iteration

xor: branching & error handling

  • xor takes two instructions
  • iff first instruction fails, second one is executed

null

  • null takes no arguments
  • does nothing, useful for code generation
0.0.8-xor-warn.0

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.0.8-new-data.0

3 years ago

0.0.8-mismatch.0

3 years ago

0.0.8-mismatch.1

3 years ago

0.4.1

3 years ago

0.4.2

3 years ago

0.3.4

3 years ago

0.0.8-match.1

3 years ago

0.0.8-match.0

3 years ago

0.3.3

3 years ago

0.0.8-release.3

3 years ago

0.3.2

3 years ago

0.0.8-release.2

3 years ago

0.3.1

3 years ago

0.0.8-release.1

3 years ago

0.3.0

3 years ago

0.0.8-release.0

3 years ago

0.0.8-xor.3

3 years ago

0.0.8-xor.2

3 years ago

0.0.8-xor.1

3 years ago

0.0.8-xor.6

3 years ago

0.0.8-xor.5

3 years ago

0.0.8-xor.4

3 years ago

0.0.8-xor.0

3 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.0.36

3 years ago

0.0.34

3 years ago

0.0.35

3 years ago

0.0.33

3 years ago

0.0.32

3 years ago

0.0.31

3 years ago

0.0.30

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago