Skip to content

Changelog

Fixes the checker and runtime defects found while writing the first HollowScript courses, and implements specification 1.2.0. The supported platforms are unchanged. See the release notes and Get started.

Language

  • A match over an optional value with an else arm now reaches the else arm when the value is missing, instead of failing with an internal error. A none arm plus an arm for every variant is exhaustive without an else, and so is a nested pattern that lists every variant.
  • Narrowing follows nested optional paths: after a != none, a test of a.b != none narrows a.b.c, in nested if statements and in and and or conditions.
  • A list, map, record or closure literal is accepted where an optional type is expected, and is checked against the type inside the optional. A binding after the none arm of a match has the present type for any optional scrutinee, including a call.
  • Generic functions work with their own type parameters: calling a function-typed parameter, passing it to filter, sort or map, using append, concat, contains or find on [T], calling another generic function, building a generic enum variant and recursion no longer fail with HS0308. Messages name the declared type parameter and the real function. A closure with no annotation passed to a generic function takes its return type from its return statements.
  • A mistake at a generic call is reported once, as the single most useful diagnostic.
  • Every call argument must be assignable to its parameter type. A function, list, map, set or record whose element, field or parameter type is narrower than the declared one is now HS0301 at every call, where 0.1.1 accepted it and could fail at run time. Write the type on the value, for example constant a: A = { x: 1 }.
  • A call to a function that returns nothing is HS0345 anywhere a value is needed. It was accepted by check and failed at run time.
  • A closure whose expected function type has no return type, such as the callback of each, returns nothing: return e in it is HS0340.
  • A closure whose return type is inferred must return a value on every path (HS0342), and one that mixes return e with a bare return is HS0341. The messages say the function “returns a value”.
  • effect on a call of a prelude, json or time function is HS0402, as for any other pure callee.
  • New warning HS0804: an expression statement that discards the value of a standard library call that is not a Result, such as xs.append(1) on a line of its own. Your own functions, effect calls and capabilities never warn.
  • String interpolation counts the brackets it opens, so a call, list or closure written over several lines inside ${ } is accepted. This is how the implementation has always behaved; the specification now says so.
  • A lone carriage return in a // comment is HS0005, and a non-ASCII letter or digit in an identifier is reported once per character.

Runtime

  • A program that asks for more memory than the WebAssembly build can give no longer traps the instance. Allocations that grow with the program fail with HS1015 and the same instance carries on. The default memory maximum of that build is 512 MiB.
  • Calls such as map, filter and flatMap read a list without copying it, which takes a third off the memory of map over a long list. Results of a known size are charged steps and memory before they are built, so a huge sort is HS1002 on every host.
  • sortBy, mapFrom and set are O(n log n) for every key order, where descending keys were O(n^2).
  • random.int(min, upTo) faults with HS1011 when min >= upTo on every host.
  • hollowscript.js reports the trap that ended a run as itself and frees its upload buffers when a later upload is refused.

Editor tooling

  • Highlighting marks a rejected character as invalid, and string pieces after an interpolation are placed exactly.
  • Member completion for fields, methods, namespaces and enum variants, including imported and generic record types.
  • Language server positions and incremental edits use UTF-16.

Adds signed command line and C SDK archives for Linux on x86_64 (static musl) and Windows on x86_64, alongside macOS on Apple Silicon. On Windows, file access and module loading now refuse hard-linked files, as on Unix. The PowerShell installer parses under Windows PowerShell 5.1 and PowerShell 7. The release has signed checksums, a software bill of materials and a build record for each builder. See the release notes and Get started.

The first public preview includes signed command line and C SDK archives for Apple Silicon macOS, the language server and the public source mirror. It implements specification 1.1.1. The release includes signed checksums, a software bill of materials and a signed build record.

The specification currently published on this site is version 1.2.0, following the semantic versioning policy stated in its overview. A patch release corrects wording without changing behaviour; a minor release adds to the language without breaking an accepted program; a major release may change what an accepted program means. See the decisions record for why each rule is as it is.

Adds two diagnostics and makes several rules explicit. A call to a function that returns nothing is HS0345 wherever a value is needed (section 3.7), and the warning HS0804 flags a discarded value of a standard library call that is not a Result (section 17.3), so there are now four warnings. An expected optional type reaches the list, map, record or closure literal inside it, and a binding after the none arm of a match has the present type for any scrutinee (section 2.9, section 7.6). A closure with an inferred return type must return a value on every path (HS0342), and one that mixes return e with a bare return is HS0341 (section 5.3). Section 1.5 now states the bracket rules of string interpolation. The decisions record gains an entry for each change.

Corrects where the error types of the standard capabilities come from. IoError and HttpError are declared by the capabilities that mention them, and are visible in every file of a run whose capability interface declares them; they are not prelude names that every file sees. HttpRequest and HttpResponse have no name, so a program that needs one declares a record with the same fields. The text now says what the reference implementation and the shared conformance corpus already did, and three corpus cases pin the rule. See section 9.7 and section 16.1.

An implementation may impose limits of its own beyond those the specification fixes, provided it documents each one and none of them rejects a program of the conformance corpus. Such a limit is reported as HS0901 before a run and HS1015 during one, never as an internal error. See section 1.10 and the decisions record.

The first published specification.

Entries record each specification revision and runtime version, following Keep a Changelog.

Get started now offers the Microsoft Store package as an alternative to the PowerShell script on Windows 11 x64. The Store package currently carries the 0.1.1 preview; the script installs v0.1.2.

The approved mark now uses the site’s green in both themes, with the same outline across the header, arrival animation, favicons, installation icons and sharing image. Monochrome downloads remain available. Brand assets are generated from committed vector and palette sources, with checks for stale exports, contrast and shape consistency.

Improved muted text and linked-code contrast, made documentation headings explicit keyboard skip targets, and aligned the search action’s accessible name with its visible shortcut hint. Every page is checked in both themes and at mobile widths.

The support verification controls now use accessible names that include their visible labels, configured through the widget’s supported messages API.

Adopted the Script Fold mark across the header, arrival animation, browser and installation icons, and sharing image. The same source outline is used in both themes, with flat fills and transparent openings.

  • Refreshed the landing page with a code-led hero, accessible animation controls and clearer preview information. Documentation navigation now opens the current chapter group while keeping other groups compact.

  • Support checks now use the latest Verify interface and are bound to support intake.

  • The site was created, covering the version 1.0.0 specification (now 1.2.0), the standard library, the diagnostic registry, the formal grammar and the design decisions record.

  • Added a non-normative tour of the language, whose examples are checked against the native implementation.

  • Added a security contact at /.well-known/security.txt.

  • Every page now carries structured data naming Soulstack as publisher, and the footer credits HollowScript as a Soulstack product.

  • Pages now declare British English (en-GB), and every page has its own search description.

  • The site now shows the HollowScript logo: the mark beside the name in the header, as the browser tab icon and home-screen icon, and on the social card.

The support form uses Verify 3.5.1 with a consistent inline appearance and accessible security help. Submitting waits for the check, prevents duplicate messages and preserves the message when a request fails.

HollowScript™ is a trademark of Soulstack. See the trademark policy.

A Soulstack product