Project-specific languages for a correct, fast Tempo node
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
// how to help
// readme
tempolang
tempolang is a set of small languages, and their compiler, for building a Tempo node in which Tempoβs invariants are compiler checks. The compiler is written in tempolang itself. Every program is checked first, then compiled to native x86-64 code. The interpreter for the same source is the executable spec, and native code is tested against it.
flowchart LR
src["tl-ledger / tl0 source"] --> check["checker + prover<br/>overflow, invariants, units,<br/>sessions, @total"]
check --> interp["interpreter<br/>(executable spec)"]
check --> gen["x86-64 code generator"] --> elf["native ELF"]
interp <-->|"same results<br/>DST from a seed, fuzzing"| elf
elf <-->|"differential oracle"| rust["Tempo's Rust precompiles"]