Deterministic workflow editor in Rune
Architecture

One HIR. Many frontends. Many backends.

Frontend – Arth, TypeScript, or your language
Parsed into AST, then lowered to HIR
Name resolution, type checking, ownership analysis
Lowered to SSA-based IR with CFG
Optimized, then emitted to VM / LLVM / Cranelift JIT

The HIR is the universal convergence point. Any language that lowers to HIR gets type checking, optimization, and all backends for free.

Frontends

Write in what you know.

Arth Language
  • Java-like syntax, Rust-grade memory safety
  • Ownership + borrowing with inferred lifetimes
  • Modules for behavior, not classes
  • Typed exceptions, no null
  • Providers for shared state
  • Async/await with controlled scheduling
TypeScript
  • Familiar syntax for web developers
  • Compiles through the same HIR pipeline
  • Gets the same backend targets
  • Same type checking and optimization passes

Both ship out of the box. More frontends can be added by implementing the AST → HIR lowering.

Backends

Compile to anything.

VM

Compiles to .abc bytecode for the Arth VM runtime. Portable, inspectable, and ideal for sandboxed execution where determinism matters most.

LLVM

Emits LLVM IR for ahead-of-time native compilation. Full optimization pipeline. Targets any architecture LLVM supports.

Cranelift JIT

Just-in-time compilation via Cranelift. Fast startup, native speed at runtime. Ideal for interactive and REPL-style workflows.

Choose the backend that fits your deployment: VM for safety, LLVM for performance, Cranelift for speed of iteration.

Execution Modes

Sandboxed or full access. Your choice.

Sandboxed Mode
  • Runs inside the Arth VM
  • No direct system calls
  • Memory-safe by construction
  • Deterministic execution guarantees
  • Ideal for untrusted code and agents
Full Systems Access
  • Native compilation via LLVM or Cranelift
  • Direct hardware and OS access
  • FFI with extern functions
  • Full performance, no VM overhead
  • For trusted systems-level code

The same source compiles to either mode. One language, two trust levels.

Language

Designed for correctness.

Ownership + borrowing
Inferred lifetimes
No garbage collection
No null – Optional<T>
Typed exceptions
Modules over classes
Providers for shared state
Async/await
Actor/channel concurrency

Java-like syntax. Rust-grade memory safety. No runtime surprises.

Use Cases

When determinism is non-negotiable.

Robotics interfaces
Device control panels
Industrial dashboards
Simulation systems
AI-native workflows
Regulated environments
Rune Integration

Arth powers Rune's deterministic mode.

When Arth targets Rune, it compiles directly to IR – bypassing browser semantics entirely. No DOM, no arbitrary layout. The result is deterministic, replayable, auditable UI execution.

Arth is optional. Web compatibility mode remains available for existing apps. Arth is chosen when deterministic control outweighs ecosystem breadth.

Long-Term Vision

Where Arth leads.

LLM → IR generation
Deterministic UI workflows
Formal verification potential
Agent-native by construction
New language frontends
Open Source

Arth is open source.

The Arth compiler, language specification, and toolchain are open source. Build on it, extend it, plug in new frontends. The language substrate belongs to the community.

One substrate. Any language. Any target.