zippy / ceptr

(a recomposable medium for distributed social computing) || (semantic self-describing protocol stacks)
http://ceptr.org
GNU General Public License v3.0
88 stars 17 forks source link

Add looping/replication instruction #26

Open zippy opened 8 years ago

zippy commented 8 years ago

We need an instruction for creating a looping construct (what we call replication) that:

  1. adds an execution context for each time through the loop (i.e. like a block for any locally scoped variables.)
  2. Runs serially or in parallel
  3. Runs on either a collection as input parameters, or a boolean process as a conditional test for ending the replication, or for a number of times.
zippy commented 8 years ago

9bfb5249 adds scaffolding for replication.

zippy commented 8 years ago

We need to figure out what replication returns, the value from the last iteration? a value via some kind of RETURN op, or yet something else, like no meaningful return value.

zippy commented 8 years ago

09ef5c42 adds two types of end condition for replication: