Changelog
Unreleased
- Prebuilt binaries and installers. Every release now carries Trine for Linux (x86-64, arm64), macOS (Apple silicon, Intel) and Windows x64, with
SHA256SUMSand a signed build attestation for each archive. Install withinstall.sh(Linux, macOS) orinstall.ps1(Windows), which refuse a download whose checksum doesn't match: docs/INSTALL.md. Each release also carries a Homebrew formula and winget manifests. - Fixes from the first CI run on every platform: the browser playground builds again; native builds on Windows are reproducible (the linker no longer stamps the build time in).
1.0.0 (2026-12-05)
The first stable release. The language is frozen as SPEC.md 1.0; what is promised to keep working is in COMPATIBILITY.md.
For people writing Trine
- The language: Python-like syntax with full type inference; records, sum types, generics, traits; exhaustive
match; comprehensions,+=,??, f-strings, generators; mutable value semantics (no aliasing) with in-place updates when a value is unique; checked arithmetic and bounds. Tutorial, tour, gallery. - Capabilities: a program reaches files, the environment, other programs, the network, Python and C only through capabilities it is handed, and only as far as the run's grants allow (
--allow-read=,--allow-net=, ...).trine capsshows what each function can reach. (CAPABILITIES.md, SECURITY.md) - Concurrency:
async fn/awaitandspawn/waitstart scoped tasks;par_mapruns on every core; an isolation checker makes data races a compile error, and output and errors always come in program order. (PARALLEL.md) - Packages: modules,
trine.tomlwith path and git dependencies pinned intrine.lockby commit and content hash, a shared build cache, reproducible builds. (MODULES.md, PACKAGES.md) - Interop: C functions with strings, byte buffers and
varparameters, behindunsafe:blocks; Python modules called directly with objects kept by handle. (FFI.md, PYTHON.md) - Tools:
trine testwithtest "name":blocks andassert/assert_eq; runtime errors with call stacks;trine fmt,lint,fix,doc,hints; a language server with inferred types and ownership hints as you type;trine semdiffand a content-addressed store that knows renames;--jsondiagnostics with stable codes and machine-applicable fixes. (CLI.md, EDITOR.md, AGENTS.md) - Editions: packages declare
edition = "1.0"; code without one is read as 0.9 and keeps compiling.trine migratemoves a package to a new edition and proves nothing else changed. - Speed: native code through C at about C's and Rust's speed on the benchmark set, with overflow and bounds safety kept (BENCHMARKS.md);
trine runstarts in the interpreter and switches to native code mid-run.
Security (the 1.0 review)
- Every boundary of the capability model was attacked again; each attack is now a test (
sandbox_escapes_are_refused). One real problem was found and fixed: a constant that never finished computing hung the compiler and the editor; constants now have a budget of 10 million steps. - A second review aimed at automated, AI-driven attack tools looked at everything that comes from outside a program: project files, the network, other programs. Fixed before release: - trine.toml and trine.lock are untrusted input. A lock entry's commit could name a folder outside the package cache, which git then wrote to (and which Windows could have deleted); a dependency URL starting with
-was read by git as an option. Lock entries must now be full commit ids and sha256 hashes; URLs must be https, http, ssh, git, file, scp-style or a local path, never an option or a::transport helper; revs can't be options. - Windows native code looked forcurlandpython3in the current directory before the PATH (a plantedcurl.exewould run); it now searches the PATH only, like the interpreter. Batch files granted with--allow-runrefuse arguments that cmd.exe would re-read. - https:// through curl now ignores~/.curlrc(which could turn on following redirects to hosts that aren't granted) and doesn't expand{a,b}or[1-9]patterns in URLs. - HTTP: header names must be tokens; a lone\ror\nin a response's headers makes it "not HTTP" on every engine (the engines used to disagree on six kinds of malformed response); native code no longer cuts request lines over 690 bytes short. - The testhostile_inputs_are_refused_the_same_everywhereholds all of these. 4,800 fuzzed hostile responses against native code under AddressSanitizer found no memory errors. - Still to come: a review by someone outside the project, and the Windows fixes run on Windows.
Under the hood
- Three engines that must agree: an interpreter (the reference), an ownership-checking VM, and native code through C (Perceus reference counting, borrow inference, drop-reuse, a bounds verifier whose proofs are cross-checked with Z3, schedules for kernels). Conformance runs every program on all of them; a differential fuzzer generates more.
- The history of how each piece was built and measured is the log in ROADMAP.md.
Versions
From 1.0 on: a 1.x minor release adds (built-ins, library functions, commands, editions) and never breaks a program that works; a patch release fixes bugs. Breaking changes to how source is read come only as new editions, each with trine migrate.