Commit Graph
63 Commits
Author SHA1 Message Date
dev 8d6792d4f1 cli: lower atomic value operands iteratively 2026-10-11 15:54:37 +03:00
dev 062fce5cfd cli: lower consuming ownership builtin operands iteratively 2026-10-11 15:09:00 +03:00
dev 5cc69393e4 cli: lower boolean builtin operands iteratively 2026-10-11 14:43:00 +03:00
dev 627ad8f857 cli: lower enum payloads iteratively 2026-10-11 13:23:36 +03:00
dev 8c34a4d64d cli: lower array initializers iteratively 2026-10-11 11:29:24 +03:00
dev 6d2c4d40a8 cli: lower struct fields iteratively 2026-10-11 00:22:18 +03:00
dev 0791a50eb9 cli: lower ordinary call arguments iteratively 2026-10-10 22:53:35 +03:00
dev 50a7575efb cli: propagate host allocation errors from source queries 2026-10-10 18:32:23 +03:00
dev 6945b511a4 cli: lower scalar binary operands iteratively 2026-10-10 17:55:46 +03:00
dev e3f4695efe cli: search expected source types iteratively 2026-10-10 17:34:57 +03:00
dev e862e03f2b cli: query expression types and callee paths iteratively 2026-10-10 17:21:30 +03:00
dev dd73b84085 cli: lower unary spines and mark storage iteratively 2026-10-10 16:55:37 +03:00
dev 46bd29953f cli: query field annotations iteratively and close type-depth audit 2026-10-10 15:46:46 +03:00
dev f5e2af15e8 cli: emit source SSA zero iteratively 2026-10-10 15:14:49 +03:00
dev c1bf99af83 cli: inspect source linear queries iteratively 2026-10-10 15:01:42 +03:00
dev 232f93f188 cli: compare source types iteratively 2026-10-10 14:51:29 +03:00
dev 936d65359c cli: convert source types to AIR iteratively 2026-10-10 14:44:48 +03:00
dev f18b41dd3d cli: print source types iteratively and propagate allocation errors 2026-10-10 14:31:50 +03:00
dev b23f3e678e cli: resolve source annotations with explicit continuations 2026-10-10 13:13:32 +03:00
dev 35635603f9 air: query cache-free nominal properties without recursion 2026-10-10 12:13:49 +03:00
dev 9549a3dec6 diag: guide parameter mutability and explicit array slice arguments 2026-10-09 21:12:26 +03:00
dev 6a02659f31 diag: explain pointer-sized cast restrictions in source advice 2026-10-09 21:01:58 +03:00
dev 4cda44823d frontend: collect independent source diagnostics without cascades 2026-10-09 16:01:18 +03:00
dev 2c6c7a3dcd frontend: provide contextual source repair advice 2026-10-09 14:04:40 +03:00
dev edfef82cc6 diag: preserve factual source atomic-access diagnostics 2026-10-09 00:04:12 +03:00
dev 762c5abe7b frontend: validate unknown effect names before body lowering 2026-10-08 14:49:49 +03:00
dev 48b9b42fed verifier: cache structural properties and nominal size queries 2026-10-08 13:33:24 +03:00
dev 41f3afbf05 cli: validate exclusive source places before AIR 2026-10-08 12:37:22 +03:00
dev dcd5f1f702 cli: reject non-value operands without aborting lowering 2026-10-08 12:17:15 +03:00
dev bc5412dadd cli: validate inferred allocation content before AIR 2026-10-08 10:31:10 +03:00
dev 1bbfed24a8 cli: check inferred array elements before AIR 2026-10-08 09:26:33 +03:00
dev cfbe01a16f cli: validate Copy content of source owning arrays 2026-10-08 09:01:58 +03:00
dev caf3b86e80 cli: validate structural source type positions before AIR 2026-10-07 23:54:55 +03:00
dev dde801c653 cli: preserve whole-array arguments for explicit array parameters 2026-10-07 22:29:45 +03:00
dev 1a80c42289 cli: map block diagnostics to their source constructs 2026-10-07 21:45:57 +03:00
dev 1495650587 cli: resolve struct len fields by receiver type
Use ordinary field lowering and declared field types for nominal receivers while preserving array and slice lengths. Make array field type hints available to chained access. Missing struct len now reports E7002 instead of the builtin-length E7005.

Add 15 source regressions and imported generic CLI checks. Unit tests, all 1201 conformance cases, per-instruction collection for new cases, formatter corpus and original public check/lower compatibility pass.
2026-10-07 20:50:48 +03:00
dev 9001e56325 cli: restrict source scope names to lexical task operands 2026-10-07 19:50:49 +03:00
dev 364eb57bbc diag: preserve envelope fields and reject JSON key collisions in tests 2026-10-07 19:28:36 +03:00
dev dbd9763713 diag: add stable source reasons and diagnostic incidence reporting 2026-10-07 18:52:36 +03:00
dev 911982dd1c cli: disambiguate block statement boundaries 2026-10-07 18:21:07 +03:00
dev a9a0d63f27 cli: implement explicit source borrow returns 2026-10-07 18:20:45 +03:00
dev f02f4bd55b cli: add explicit static function parameters
Bind typed source functions with exact effect contracts during deterministic
specialization; retain nominal operation identity and ordinary AIR verification.

