18. Standard library
Jik provides a small but useful standard library. The modules below cover common tasks such as strings, input/output, math, randomness, and testing.
- jik::std - basic utility functions
- jik::char - character-related helpers
- jik::bytes - binary-safe byte sequences and buffers
- jik::string - string operations
- jik::strbuf - mutable string buffer support
- jik::fs - filesystem operations
- jik::io - file and stream I/O
- jik::region - region allocator diagnostics
- jik::rand - pseudo-random number generation
- jik::sys - system-level utilities
- jik::process - shell-free process execution
- jik::path - lexical path utilities
- jik::math - mathematical functions and constants
- jik::testing - support for writing tests
These modules are imported in the same way as other Jik modules, but using paths under jik/.... For example:
use "jik/math"
use "jik/testing" as test
---