System Telemetry & Language Roadmap
Empirical, reproducible performance metrics collected by the built-in shae bench suite and structured development progress across all 31 evolution
chunks.
The shae bench Telemetry Engine
Shae includes a built-in benchmark runner in the core binary (Chunk 31). It automatically
discovers benchmark scripts under benchmarks/*.shae, warms up execution
caches, measures wall-clock duration with nanosecond precision, and renders structured
ASCII reports.
shae bench
Run all discovered suites under benchmarks/*.shae shae bench -f <pattern> Filter benchmarks by workload name or file pattern shae bench --vm Execute using Stack Bytecode VM (default mode) shae bench --ast Execute using recursive AST Tree-Walker evaluator shae bench -i <N> Override iteration counts for extended stress benchmarking Workload Performance Tables
Direct results recorded on release binaries across arithmetic computation, zero-copy memory buffers, actor message dispatch, and collection manipulation.
benchmarks/fibonacci.shae
Stressing recursive call stack overhead, tight iterative loops with modulo arithmetic, and sequential aggregation.
| Benchmark Workload | Runtime Engine | Iterations | Total Time | Avg Latency | Throughput |
|---|---|---|---|---|---|
| Fibonacci Recursive (n=20) | Bytecode VM | 100 | 18.2 ms | 182.0 µs | 5,494 ops/s |
| Fibonacci Iterative (n=1000) | Bytecode VM | 1,000 | 12.4 ms | 12.4 µs | 80,645 ops/s |
| Fibonacci Sequence Sum (count=100) | Bytecode VM | 500 | 8.9 ms | 17.8 µs | 56,179 ops/s |
benchmarks/buffer_throughput.shae
High-throughput binary memory allocation, zero-copy slicing sharing Arc<RwLock<Vec<u8>>>, endian I/O, and struct layout serialization.
| Benchmark Workload | Runtime Engine | Iterations | Total Time | Avg Latency | Throughput |
|---|---|---|---|---|---|
| ByteBuffer Alloc & Indexing (4KB) | Bytecode VM | 500 | 4.1 ms | 8.2 µs | 121,951 ops/s |
| Zero-Copy Slicing & Mutation (10 Slices) | Bytecode VM | 500 | 3.6 ms | 7.2 µs | 138,888 ops/s |
| Endian Binary I/O (u32/u64/f64 LE/BE) | Bytecode VM | 200 | 2.8 ms | 14.0 µs | 71,428 ops/s |
| Struct Packing & Unpack (<I2h4s & >2d4B) | Bytecode VM | 500 | 5.2 ms | 10.4 µs | 96,153 ops/s |
benchmarks/actor_throughput.shae
Stressing lightweight actor mailboxes, request-reply patterns, batch fire-and-forget message processing, and live handler hot-swapping.
| Benchmark Workload | Runtime Engine | Iterations | Total Time | Avg Latency | Throughput |
|---|---|---|---|---|---|
| Actor Request-Reply (ask) Throughput | Multi-thread | 150 | 14.5 ms | 96.6 µs | 10,344 ops/s |
| Actor Fire-and-Forget (send) Batching | Multi-thread | 100 | 4.8 ms | 48.0 µs | 20,833 ops/s |
| Actor Hot-Code Reloading Throughput | Multi-thread | 100 | 6.1 ms | 61.0 µs | 16,393 ops/s |
benchmarks/collections_bench.shae
Dynamic array growth, Hash-DoS resistant map insertions, key lookups, functional filter/map closures, and in-place sorting.
| Benchmark Workload | Runtime Engine | Iterations | Total Time | Avg Latency | Throughput |
|---|---|---|---|---|---|
| Array Insertion & Index (1000 items) | Bytecode VM | 50 | 5.5 ms | 110.0 µs | 9,090 ops/s |
| Map Insertions & Lookups (500 items) | Bytecode VM | 50 | 7.9 ms | 158.0 µs | 6,329 ops/s |
| Array Functional Filter & Map (500 items) | Bytecode VM | 30 | 3.8 ms | 126.6 µs | 7,898 ops/s |
| Array Sorting (500 descending items) | Bytecode VM | 50 | 3.4 ms | 68.0 µs | 14,705 ops/s |
Process Latency & Memory Footprint
Shae compiles to a single, self-contained native executable with zero external runtime dependencies. Here is how it compares against industry scripting environments.
CLI Invocation Time
Time from terminal command execution to printed output.
Resident Set Size (RSS)
Physical memory consumed by an idle process before user code allocations.
Language Evolution Roadmap
Every capability in Shae was built incrementally across 34 focused architectural evolution chunks. All 34 milestones are merged, verified by 320+ tests, and active in release v0.7.0.
Phase 1: Language Foundation & VM Architecture
Value::Int/Float, radix literals (0x, 0b, 0o), bitwise operators, array/struct destructuring, pattern guards.
shae fmt 4-space canonical indentation, static linter with unused variable tracking and shadowing checks.
Stack-based VM, compile-time local slot resolution (OpGetLocal), low-overhead loops and jumps.
Virtual stack CallFrame architecture, upvalue capturing for lexical closures, array/map opcodes.
Mark-and-sweep GC engine with stack root tracing, eliminating heavy reference-counting overhead.
Relative file imports, standard namespaces: std:fs, std:path, std:sys, std:time.
Phase 2: Concurrency, Tooling & Serialization
Message-passing channels, non-blocking HTTP server, built-in TLS server via Rustls.
std:crypto (SHA-256, HMAC), std:regex (PCRE matching), std:codec (Base64, URL encoding).
shae pkg init/add/install, shae.toml project manifests, and shae.lock deterministic resolution.
Language Server Protocol daemon (shae lsp) with live diagnostics and single-binary shae bundle.
shae compile to .shaec format with magic header SHAE, constant pools, and shae disasm.
Persistent VM session, multiline balance checking, :disasm, :globals, and :engine toggling.
AOT bytecode bundling into standalone executables with --strip source protection.
Lightweight actors on OS threads, FIFO mailboxes, request-reply ask, and OneForOne supervision.
Phase 3: Pure-Shae Self-Hosting & Clustering
Self-parsing lexer and Pratt parser written entirely in pure Shae (lib/compiler/).
Pure-Shae AST-to-bytecode code generator and bytecode disassembler (codegen.shae).
Direct binary linker generating standalone 64-bit ELF and Windows PE executables (shae link).
Pure-Shae WebAssembly module generator (.wasm) and built-in zero-dependency WasmRunner.
std:actor:cluster TCP networking, remote actor handles (actor@node), round-robin worker pools.
Unified compiler driver (main.shae) coordinating parsing, bytecode, linking, and WASM.
Rustls 0.23 encrypted wire transport, root CA verification, and mTLS client certificates.
std:async coroutines, thread-safe Task handles, async.spawn, async.all, async.race, and async.timeout.
Phase 4: Ecosystem, Crypto, LLVM & High Performance
shae doc HTML static site generator, Markdown generator, and JSON schema model export.
.shaepkg gzip tarball archiving, SHA-256 verification, and shae pkg publish pipeline.
Pure-Shae test runner (shae test) with assertion framework and live doc server (shae doc --serve).
AES-256-GCM, ChaCha20-Poly1305, HKDF, PBKDF2, and constant-time timing_safe_equal.
Verified two-stage bootstrap pipeline with bit-for-bit identical bytecode emission.
Direct LLVM 18 SSA IR emission (shae llvm), entry block allocas, and Clang -O2 native compilation.
std:buffer ByteBuffer, zero-copy Arc slicing, endian reads/writes, and struct pack/unpack.
Zero-downtime actor handler hot-swapping, state schema migrations, and cluster node reloading.
shae bench CLI suite runner, telemetry ASCII tables, comprehensive showcases, and language docs.
Syntax type annotations, nullable union types (int | null), and shae check static diagnostics.
Remote HTTP registry index, .shaepkg archive distribution, and SHA-256 integrity verification.
std:gui ANSI/windowing, std:audio waveform synthesis, std:ui arcade widgets, and Space Invaders 2D.
Upcoming Horizon: Distributed Consensus & Hardware Targets
Leader election, distributed log replication, and cluster membership state transitions.
Direct hardware compute pipelines for GPU-accelerated array math and tensor processing.
Signed Windows MSI installers and pre-configured Visual Studio debugger toolchains.
Experience the Speed of Shae
Install the standalone v0.7.0 toolchain or download the 42-page architectural guide.