Skip to main content

Crate cljrs_runtime

Crate cljrs_runtime 

Source
Expand description

The clojurust runtime: environment, builtins, tree walker, and tiered evaluation.

This package is the merge of four formerly separate packages. Each is now a module:

ModuleFormer packageResponsibility
[env]cljrs-envNamespaces, vars, dynamic bindings, GC roots, loader
builtinscljrs-builtinsNative clojure.core functions and bootstrap source
interpcljrs-interpTree-walking interpreter, special forms, macros
tieredcljrs-evalIR lowering, tier-1 IR interpreter, JIT dispatch state

The four former packages no longer exist — Stage 6 of the crate consolidation deleted their re-export shims. These module paths are the only paths.

Construction goes through one path — Runtime::builder — and the execution mode it selects (ExecutionMode) is what decides whether a call tree-walks, runs lowered IR, or jumps to JIT-compiled native code.

Re-exports§

pub use mode::ExecutionMode;
pub use mode::TierState;
pub use runtime::BuildError;
pub use runtime::Runtime;
pub use runtime::RuntimeBuilder;

Modules§

builtins
env
interp
Tree-walking interpreter: special forms, macro expansion, destructuring, and function application.
logging
Diagnostic logging configuration (native only; see the module docs). Diagnostic logging configuration: tracing targets and filters.
mode
Execution mode and tier state.
runtime
The one construction path for a clojurust runtime.
tiered
IR-accelerated evaluation for clojurust.