Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once successfully installed, please refer to the examples on how to write CnC-Scala programs. The two simplest examples to get started are:

  •  Partition String: finds the odd length repeating fragments from the input string
  •  Find Primes: finds all odd numbers which are primes up to the given input

These are steps required to write a CnC-Scala program from scratch: 1.

  1. Provide a definition of the CnC computation graph

...

  1. Generate the stub code for the CnC Graph, Steps and Tag Collections using cnc_scala_translate command

...

  1. Provide implementations for the Steps

...

  1. Write a main method to initialize the CnC graph and start the computation

...

  1. Compile the generated and custom code using cnc_scala_compile command

...

  1. Run the compiled program using cnc_scala_run command