Releases: eriirfos-eng/ternary-intelligence-stack
v1.0.0 — Ternary Intelligence Stack: First Stable Release
Ternary Intelligence Stack v1.0.0 — First Stable Release
The first production-ready release of the Ternary Intelligence Stack. The compiler, VM, MCP server, and stdlib are now stable and suitable for industrial use.
What's in v1.0.0
Compiler & VM
- Full ternary language (
.tern) with trit types, tensors, agents, and match expressions - BET bytecode VM with register file, call stack, and tensor storage
float[N]andint[N]typed tensor arrays (PARSER-003 resolved)- Wildcard
_match arms (PARSER-MATCH-001 resolved) holdkeyword correctly tokenized (COMP-TRIT-001 resolved)- Scalar trit saturation: any positive/zero/negative int matches trit arms correctly
len(string)returns character countelse ifchains and ternary while-else-else without?marker- All
affirm/tend/hold/rejectkeywords work as expressions and return values
MCP Server (ternlang-mcp v1.0.0)
- 19 tools for ternary reasoning, evidence aggregation, MoE-13 orchestration, EU AI Act compliance
- Published to Smithery at
rfi-irfos/ternlang - Available via HTTP at
https://ternlang.com/mcp
Standard Library
- 30,000+
.ternmodules across Tier 1 (open-core) and Tier 2/3 (premium) - Showcase, tutorials, classical algorithms, ML, NLP, finance, bio, crypto, physics, and more
Architecture Limits (Known — Future Releases)
- Struct returns from functions (VM-STRUCT-001 — ABI redesign needed)
- Tensor sizes >65,535 (16-bit immediate encoding)
- Module transitive dependencies (direct imports work; transitive chains do not)
- Scientific notation float literals (
1.23e-10) - First-class functions
Install
cargo install ternlang-cliOr run via MCP:
npx @smithery/cli install rfi-irfos/ternlang --client claude🤖 Released with Claude Code
v0.3.3 — exec, check, --debug, clean output, full VS Code extension
Highlights
This release completes the CLI pipeline and ships the first fully functional VS Code extension.
CLI improvements
| Command | What's new |
|---|---|
ternlang check <file|dir> |
New — parse-only validator, walks directories, reports per-file ok/error + fn count |
ternlang exec <file.tbc> |
New — run pre-compiled bytecode; the missing piece of the build→exec pipeline |
ternlang run --debug |
New — verbose register dump with variable name labels |
ternlang run |
Improved — clean coloured result box (was: all-trit(tend) register dump) |
ternlang <file> |
New shortcut — bare file argument dispatches to run |
ternlang build |
Fixed — emits header-jump + entry_call("main") so .tbc files are self-contained executables |
The build → exec pipeline (now works end-to-end)
```sh
ternlang build examples/rocket.tern -o rocket.tbc # compile once
ternlang exec rocket.tbc # run anywhere
```
VS Code Extension v0.3.3 (Open VSX: rfi-irfos/ternlang)
The extension was previously a stub package.json with ~500 downloads and zero functionality. It's now a complete extension:
- TextMate grammar — keywords, types, trit constants (
affirm/tend/reject),@attributes, functions, operators, strings, comments - 8 snippets —
main,fn, exhaustive 3-waymatch,let,@sparseskip,consensus,invert,tensor - 5 editor commands — run, runDebug, build, check, repl (editor title bar + context menus)
- Check-on-save diagnostics — runs
ternlang checkon every.ternsave, surfaces errors inline - Settings —
ternlang.executablePath,ternlang.checkOnSave
Crates (crates.io)
All 8 crates published at v0.3.3: ternlang-core → ternlang-hdl → ternlang-ml → ternlang-moe → ternlang-compat → ternlang-lsp → ternlang-runtime → ternlang-cli
"27 registers" is gone. The BET VM register file is unbounded — allocate as many as your program needs.
ternlang-lsp vscode-v0.4.0
Pre-built ternlang-lsp binaries for all platforms.
The VS Code extension downloads the correct binary automatically on first activation.
| Platform | File |
|---|---|
| Linux x64 | ternlang-lsp-linux-x64 |
| Linux ARM64 | ternlang-lsp-linux-arm64 |
| macOS x64 | ternlang-lsp-darwin-x64 |
| Windows x64 | ternlang-lsp-win32-x64.exe |
Ternlang Legacy Drop
Ternlang Legacy Drop: Architectural Mass & Compiler Verification
This release solidifies the foundational infrastructure of the Ternary Intelligence Stack. We deployed +2,341 strictly typed .tern files, encompassing the complete standard library, core executable logic for the BET VM, and comprehensive edge-case testing matrices.
Core implementations locked in this drop:
-
The compiler's strict ternary exhaustiveness — explicitly forcing the 0-state resolution in all match arms. -
Complete routing protocols for the @sparseskip annotation — enabling the 122.3x sparse inference speedup by bypassing neutral zero-weights at the hardware-emulation layer. -
Sovereign node initialization scripts for the MoE-13 orchestrator and albert-agent ecosystem.
This drop serves as the immutable public ledger of our repository mass and operational scope. The ecosystem is live, the syntax is active, and the file count is undeniable.
Cheers!
RFI-IRFOS
