Skip to content

v0.4.0

Choose a tag to compare

@tymon5368 tymon5368 released this 03 Nov 09:51
· 13 commits to main since this release
3e934d3

Rul (.rl) v0.4.0 Highlights

  1. Expanded 29-Opcode Periodic Table (src/bytecode.rs, src/verifier.rs, src/transpiler.rs):
    • Added 9 mathematical, transcendental, logical-mask, and reduction opcodes (Abs, Sqrt, Floor, Ceil, Ln, Exp, MaskAnd, MaskOr, ReduceMin) with full $O(N)$ static verification and lossless .rls $\leftrightarrow$ .rl round-trip assembly.
  2. Multi-Reduction + Post-Reduction Scalar DAGs in Tier 2 & Standalone ELF64 AOT (src/engine.rs, src/aot.rs):
    • Single-pass 4-phase $O(N)$ node classification (Const, Column, Reduce, PostReduceScalar).
    • Tier 2 L1-Tile Engine evaluates $K \ge 1$ reductions (ReduceSum, ReduceMax, ReduceMin) simultaneously in 1,024-element (8 KB) L1-cache tiles (0 bytes of intermediate column allocation) across both single-core and MultiCore execution, followed by scalar epilogue evaluation (e.g., L2-normalized Cosine Similarity $\frac{\sum q_i d_i}{\sqrt{\sum q_i^2}\sqrt{\sum d_i^2}}$).
    • Standalone x86_64 AVX2 (YMM) + SSE2 (XMM) + hardware x87 (fyl2x, f2xm1, fscale) ELF64 AOT compiler allocates per-reduction 64-byte stack accumulator blocks and emits post-loop scalar epilogues (628–1037 bytes total binary size), while failing closed (Err(AotError::UnsupportedGraph)) on multi-pass column dependencies.
  3. Differential Equivalence Enforcement in rul run (src/bin/rul.rs):
    • rul run automatically verifies Tier 0 Oracle == Tier 2 Fused == Standalone ELF64 AOT (NaN == NaN, matching ±Inf sign, < 1e-9 relative/absolute tolerance).
  4. Open-Source Community Standards: