Repository navigation
sysl 0.11.14
A patch release: sysl test of a large tree holds far less memory while compiling, and a ref taken through a parameter or local is no longer refused across a call that writes another value of its type.
Install
brew install sysl-lang/tap/sysl
or download sysl-0.11.14-darwin-arm64.tar.gz below and put its bin/ on your PATH; the compiler finds share/sysl/library beside itself.
Improved
sysl testof a large tree holds far less memory while compiling. The compiler now lets go of what code generation never reads: the field-path analysis, each typed body once it is lowered, and the per-type name sets in the borrowing answers (now one bit per function). It also sizes the module text buffer exactly. Program output is unchanged: emit-llvm text is byte-identical. Measured on the compiler's ownsysl test . --file tests_widening.sysl(SYSL_NO_CACHE=1), using this release's compiler: the compiling process peaks at 9.1 GB resident (/usr/bin/time -l), against 16.1 GB on 0.11.13. At the end of code generation it holds 7.6 GB, against 8.0 GB. The memory held as the link's clangs start is unchanged, at 4.9 GB.
Fixed
- A
reftaken through a parameter or a local (ref r = node.inner) is no longer refused across a call that may write another value of the same type. The slot keeps its object alive for the whole call. It is still refused where the body lets the slot's address out (&node, arefbound to it, a nested function), and for module storage, owning fields past the root, and aBuf's elements. reference/memory.md has a new example.
Tests
- Full suite on the release tree (
SYSL_DOCS=1, stage 2): 25091 passed, 0 failed, 3 ignored. The stage-3 self check reports identical emit-llvm (2727033 lines). --std: 2100 passed, 0 failed.- Consumers on the candidate, all green: terndb 2570, slate 2806, skiff (unit suites and seeded board scenarios), nex 865 across its members, avin 1122, benchtop 1960. One avin terminal test (no-terminal read) failed once under load and passed on re-run.