Repository navigation
GALA 0.100.0
GALA 0.100.0 Release Notes
Released: 2026-11-03
Highlights
GALA now parses with galop's native parser and no longer builds an ANTLR parse tree for a clean file. The whole compiler (analyzer, transformer, language server and tools) reads galop's tree directly. Generated Go is byte-identical to 0.95.0, and builds are faster and much smaller in memory.
Performance
Measured on gala-tui, all versions in one alternating run on a quiet machine (medians; 0.93.2 is the last release before galop):
| 0.93.2 | 0.95.0 | 0.100.0 | vs 0.95.0 | |
|---|---|---|---|---|
gala build |
10.0 s | 7.43 s | 6.03 s | −19% |
| GALA→Go transpile | 7.91 s | 5.33 s | 3.65 s | −32% |
| parsing (all files) | 491 ms | 114 ms | 32 ms | −72% |
gala build peak memory |
859 MB | 484 MB | 178 MB | −63% |
gala test |
15.4 s | 12.3 s | 9.14 s | −26% |
gala test peak memory |
880 MB | 527 MB | 180 MB | −66% |
gala imports --json (737 files) |
1.70 s | 349 ms | 182 ms | 1.9× faster |
| editor keystroke, clean / syntax error (array.gala) | 81.5 / 655 ms | 40.2 / 313 ms | 24.2 / 166 ms | −40% / −47% |
| build worker memory kept (565 packages) | 510 MB | 406 MB | 112 MB | −72% |
Compared with 0.93.2, gala build is 40% faster and uses 79% less peak memory.
Features
- galop's native parser by default: a clean file is lexed and parsed by galop and never becomes an ANTLR tree.
- ANTLR is still used to re-parse a file with a syntax error, so error messages and positions are unchanged, and for error recovery in the editor.
--parser antlr(orGALA_PARSER=antlr) still selects ANTLR; its tree is converted to galop's, so the rest of the compiler is the same either way.- galop is now required to build GALA.
- The compiler reads only galop's tree: the analyzer, scope walk, transformer and language server no longer contain ANTLR code paths. A conversion failure is reported as an internal error naming the file, instead of being silently skipped.
==and!=useEqual: values compare with theirEqualmethod, andArrayis comparable.- New diagnostics:
- GALA-E0086: a type parameter on an interface method.
- GALA-E0087: a std type shadowed by a dot-imported value.
- GALA-E0088: a function parameter without a name (this used to crash the compiler).
- GALA-E0089: a case guard that isn't a
bool. - GALA-E0090: writing an anonymous Go struct type.
- Sealed types and interfaces: a bare zero-field sealed case now tests an interface subject; bare cases that can't test one are rejected.
Improvements
- Collections:
HashSetandArraykeep their hashes instead of rehashing. - Match: type-pattern matches dispatch with one Go type switch, and
HashOfis added. - Editor:
- signature help reuses its parse while you type inside a call;
- analysis results from an older edit can no longer overwrite a newer one;
- signature help still works if galop's lexer fails.
- Deterministic output: companion names and the order of generated imports no longer depend on map iteration order.
Bug Fixes
- Channels: channel receive
<-chis lowered and its element type is inferred (#950). - Partial functions: a partial function passed as an argument keeps its suffix, such as
{ case ... }(3)(#980). - Tail calls: a
matchapplied to a self-call is no longer dropped by the tail-call rewrite (#971). - If-expressions:
- Defaults:
- Analyzer:
- anonymous Go struct types are typed concretely, including fields that are arrays, generic instances or inline interfaces (#973, #985);
DefinedInis recorded on a method whose type is declared in another file (#979);- re-collected types start from their current declaration (#926, #938, #952);
- package-level vals are typed correctly for E-named operands, trailing matches and signed literals (#924).
- Other:
Breaking Changes
==/!=now compare withEqual(#903).- Code that relied on a default resolving names from the call site, a bare sealed case on an interface subject, a std type shadowed by a dot import, or writing an anonymous Go struct type is now rejected with a diagnostic (#939, #940, #941, #947, #991).
go_interop.Signalis now a defined type (#991).- The parser's Go API dropped
Parsed.Strict/LenientandParseExpressionAt, andParsed.Treeis nil for a clean parse. This only matters to code that imports GALA's internal parser package.
Full Changelog: 0.95.0...0.100.0
🤖 Generated with Claude Code