Built-in Types

These guides cover common values and runtime handles. The type-system reference also covers Result, lists, maps, functions, records and unions. Fibers and GPU buffers have separate runtime contracts.

Any

An erased value. Match its structure to access fields; primitive runtime type tests are not supported.

Bool

A boolean type that can be either true or false. Used for logical operations and conditionals.

Float

A 64-bit IEEE-754 floating-point number. Arithmetic can produce infinity, NaN, subnormal values and signed zero. Division and remainder by zero use an explicit arithmetic handler. See floating-point results.

HttpResponse

The record returned by a native HTTP server handler. The runtime sends its status, raw headers and complete text body; streaming is not implemented.

Int

A 64-bit signed integer type. Can represent whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.

Process handle (int)

spawnProcess returns an integer process ID inside Result. Use it to wait for completion and release runtime resources; the callback receives output and exit events.

String

UTF-8 text with interpolation and byte-based length and slicing operations.