Standard Library
| Module |
Description |
| fs |
File I/O: open_file, close, read_all, exists, write_all |
| os |
Process execution: run |
| io |
Output: println |
| math |
Math: abs, sqrt, fmin, fmax |
| str |
String helpers: trim, concat |
| vec |
Dynamic vectors |
| map |
Map/dict |
| fmt |
String formatting |
| time |
Time: now |
| rand |
Random: next, seed |
| arena |
Allocator: alloc, dealloc |
| simd |
SIMD: loadu_ps, storeu_ps, add_ps, mul_ps |
| path |
Path: join |
| hash |
Hashing: fnv1a, djb2 |
| mem |
Memory: copy, set, compare |
| term |
Terminal: colors, cursor |
| sys |
Platform: is_windows, is_unix |
| gui |
GUI via Raylib: window, drawing, text |
Usage
bring "std.fs";
bring "std.math";
craft main() -> void {
make f = fs.open_file("x.txt", "r");
make x: f64 = math.sqrt(16.0);
send;
}