Tutorial I – Single-PE Programming
The first three lessons of the main sequence program a single PE. They teach the build and test workflow, the Tungsten you need for ordinary code, and how the PE's compute engine runs a loop and what that costs. Every later lesson builds on them: from lesson 4 on, PEs send data to each other, and each PE runs code of the kind written here.
| Lesson | What it teaches |
|---|---|
| Lesson 1 — Hello, wafer! | Tungsten, Paint and Carbide; what make runs; bench.map and miget; the ; after let |
| Lesson 2 — Values, control flow and functions | Types, if and while, functions in an imported module, miset; where Tungsten differs from C |
| Lesson 3 — How a PE runs a loop: vector instructions and cycles | The cycle counter, descriptors and the listing, what makes a loop fast or slow, rounding in references |