Expand description
Layer 0: Runtime Primitives
Registers Rust-backed functions into the alc.* Lua namespace.
These provide capabilities that cannot be expressed in Pure Lua:
I/O (state), serialization (json), host communication (llm),
and text processing (chunk).
All functions registered here are available in every Lua session
without explicit require().
Structs§
- Bridge
Config - All handles needed by Layer 0 runtime primitives.
Constants§
- PRELUDE
- Layer 1 prelude (also used by fork to setup child VMs).
Functions§
- install_
for_ pkg_ test - Install the production
alc.*primitive surface plus the mock layer onluafor use by thealc_pkg_testsandbox. - register
- Register all Layer 0 runtime primitives onto the given table.
- register_
env - Register
alc.envon the givenalctable and store the snapshot as side-band app-data onluaso fork children can inherit it vialua.app_data_ref::<Arc<HashMap<String,String>>>().