cjc-runtime 0.1.0

Runtime library: values, builtins, tensors, COW buffers
Documentation

CJC Runtime System

Provides the core runtime infrastructure for the CJC programming language:

  • Buffer<T>: Deterministic memory allocation with COW (Copy-On-Write) semantics
  • Tensor: N-dimensional tensor with element-wise ops, matmul, and stable reductions
  • ObjectSlab / GcRef: Deterministic RC-backed object slab (replaces mark-sweep GC)
  • FrameArena / ArenaStore: Bump-arena per function frame for non-escaping values
  • Value: Tagged union for the CJC interpreter
  • accumulator: BinnedAccumulator for order-invariant deterministic summation
  • dispatch: Hybrid summation strategy dispatch (Kahan vs Binned)