Go to file
2020-11-01 10:30:24 +03:00
.circleci New data format (#12) 2020-10-30 20:29:05 +03:00
artifacts Merge previous data with current (#10) 2020-10-16 12:47:46 +03:00
crates New data format (#12) 2020-10-30 20:29:05 +03:00
stepper New data format (#12) 2020-10-30 20:29:05 +03:00
stepper-lib move to the new FCE version 2020-11-01 10:30:24 +03:00
.gitignore Introduce Seq, Par, Fold instructions (#5) 2020-10-08 12:43:23 +03:00
Cargo.lock move to the new FCE version 2020-11-01 10:30:24 +03:00
Cargo.toml New data format (#12) 2020-10-30 20:29:05 +03:00
CHANGELOG.md New data format (#12) 2020-10-30 20:29:05 +03:00
Config.toml Introduce Seq, Par, Fold instructions (#5) 2020-10-08 12:43:23 +03:00
LICENSE Initial commit 2020-09-18 14:05:43 +03:00
README.md Introduce Seq, Par, Fold instructions (#5) 2020-10-08 12:43:23 +03:00

Aquamarine

Aquamarine is a distributed choreography language & platform

AIR

The current version supports the following instructions:

  • call
  • par
  • seq
  • fold
  • next
  • null

Examples

(seq (
    (call (%current_peer_id1% (local_service_id local_fn_name) () result_name_1))
    (call (remote_peer_id (service_id fn_name) () result_name_2))
)),

This instruction sequence contains two call instructions in the sequential order:

  1. call a function with local_fn_name name of a local service with local_service_id id and bind result to result_name
  2. call a remote peer with remote_peer_id id
(fold (Iterable i
    (seq (
        (call (%current_peer_id% (local_service_id local_fn_name) (i) acc[]))
        (next i)
    )
)))

This example is an analog of left fold. It iterates over Iterable and on each iteration calls local_service_id and puts result to acc.