Repository navigation
Soma 2.8.1 — runtime and verifier correctness
Soma 2.8.1 fixes incorrect results, swallowed errors and unsound cost bounds in the interpreter, verifier and native backend. The website and embedded agent documentation now describe the released behavior.
- Integer
whileloops preserve outer operands and execution order through BigInt promotion, and propagate errors. - Int/Float comparisons, structural equality, sorting and deduplication remain exact beyond 2^53. Integer ratios round once; variance retains differences between nearby large values.
- Cost proofs reject overflowing bounds and distinguish user-defined
rangehandlers. Between-slot invariants also hold on deletes, and the checker reports runtime guarantees accurately. - Collection arguments, Unicode code points, bit counts, dates and mock clocks are validated. HTTP query decoding preserves encoded plus signs and bare keys.
- Native arithmetic handles wide random intervals, large shifts and bit searches. Generated temporaries avoid user-variable collisions.
- Record/replay v2 distinguishes raised errors from returned maps and records native failures after the transaction. Existing v1 logs remain readable.
soma fix --jsonreports syntax repairs; package listing and the portable CLI test runner are corrected. CI runs compiler/runtime regressions and published examples.
Compatibility: --jit is now a deprecated no-op, matching its warning; use [native] for numeric compilation. Invalid inputs previously coerced or ignored may now raise an explicit error. New record logs use v2.
Validation: 414 Rust tests, 118 CLI fixtures, 321 published corpus programs, and 3,392 additional differential assertions against Python integers and exact fractions passed locally. Each platform binary is smoke-tested by the release workflow.
Download the binary matching your platform and verify it against SHA256SUMS, or upgrade using:
curl -fsSL https://soma-lang.dev/install.sh | sh
soma --version