Value Primitives
Vectors, matrices, transforms, and colors are flat values in contiguous memory, without pointer indirection or reference overhead.
Compile gameplay logic directly to WebAssembly components. Powered by a native Rust host (winit + wgpu + wasmtime) with predictable memory and fast arena resets.
SYSTEM DESIGN
Groot organizes memory into three distinct tiers to keep frame work predictable, from flat values to persistent generational pools.
Vectors, matrices, transforms, and colors are flat values in contiguous memory, without pointer indirection or reference overhead.
Frame scratch buffers live in scoped blocks (arena { ... }) and are reclaimed together when the scope ends.
Dynamic entities live in Pool[Entity]. Generational handles prevent stale references as slots are recycled.
SOURCE WORKBENCH
package main
import "github.com/JohnEsleyer/groot/app" as app
import "github.com/JohnEsleyer/groot/color" as color
import "github.com/JohnEsleyer/groot/input" as input
fn main() {
let mut game = app::app_new_from_manifest()
game.start()
while game.is_running {
game.begin_frame()
if game.input.is_key_pressed(input::key_escape()) {
game.stop()
}
arena {
game.draw_rect(120.0, 80.0, 32.0, 32.0, color::green())
game.present()
}
}
}DIAGNOSTICS & TELEMETRY
Inspect frame latencies, ABI overhead, GPU uploads, and pool capacity in your terminal with local telemetry.