Skip to main content

Crate beamr

Crate beamr 

Source
Expand description

Beamr — a Rust runtime with the BEAM’s execution model.

Loads .beam bytecode produced by the Gleam toolchain (via erlc) and executes it with preemptive scheduling, per-process isolation, supervision primitives, and a native function interface.

Modules§

atom
error
Crate-wide error types for beamr.
gc
Garbage collection — each process cleans its own room.
hook
Reduction-boundary hook — the bit that’s ours.
interpreter
The interpreter — the execution loop and heartbeat of fairness.
io
Configurable output sinks used by I/O BIF stubs.
loader
.beam file loader — the front door.
mailbox
Messages and mailboxes — the only way processes touch.
module
Module registry — dual-version.
native
Native function interface — how Gleam reaches into Rust.
process
Process — the unit of life and isolation.
scheduler
Scheduler — fairness across every core.
supervision
Supervision — links, monitors, and letting it crash.
term
Term representation — what all data is made of.
timer
Timer wheel for one-shot timeouts.