Developer preview. Vela, Facet, and Quire are pre-release and in active development — syntax, APIs, and availability may change, and they are not yet generally available.
SStretch Dev Docs
Vela

Examples

Curated starter examples from `.sources/vela/examples`.

1. First files to run

vela run examples/hello.vela
vela run examples/calculator.vela
vela run examples/vectors.vela
  • hello.vela: basic output, function, loop.
  • calculator.vela: tokenizer and recursive-descent parser.
  • vectors.vela: vectorized operators and dot pipelines.

2. Core language examples

  • args.velaARGV as a global argument list.
  • datatypes.vela — records, pattern matching, tagged unions.
  • fib.vela — recursion and mutable loops.
  • eval.vela — AST-style ADT evaluation.
  • modules_demo.velause "path.vela".

3. Strings and text

  • codex_text_* examples for palindrome, parsing, CSV-style shaping, markdown conversion.
  • text_csv.vela and parse_csv_typed.vela — parse records and infer string→number conversions.
  • wordcount.vela — immutable map-style frequency counting.

4. Data and statistics

  • vectors.vela and dataframe.vela for the data-oriented side.
  • stats_* examples for averages, variance, covariance, regression.

5. Algorithms

  • algo_* and codex_algo_* show recursion, sorting, search, graphs.
  • ds_* and vm_* show user-defined recursive structures and tiny interpreters.

6. Games and simulations

  • game_* and codex_sim_* cover deterministic loops, randomness, and simulation-style examples.

7. How to use EXAMPLES.md

The source catalog in docs/EXAMPLES.md is generated as an annotated index and stays the authoritative list. Use it when you want the complete coverage.