Arra is a statically typed, left-to-right array-functional language built around type-directed syntactic hooks. Its implemented Essential kernel combines structural function valence, shape-visible arrays, extensible records, non-resumable effects, compile-time theories and models, and a source-defined standard library.
Essential Arra, Surface Syntax, and Core IR are normative. Overview is the short introduction.
General kind computation, solver-backed shape equations and refinements, resumable effects, recursive constrained definitions, effectful or resource-owning streams, and optimizing backends remain compatible future work rather than gaps in the Essential contract.
source modules
→ Unicode/ASCII lexer and layout normalization
→ indexed and resolved surface declarations
→ elaborated inference IR with resolved hook/model evidence
→ immutable monomorphic Typed IR
→ structural Core lowering
→ independent Core checking
→ deterministic treewalk execution
The OCaml reference implementation exercises the complete pipeline. It includes:
U8, Char, and Symbol arrays and
canonical columnar arrays of records;Name and Fields quantification, open row sums, disjointness constraints,
computed field selection, structural concatenation and removal, and
parameterized nominal records;app, unified unary/binary op, static named fun, pat,
project, assign, iter, gen, and one-step to hooks;'flatMap, and bounds-checked rank-two
selection;Option, List, Equality, ordered Map, pure lazy Seq,
text, binary, array, numeric, and whole-file IO APIs.arra run FILE [ENTRY] [-- ARG...]
arra check FILE
arra core FILE [ENTRY]
arra --diagnostic-format=text|json ...
run defaults to the answer entry. Successful checks and Core output use
standard output; diagnostics use standard error. Exit statuses 0, 1, and 2
mean success, diagnosed program failure, and invalid invocation respectively.
Prelude.arra is a forwarding facade over independently importable source
modules:
Prelude.Core — Fail, Option, List, Equality, scalar equality, and
ordinary function application;Prelude.Numeric — numeric operations and checked conversions;Prelude.Text — Char, String, Symbol, UTF-8, and scalar/byte conversion;Prelude.Array — array vocabulary, generation, traversal, Mappable,
Functor, and Frame models;Prelude.IO — arguments, standard streams, and structured whole-file reads
and writes;Prelude.Map — insertion-ordered maps constrained by Equality;Prelude.Seq — replayable pure lazy sequences and text views.The driver loads the installed graph rooted at Prelude.arra, grants primitive
access only to that graph, and implicitly opens only the facade for user code.
Set ARRA_STDLIB to override the installed standard-library directory.
Read in this order: