Luce
Luce BaseSourceLuciaOS

A Tour of Luce

An introduction in ten chapters. Each one is built around programs you can copy into a file and run, and each ends with a pointer to the next.

  1. Hello, Luce: installing, a first program, a first project
  2. Values: bindings, numbers, text and conversions
  3. Collections and loops: lists, maps, sets, tuples, for and match
  4. Functions: parameters, defaults, named arguments, lambdas and closures
  5. Structs and enums: your own value types and their methods
  6. Classes: shared objects, their lifetime, and closing resources
  7. Absence and failure: optionals, errors and traps
  8. Interfaces and generics: code that works on many types
  9. Projects and packages: modules, dependencies and tests
  10. Workers, and where next: work in parallel, and what lies beyond the Tour

The Tour assumes you have programmed before, most likely in Python, and compares Luce with it where that helps.