Repository navigation
sysl 0.11.12
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 constreads a whole number exactly at its C type's own width: u64 max,__int128and_BitIntare 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 silentlyUINT64_MAX.
Fixed
- B25, B26 and B27: a literal, a literal's arithmetic and a measured
c typenow choose between an associated function's overloads and an operator's implementations by the same rule as between functions.B.of(1234567890123)overlong/ulongoverloads is no longer refused, an operator's literal right operand is no longer read atintbefore the implementation is chosen,f(60 * 52)overlong/ulongis no longer ambiguous, and ac typeoverunsigned longis theulongit was measured as. - A module-level vector
valover 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.textis no longer refused when a ref or pointer into aBuf[u8]is live across it.- The type-arithmetic diagnostic names the length as written and the value parameter.
Documented
- A trap inside an
@exportfunction 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.