Skip to content

Public API

The runtime library is not completely internal, also provides a public API. This API is mostly safe, and they may influence common runtime behavior or provide some additional opportunities.

Globals

jule
const BigEndian: bool

Whether the running program's architecture is big-endian.

jule
const LittleEndian: bool

Whether the running program's architecture is little-endian.

jule
const OS: str

The running program's operating system target: one of darwin, linux and so on.
To view possible combinations of OS, run julec tool distos

jule
const Arch: str

The running program's architecture target: one of i386, amd64 and so on.
To view possible combinations of OS, run julec tool distarch

jule
const RCDelta: untyped integer

The reference counting data delta value that must occur per each reference counting operation.

Functions

jule
fn NumCPU(): int

Returns the number of CPUs. Returns zero until data initialized by the runtime.