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:
| Module | Former package | Responsibility |
|---|---|---|
[env] | cljrs-env | Namespaces, vars, dynamic bindings, GC roots, loader |
builtins | cljrs-builtins | Native clojure.core functions and bootstrap source |
interp | cljrs-interp | Tree-walking interpreter, special forms, macros |
tiered | cljrs-eval | IR lowering, tier-1 IR interpreter, JIT dispatch state |
The four former packages remain as thin re-export shims for one migration
stage; new code should depend on cljrs-runtime and use these module 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;