Skip to content

sysl 0.11.11

Choose a tag to compare

@edadma edadma released this 17 Nov 19:15
· 601 commits to dev since this release

A patch release: a failed struct invariant now names the clause that broke, and a generic function's diagnostics and strict floating point now match a plain function's.

Install

brew install sysl-lang/tap/sysl

or download sysl-0.11.11-darwin-arm64.tar.gz below and put its bin/ on your PATH; the compiler finds share/sysl/library beside itself.

Behaviour change

  • A struct invariant that fails now names the clause that broke and where it is written: invariant of 'Window' failed: clause 'lo <= hi' at main.sysl:4:15 (main.sysl:8:1). A constant whose value breaks an invariant names the clause the same way. The clauses are still checked in written order, the first broken one is named, and the exit status is still the trap's.

Fixed

  • Inside a @strict_fp generic function, a closure written above the function's last statement was compiled with ordinary floating-point arithmetic instead of the strict form.
  • A generic function's diagnostics pointed at its last statement instead of the function: --explain-borrows notes and @disjoint/@reads/@writes refusals now point where they do for a plain function, and an error trace names a closure inside a generic made real once (wrap.int.<closure>). An @unchecked form's diagnostics now cover the whole word.

Tests

  • Full suite on the release tree (SYSL_DOCS=1, stage 2): 24875 passed, 1 failed, 3 ignored. The failure is the stage-2 whole-tree comparison timing out at 300 s on a loaded machine; the release script's stage-3 comparison is the self check that counts.
  • --std: 2100 passed, 0 failed.
  • Consumers on the candidate, all green: slate 2806, skiff 299 (and 14 board-image checks), nex 871 across its four members, avin 979, benchtop 1934.