Standard Library Overview
Djazair includes a robust, zero-external-dependency standard library containing 20 built-in modules. Every module is written in optimized C or pure Djazair, loaded with zero overhead using the use <module> syntax.
assert
Test assertions, equality checks, truthiness, and exception testing.
bytes
Binary buffer allocation, hex conversions, slicing, and byte operations.
collections
Stack, Queue, Deque, Set, LinkedList, and PriorityQueue data structures.
datetime
High-precision timestamps, formatting, calendar math, and Date class.
dir
Directory creation, recursive glob matching (**), and traversal.
env
Access, query, and manipulate environment variables at runtime.
file
File read/write, streams, binary bytes, stat, chmod, and symlinks.
json
JSON serialization and deserialization with pretty-printing.
lang
Garbage collection control, heap memory statistics, and VM metadata.
math
Constants, trigonometry, logs, powers, rounding, gcd, lcm, factorial.
os
Platform detection, CPU count, memory, username, temp directory.
path
Cross-platform path manipulation, join, resolve, dirname, basename.
process
Process identification, exec commands, and async spawn with pipes.
random
Pseudorandom numbers, floats, integers, choice, shuffle, seed.
thread
Actor model concurrency, worker threads, message passing, pools.