Docs
Standard Library Reference
← Language Guide ·
Guide Chapters ·
Detailed Reference
This is the complete Eta standard library. Every module listed here ships with
the distribution and is importable with (import <name>).
Foundations
| Module | Import | Description |
|---|
| std.core | (import std.core) | Core combinators, list accessors, and a platform predicate. |
| std.math | (import std.math) | Mathematical constants and common numeric helpers. |
| std.collections | (import std.collections) | Higher-order operations on lists and vectors. |
| std.io | (import std.io) | I/O conveniences and dynamic port redirection. |
| std.atom | (import std.atom) | Atomic mutable references with compare-and-set semantics. |
| Module | Import | Description |
|---|
| std.regex | (import std.regex) | Regular-expression helpers and match-payload accessors. |
| std.csv | (import std.csv) | CSV reader and writer. |
| std.json | (import std.json) | JSON read/write. |
Collections & Data Structures
| Module | Import | Description |
|---|
| std.hashmap | (import std.hashmap) | Helpers built over the runtime hash-map primitives. |
| std.hashset | (import std.hashset) | Helpers built over the runtime hash-set primitives. |
| std.fact_table | (import std.fact_table) | Columnar fact tables with indexes, grouping, and aggregation. |
Logic & Constraint Programming
| Module | Import | Description |
|---|
| std.logic | (import std.logic) | Prolog/miniKanren-style goal combinators and solvers. |
| std.freeze | (import std.freeze) | Attributed-variable combinators (freeze, dif). |
| std.clp | (import std.clp) | CLP over integers and finite domains with labelling. |
| std.clpr | (import std.clpr) | CLP over real intervals with linear and quadratic optimisation. |
| std.clpb | (import std.clpb) | CLP(B) Boolean propagation solver. |
| std.db | (import std.db) | Datalog/Prolog-style relations layered on fact tables. |
Numerics & Machine Learning
| Module | Import | Description |
|---|
| std.stats | (import std.stats) | Descriptive statistics, t-tests, and OLS regression. |
| std.aad | (import std.aad) | Tape-based reverse-mode automatic differentiation. |
| std.torch | (import std.torch) | libtorch tensors, modules, optimizers, and device management. (requires -DETA_BUILD_TORCH=ON) |
Causal Inference
OS, Filesystem & Processes
| Module | Import | Description |
|---|
| std.os | (import std.os) | Environment variables, working directory. |
| std.fs | (import std.fs) | Filesystem and path primitives. |
| std.process | (import std.process) | Subprocess spawn, wait, and I/O. |
| std.args | (import std.args) | Argparse-style command-line parser. |
Concurrency & Actors
| Module | Import | Description |
|---|
| std.net | (import std.net) | High-level networking patterns over NNG. (requires -DETA_BUILD_NNG=ON) |
| std.supervisor | (import std.supervisor) | Erlang-inspired actor supervision strategies. (requires -DETA_BUILD_NNG=ON) |
| Module | Import | Description |
|---|
| std.log | (import std.log) | Structured logger and sink construction. |
| std.test | (import std.test) | Unit-testing framework with assertions and TAP/JUnit reporters. |
| std.prof | (import std.prof) | Runtime profiling helpers. |
| std.time | (import std.time) | Clocks, sleep, and ISO-8601 formatting. |
| std.jupyter | (import std.jupyter) | Notebook cell rendering helpers. (requires eta_jupyter) |
See also