Output and Diagnostics

pub fn assert(test: boolean, message: text, file: text, line: integer)

Panics with message if test is false. Use to verify invariants during development. In production mode (--production), logs an error instead of aborting. The file and line are injected by the compiler; do not pass them manually. Safe to call from `par` workers: failures write to the log/stderr sink, which the host serialises across threads.

pub fn panic(message: text, file: text, line: integer)

Immediately terminates execution with message. Use for unrecoverable error states. In production mode (--production), logs a fatal entry instead of aborting. The file and line are injected by the compiler; do not pass them manually.

pub fn log_info(message: text, file: text, line: integer)

Write a structured log record at the chosen severity. The file and line are injected by the compiler; do not pass them manually. Safe to call from `par` workers: the host serialises log writes across threads.

pub fn log_warn(message: text, file: text, line: integer)

Like log_info, at warning severity.

pub fn log_error(message: text, file: text, line: integer)

Like log_info, at error severity.

pub fn log_fatal(message: text, file: text, line: integer)

Like log_info, at fatal severity.

pub fn print(v1: text)

Writes v to standard output without a newline. Use for progress output and building up a line incrementally.

pub fn println(v1: text)
pub fn eprint(v1: text)

Writes v to standard ERROR without a newline. Companion to print() — use to separate human-readable status / progress / summary lines from machine-readable stdout (JSON, structured data piped to downstream consumers).

pub fn eprintln(v1: text)

Writes v followed by a newline to standard ERROR.

pub fn len(both: spatial) -> integer

Number of elements in a spatial (radix / Morton tree) collection.

pub fn len(both: trie) -> integer