Luce Base
LuceSourceLuciaOS

A Tour of Luce Base

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, Base: installing, a first program, a first project
  2. Values: bindings, numbers, text and arrays
  3. Control flow: if, loops, ranges and match
  4. Functions: parameters, defaults, named arguments, several results
  5. Structs and enums: your own types and their methods
  6. Absence and failure: optionals, errors, try and catch
  7. Memory: pointers, spans, new and free, allocators
  8. Modules and packages: files, imports and dependencies
  9. Calling C: using C functions and C types
  10. Where next

The Tour assumes you have programmed before, most likely in Python, and compares Base to languages you may know where that helps. No knowledge of C is required, though it helps in Chapters 7 and 9.