Skip to content

HollowScript v0.1.2 preview

Pre-release
Pre-release

Choose a tag to compare

@hollowscript-releases hollowscript-releases released this 18 Nov 00:58

HollowScript v0.1.2 is a preview. It fixes checker and runtime defects found while writing the first HollowScript courses, and implements version 1.2.0 of the specification. The command line, embedding API and bytecode format may still change before 1.0.

Supported binary platforms are unchanged: macOS on Apple Silicon, Linux on x86_64 (static musl build) and Windows on x86_64. Linux on ARM64, Intel macOS, downloadable WebAssembly builds, registry packages and editor extension stores are not part of this release. Their source build targets are not a support claim.

Install on macOS or Linux:

curl -fsSL https://get.hollowscript.org/install.sh | sh -s -- --version v0.1.2

Install on Windows, in PowerShell:

$env:HOLLOWSCRIPT_VERSION = 'v0.1.2'; irm https://get.hollowscript.org/install.ps1 | iex

Restart the shell, then run hollowscript version. The installers verify the release signature with minisign or OpenSSH and check the archive hash before installing. macOS downloads are signed by the project, not notarised by Apple. The Windows executables are not Authenticode signed, so Smart App Control, where it is turned on, may refuse to run them. See the installation guide for options and uninstall instructions.

What changed:

  • Generic functions work as the specification says: a generic function can call a function parameter, call itself or another generic function, and use list methods such as append, concat, contains and sort on its element type. Closure return types are inferred at generic calls, and every argument is held to its parameter type, so a narrower function, list, map or record argument is reported instead of failing at run time.
  • match over an optional value reaches else for a missing value, a none arm plus every variant is exhaustive, a field path narrows through an optional that is already narrowed, and a literal is accepted where an optional type is expected.
  • New error HS0345 for a call that returns nothing used as a value, and new warning HS0804 for a discarded standard library value, such as xs.append(1) on a line of its own.
  • A program that builds a very large list or text now stops with a memory fault (HS1002, or HS1015 at an implementation limit) and the WebAssembly runtime keeps working, instead of trapping. random.int with min not below upTo faults HS1011 on every host.
  • The specification documents how an interpolation counts brackets, and the editor highlighter marks every character the checker rejects.
  • The full list is in CHANGELOG.md.

Verification and reproduction:

  • SHA256SUMS.minisig and SHA256SUMS.sshsig sign the same SHA256SUMS, with the public key pinned in scripts/hollowscript-release.pub.
  • With minisign: minisign -Vm SHA256SUMS -p scripts/hollowscript-release.pub, then shasum -a 256 -c SHA256SUMS in the directory containing the downloaded files.
  • The checksum set covers the six archives, the CycloneDX SBOM and two build records: hollowscript-0.1.2-aarch64-apple-darwin-build.json (macOS and Windows archives, built on Apple Silicon macOS) and hollowscript-0.1.2-x86_64-unknown-linux-musl-build.json (Linux archives, built on a native x86_64 Linux builder with a pinned image).
  • Each build record names this mirror's source commit and the pinned Rust 1.98.1 toolchain. Every product matched a second build from a different checkout and Cargo home on the same builder. That is not an independent reproduction.

The installer also accepts the latest release by default. The latest.txt pointer is unsigned and has no expiry, so a compromised download service could keep a default install on an older signed release above the installer's release floor. The pinned commands above avoid relying on that pointer. Freshness protection is planned before a stable release.

The public mirror contains one commit for this release, with no development history or internal release material. Code is Apache-2.0 or MIT; documentation is CC BY 4.0 with separate branding terms. Report suspected vulnerabilities privately through this repository's Security tab.