Add spec/RFC/grammar, checked Quick Reference examples, source/AIR conformance,
package/hosted CLI tests, scheduler/GC coverage and documentation budgets.
2026-10-07 10:23:03 +03:00
dev fc23f1b23a cli: canonicalize integer match patterns
Emit decimal AIR patterns without source suffixes, radix spellings or
separators. Validate range before formatting and preserve duplicate-value
detection, including negative zero and 128-bit boundaries.

Add source run/reject regressions for canonical spelling, duplicates and
out-of-range patterns; clarify the existing integer pattern contract.
2026-10-07 08:31:27 +03:00
dev 1eaf968f4f cli: add explicit built-in error values
Add the error_values feature and error.const through specification, AIR,
verification, interpretation and source lowering. Error values are Copy data
with no allocation, effects or authority. Keep enum.make semantics frozen.

Cover all registered tags, feature negotiation, payload/type errors and
authority rejection in AIR/source; verify canonical and hosted CLI behavior.
Record reference-bundle costs and the map preflight-validation prerequisite.
2026-10-07 08:09:49 +03:00
dev 4138a52af6 cli: add initialized buffers and safe owning vectors
Introduce linear_buffers through the specification, AIR parser/serializer,
verifier, deterministic interpreter and source lowering. A buffer owns an
initialized prefix with explicit reserve, bounded push, moving pop/views and
recoverable empty-only free. Growth charges old+new capacity; failed growth,
full push and nonempty free preserve or return complete ownership.

Implement compiler-pinned safe std.vec with nine operations for Copy values,
owners, files and channel endpoints. Permit complete Copy moves inside
specialized generic bodies without weakening monomorphic or borrow rules.
Update RFC 0024, Q-036, STD-6a/b, reference grammar, Quick Reference, bundles,
source coverage and CI. Remaining collections stay STD-6c.

Validation: unit tests and AIR round-trip; 757 conformance cases; 56 dedicated
buffer cases with per-instruction collection and 32-seed schedule stress;
extended memory test; hosted smoke; 36 module, 20 generic, 49 linear and
118 buffer CLI checks; 91/91 source constructs; Zig fmt and reference bundles.
Full source bundle: 49,589 -> 52,384 cl100k tokens (+5.6%); AIR 175,736 bytes.
The reference interpreter's push copies its initialized prefix; no native
performance or empirical MCC benefit is claimed.
2026-10-06 23:26:41 +03:00
dev 4f084decce cli: add whole-value linear aggregates
Implement STD-5 through source, AIR, verifier and deterministic interpreter.
Constructors consume nested owners; exhaustive unpack/take, explicit swap and
own.pack preserve ownership on success and failure. Support owning Option and
Result while keeping classification helpers Copy-only. Preserve borrow identity
across whole replacement and collection; distinguish individual owned arrays
from repeated heap arrays.

Specify feature contracts, invariants, diagnostics, compatibility and measured
source/AIR budgets in RFC 0023 and normative docs. Add canonical round trips,
AIR/source acceptance and rejection fixtures, CLI integration and CI checks.

Validate build, unit/extended tests, full conformance, forced-collection schedule
stress (32 seeds per quantum), hosted smoke, CLI suites, source coverage (88/88),
formatting and reference bundle generation. Source bundle grows 3.2%; Quick
Reference grows 4.0%. No MCC improvement is claimed.

Dynamic initialized linear buffers and explicit drain remain Q-036/STD-6;
frame/region/repeated heap storage is Copy-only. RFC remains Proposed.
2026-10-06 21:23:52 +03:00
dev 7eea31518d cli: add explicit source generics and Copy option/result
Specialize explicit function, struct and enum templates into deterministic
ordinary AIR, with structural constraints and bounded expansion. Preserve
source provenance and readable names in specialization diagnostics.

Add Copy-only std.option/std.result and vertical specification, grammar,
Quick Reference, RFC and source coverage updates. Keep linear aggregates
and existing unsupported source from-returns explicit follow-up work.

Repair the finite-layout check through arrays under the existing E1003
contract, with positive and rejected source/AIR fixtures.

Validation: build, unit tests, 640 conformance cases, 82/82 source constructs,
32-seed generic task stress, agent-reference, formatting, hosted smoke,
20 generic and 36 package CLI checks. Record three-encoding documentation
budgets; AIR reference is unchanged.
2026-10-06 19:53:26 +03:00
dev c96199e7ec cli: add explicit package source modules
Link manifest-selected source graphs with module-local names, qualified
structs/enums/functions and task workers through ordinary AIR verification.
Keep source inputs bounded, reject source symlinks and preserve explicit
grants, diagnostics and deterministic canonical lowering.

Integrate spec 12/15, RFC 0021, source reference budgets, roadmap, examples
and CI coverage. Validate 579 conformance tests, unit tests, 76 source
constructs, hosted smoke, 36 package CLI checks and task schedule stress.
2026-10-06 18:51:54 +03:00
dev a2ca293506 cli: add recoverable endian APIs and qualified std enums 2026-10-06 15:12:55 +03:00
dev 10a370471b cli: bootstrap verified std bytes and math with source imports 2026-10-06 14:51:10 +03:00