Skip to content

v0.5.0

Choose a tag to compare

@anonx3247 anonx3247 released this 27 Nov 01:38
5f039e0

Install: curl -fsSL https://strata-lang.dev/install.sh | sh (macOS arm64).

Language and std

  • Real (#575): exact rationals, the type of decimal literals (0.1 + 0.2 == 0.3); JSON and TOML numbers are Real.
  • Structural records (#570): { id: OrderId, .. } as a parameter's type or a bound.
  • JSX-like pages (#577): markup in Strata code, stored as std.web calls.
  • std.net, HTTP/1.1 with TLS, std.agent (#574): TCP, HTTP clients and servers, HTTPS clients, streamed bodies; an LLM agent loop with tools.
  • extern rust and extern ts (#576); wasm32 target and derive TypeScript (#601).
  • Tasks get copies, no atomic counts (#564); narrowing from what a function ensures of its result's variant (#567).

Tools

  • strata run --live (#572): edits that check and verify are swapped into a running program.
  • Tree diff and three-way merge (#569): node by node, conflicts as holes; strata history / strata revert (#590).
  • check keeps verdicts per definition (#578); a failed edit writes nothing, edit --as-given writes it anyway (#592).

Verification

  • verify never runs code that reaches an extern (#602) or gives a real capability (#597); faster batches (#598, #599, #604, #606, #610); a type holding a Real is refined by its other parts (#612). std is proven except std.orm.Schema.create and std.orm.Key.load.

Memory

  • Statement regions were tried and removed (#568, #596); memory profiles of five programs (#594); fixes in codegen (#609, #611, #614).

Known issues

  • build-jit-tests: strata test examples/tasks no longer prints the warning for a Result thrown away in memory.queue_after.
  • A rare "dup of a freed object" in check mode (STRATA_MEMORY=check) under strata run with tasks (seen in build-supervised, build-io-cancel).

All merged pull requests since v0.4.0

  • #615 strata --version: 0.5.0
  • #574 std.net, HTTP/1.1 with TLS and streamed bodies, and std.agent (streaming, derive AsTool)
  • #601 wasm32 target and derive TypeScript: Strata called from TypeScript through WebAssembly
  • #576 extern rust and extern ts: Rust through a cargo-built library, TypeScript through a Node worker, values as JSON
  • #612 verify: a type holding a Real is refined only by its other parts
  • #614 codegen: an element store is in place with a variable named at in scope
  • #611 codegen: a record a closure or task captures is not on the stack (the build-tasks freed-object flake)
  • #575 Real: exact rationals, the type of decimal literals
  • #610 smt: a list's known all named once as a predicate of the position
  • #570 Structural records: { id: OrderId, .. } as a parameter's type or a bound
  • #609 codegen, unique: a mut variable read by another argument keeps its own slot
  • #606 verify: VerifyOptions + verify_options parse the flags; verify_program runs the pipeline in named phases
  • #605 site: Vercel deploys only by hand
  • #577 JSX-like pages: markup in Strata code, stored as std.web calls
  • #594 Memory profile of five programs: curves and live objects at the peak
  • #603 IDEAS: bugs the lab fleet found and left unfixed
  • #604 smt: assumed validity facts on demand
  • #564 Tasks get copies, no atomic counts
  • #572 strata run --live: live edits of a running program, when they check and verify
  • #602 verify never runs code that reaches an extern
  • #578 check: keep verdicts per definition; uniqueness analysis incremental and parallel
  • #600 Fast string search: contains/index_of/split/replace through memchr (P3)
  • #569 Diff and three-way merge on trees: node by node, conflicts as holes
  • #567 check: what a function ensures of its result's variant narrows its calls
  • #585 roots: values given back as they are stay counted under --regions
  • #599 verify: the batch builder works on facts by id (P5)
  • #598 verify: build each batch once (answers_all and sort_mixes reuse the worker's text)
  • #597 verify never gives a real capability (fuzzing, replays)
  • #596 Remove regions (phase 2a); record the results of scoped allocation
  • #593 verify --timings: per-definition table; the serial batch rebuilds timed (speed P0)
  • #592 edit: --rm looks in its module first; a failed edit writes nothing
  • #590 strata history NAME and strata revert NAME [COMMIT]
  • #588 Turn off the generated state graphs; fix cli-modules_contracts_and_files
  • #587 verify: a query that ran out of time isn't cached as 'gave up'
  • #584 smt: mut lists come back valid; helper calls in proofs equal their bodies; tasks without intro lemmas
  • #586 verify: a pooled Z3 process starts again after a script sets a global parameter
  • #583 smt: the same value is one term; tasks proofs inline again
  • #582 tasks-proofs-8: every definition of examples/tasks proven
  • #580 CLAUDE.md: full bootstrap only for codegen, runtime, core and releases
  • #579 examples/tasks: claim, record, release, expire and run_worker proven (replaces #566)
  • #568 Statement regions (--regions), phase 2a of scoped allocation
  • #565 check: a mut argument fixes a type argument (codegen's _ instances)
  • #563 codegen: dict equality in an instance with unknown type arguments
  • #556 graph: answers cached per function, questions asked in parallel
  • #554 smt: smaller tasks queries (calls compared by names, long terms through a let)
  • #553 Site: front page compares Rust and Strata on one ledger and one order system; FAQ