Core
Builtins (auto-imported)
These are available without any import statement.
print, len, sum, range, error, num, int, str, bool, type, abs, min, max, floor, ceil, round, sign, trunc, find, push, pop, set, concat, sort, reverse, slice, keys, values, dict, merge, get
Standard Library
Core modules that ship with the Stone compiler.
| Module | Description |
|---|---|
| math | Trigonometry, powers, logarithms, rounding, constants (PI, E, TAU) |
| string | Split, join, contains, replace, trim, pad, case conversion |
| random | Random generation: rand, randn, randint, choice, shuffle, sample + seeded variants srand, srandn, srandint |
| array | Diff, cumsum, argmin/argmax, unique, meshgrid, reshape, flatten |
| file | Read and write text files with format and encoding options |
| server | HTTP server (native builds only) |
| time | Clocks (clock, now), sleep, date extraction (year, month, etc.) |
| sys | exit(code), env_get(name) |
| http | request(url) or request({url, method?, headers?, body?}) |
Bundled Slabs
These are pre-seeded from stoneslabs.io and available immediately without stone install. Each slab has a GUIDE.md.
| Slab | Description |
|---|---|
stats | Statistics (mean, median, variance, std, correlation) |
complex | Complex number arithmetic and functions |
linalg | Linear algebra (det, inv, solve, qr, lu, eigvals) |
interpolate | 1D/2D interpolation and lookup tables |
nonlinear | Nonlinear functions (saturation, dead zone, relay, friction) |
signal | Signal processing (filters, windows, convolution) |
signal/events | Event detection (zero crossing, edge detection, peak finding) |
vec | Vector math (vec2 and vec3 submodules) |
display | Visualization system (canvas2d, canvas3d, graph2d, graph3d, panel, show, vary, reveal) |
plot | Plot constructors (line, scatter, bar, surface, heatmap) |
draw2d | 2D shape primitives (circle, rect, polygon, path, transforms) |
draw3d | 3D shape primitives (box, sphere, cylinder, mesh, transforms) |
dynamics | ODE solvers, polynomials, FFT, control systems (7 submodules) |
format | Data serialization (format/json, format/csv) |
server | HTTP server (native builds only) |
test | Testing framework |
clay | CAD solid modeling |