Skip to content

sysl 0.11.12

Choose a tag to compare

@edadma edadma released this 18 Nov 01:19
· 587 commits to dev since this release

A patch release: a c const is read exactly at its C type's own width, literals choose between a type's overloads and operators the way they choose between functions, and a module-level vector val builds on freestanding targets.

Install

brew install sysl-lang/tap/sysl

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

Behaviour change

  • c const reads a whole number exactly at its C type's own width: u64 max, __int128 and _BitInt are read exact. A value that the declared sysl type cannot hold is now refused instead of being read wrong. That includes a negative C value read into an unsigned type, which was silently UINT64_MAX.

Fixed

  • B25, B26 and B27: a literal, a literal's arithmetic and a measured c type now choose between an associated function's overloads and an operator's implementations by the same rule as between functions. B.of(1234567890123) over long/ulong overloads is no longer refused, an operator's literal right operand is no longer read at int before the implementation is chosen, f(60 * 52) over long/ulong is no longer ambiguous, and a c type over unsigned long is the ulong it was measured as.
  • A module-level vector val over constants (a literal, a splat, the operators, a shuffle, a select, a conversion) is laid down as static data, alone or inside a struct, an array or an enum payload, so a freestanding build that reads one is no longer refused.
  • ByteSink.text is no longer refused when a ref or pointer into a Buf[u8] is live across it.
  • The type-arithmetic diagnostic names the length as written and the value parameter.

Documented

  • A trap inside an @export function ends the process with the trap signal and never unwinds or returns into C (reference/ffi.md).

Tests

  • Full suite on the release tree (SYSL_DOCS=1, stage 2): 24929 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 332 (and 15 board-image checks), nex 865 across its four members, avin 980, benchtop 1960.