i8 |
Signed 8-bit, -128 through 127. |
Zero scalar, packed elements and checked numeric conversion. |
i16 |
Signed 16-bit, -32,768 through 32,767. |
Zero scalar, packed elements and checked numeric conversion. |
i32 |
Signed 32-bit, -2,147,483,648 through 2,147,483,647. |
Zero scalar, packed elements and checked numeric conversion. |
i64 |
Signed 64-bit, -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807. Default integer literal representation. |
Zero scalar, packed elements and checked numeric conversion. |
u8 |
Unsigned 8-bit, 0 through 255. |
Zero scalar, packed elements and checked numeric conversion. |
u16 |
Unsigned 16-bit, 0 through 65,535. |
Zero scalar, packed elements and checked numeric conversion. |
u32 |
Unsigned 32-bit, 0 through 4,294,967,295. |
Zero scalar, packed elements and checked numeric conversion. |
u64 |
Unsigned 64-bit, 0 through 18,446,744,073,709,551,615. |
Zero scalar, packed elements and checked numeric conversion. Use decimal text for values too large for an i64 literal. |
f32 |
IEEE binary32, roughly ±3.4028235×10^38 largest finite magnitude and 24 bits of significand precision. |
Zero scalar, packed elements and numeric conversion rounded to float. |
f64 |
IEEE binary64, roughly ±1.7976931348623157×10^308 largest finite magnitude and 53 bits of significand precision. Default floating literal representation. |
Zero scalar, packed elements and numeric conversion. |
bool |
true or false, stored as one byte in packed layouts. |
create yields false. convert uses truthiness. |
char |
One Unicode scalar, U+0000 to U+10FFFF excluding surrogates. 32-bit in packed storage. |
create yields U+0000. Convert from a signed scalar number or one-scalar string/char. |
string |
Immutable UTF-8 string. |
Literal, text operations or convert(string, value) using display representation. |
array |
Mutable dense sequence. |
Literal or create(array). Identity conversion. |
dict |
Mutable ordered dictionary. |
Literal or create(dict). Identity conversion. |
table |
Mutable hybrid of dense elements and associative entries. |
Literal or create(table). Identity conversion. |
range |
Immutable signed half-open endpoint pair. |
Use start..end. Identity conversion. |
function |
Script closure, bound method or native callable. |
func and runtime/module registration. Identity conversion. |
packed |
Packed record, sequence or view. |
Create with an actual element or layout descriptor. convert(packed, value) checks identity type. |
layout |
Frozen reusable record or inline array descriptor. |
binary.layout or binary.fixed. Identity conversion. |
module |
Read-only namespace, usually from a file or built-in import. |
use. Identity conversion. |
ptr |
Opaque native pointer wrapper. |
FFI functions. Identity conversion for a pointer. Native null pointer is Atom null. |
cstring |
Native C string slot in an FFI signature. |
Atom text/null marshals to it at the boundary. No standalone value of descriptor cstring. |
void |
Native FFI return with no data. |
Returns Atom null to the caller. |
library |
Shared library or native extension handle. |
ffi.load or ffi.extension. Identity conversion. |
file |
Open or closed filesystem handle. |
fs.open. Identity conversion. |
coroutine |
Cooperative execution state in the current VM. |
create(coroutine, entry, ...args). Identity conversion. |
task |
Worker, timer or background file operation handle. |
task.spawn, task.after, task.read or task.write. Identity conversion. |
channel |
Shared, bounded FIFO message queue. |
task.channel. Identity conversion. |
socket |
TCP or UDP handle. |
net.connect, net.listen, net.accept, net.bind or http.listen. Identity conversion. |
process |
Spawned subprocess handle. |
os.spawn. Identity conversion. |
database |
SQLite connection. |
sqlite.open. Identity conversion. |
| Null descriptor |
Describes the literal null. |
Obtain with type(null). null itself is the value. |
| Type descriptor |
Describes built-in descriptor values. |
Obtain with type(i64). type itself is the core inspection function. |