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.

ModuleDescription
mathTrigonometry, powers, logarithms, rounding, constants (PI, E, TAU)
stringSplit, join, contains, replace, trim, pad, case conversion
randomRandom generation: rand, randn, randint, choice, shuffle, sample + seeded variants srand, srandn, srandint
arrayDiff, cumsum, argmin/argmax, unique, meshgrid, reshape, flatten
fileRead and write text files with format and encoding options
serverHTTP server (native builds only)
timeClocks (clock, now), sleep, date extraction (year, month, etc.)
sysexit(code), env_get(name)
httprequest(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.

SlabDescription
statsStatistics (mean, median, variance, std, correlation)
complexComplex number arithmetic and functions
linalgLinear algebra (det, inv, solve, qr, lu, eigvals)
interpolate1D/2D interpolation and lookup tables
nonlinearNonlinear functions (saturation, dead zone, relay, friction)
signalSignal processing (filters, windows, convolution)
signal/eventsEvent detection (zero crossing, edge detection, peak finding)
vecVector math (vec2 and vec3 submodules)
displayVisualization system (canvas2d, canvas3d, graph2d, graph3d, panel, show, vary, reveal)
plotPlot constructors (line, scatter, bar, surface, heatmap)
draw2d2D shape primitives (circle, rect, polygon, path, transforms)
draw3d3D shape primitives (box, sphere, cylinder, mesh, transforms)
dynamicsODE solvers, polynomials, FFT, control systems (7 submodules)
formatData serialization (format/json, format/csv)
serverHTTP server (native builds only)
testTesting framework
clayCAD solid modeling