Repository navigation
Release Notes
Performance
assoc,dissoc, and the other in-place map updates no longer copy the
whole map on each iteration of a namedletloop or a self-recursive
internaldefine. Before, a loop such as
(let loop ((i 0) (acc {})) (if (= i n) acc (loop (+ i 1) (assoc acc k i))))
took quadratic time: 16,000 inserts took 1.1 s and 200,000 took about 4
minutes. The cause was that the compiler's last-use analysis (TakeLocal)
skipped every function containing a self-tail-call, so the loop variable
kept a second reference to the map and the uniqueness check inassoc
always failed. The analysis now covers self-tail-calls, and 16,000 inserts
take 12 ms.doloops andset!targets still copy.
Install sema-lang 2.0.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/sema-lisp/sema/releases/download/v2.0.2/sema-lang-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/sema-lisp/sema/releases/download/v2.0.2/sema-lang-installer.ps1 | iex"Install prebuilt binaries via Homebrew
brew install helgesverre/tap/sema-langDownload sema-lang 2.0.2
| File | Platform | Checksum |
|---|---|---|
| sema-lang-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| sema-lang-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| sema-lang-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| sema-lang-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| sema-lang-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo sema-lisp/semaYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>