Runtime (Tlön)
Tlön is where Aleph programs live: the interpreter and the C runtime that native builds link against. Both behave the same, byte for byte.
Values
Section titled “Values”Values are immutable. Lists have value semantics; an implementation may share structure.
There is no undefined behaviour: every operation either succeeds or traps. A trap prints one JSON diagnostic on stderr and exits with code 70.
| Code | Meaning |
|---|---|
R001 |
integer overflow |
R002 |
division or modulo by zero |
R003 |
capability violation at run time |
R004 |
recursion deeper than 10,000 calls, or evaluation too deep |
R005 |
allocation too large (for example range over 10,000,000 elements) |
f64 follows IEEE 754.
Loops and recursion
Section titled “Loops and recursion”v0.1 has no loop statement. Use recursion, or range with map, filter and fold. General loops arrive in v0.2.
Memory
Section titled “Memory”There is no garbage collector. In v0.1 a program uses a single arena that is freed at exit; v0.2 adds scoped regions per call.