Skip to content

Reference

This section is the reference material for Extempore’s two languages—Scheme and xtlang—and for the systems that sit between them.

If you’re new, start with the quickstart and the philosophy pages. Once the quickstart is working, the tutorial walks through xtlang’s core ideas with runnable examples. Come back to the rest of this section when you want to look up how a particular piece works.

  • Tutorial — a hands-on walk through bind-func, types, closures, and memory zones; every snippet is verified to run.
  • Types — the xtlang type system: primitive types, tuples, arrays, pointers, named types, and how they compose.
  • Type inferencing — how xtlang infers types when you leave them off, and when you need to annotate.
  • Memory management — stack, zone and heap allocation, and when to reach for each.
  • Error messages — common compiler and JIT error messages, what they mean, and how to fix them.
  • Concurrency — threads, the audio thread, and safely sharing state between them.
  • Docstrings — attaching documentation to xtlang definitions.
  • Testing — the xtmtest harness used across the standard library and examples.