v0.3.0-beta.1
This release is focussed predominantly on performance. It includes several algorithmic improvements that eliminate possible exponential processing and in general takes more care to avoid recomputation.
Aside from algorithmic changes, these changes also prepare for numerous further optimizations. The algorithmic changes already already give enough of an improvement (especially for some large files) to warrant another release.
Language change
This release also introduces a slight language change regarding disjunctions. Consider
x: *1 | a
a: *2 | 3Previously, the result of x would be *1 | *2 | 3, in other words, a default value of 1 | 2. With the new semantics, the default in this case will be 1. In general, with the new semantics, if a disjunction has a term with a default, the other terms can never result in a default value.
Superficially, this makes it easier to see where defaults may come from and eliminates the need to check all terms of a disjunction. But this change also prevents some unintuitive behavior and even cases where making values more specific may lead to a less specific result.
Backwards compatibility
The changed disjunction rule may cause backwards incompatibility.
There are some minor bug fixes as a result of these changes that may change the behavior For instance, [...] | [] was previously normalized to [].
There are also some changes to error messages as a result of these changes.
All changes
23 changesby area
internal21
internal/core/adtadd logging utilities for debugginginternal/core/adtadd memory managementinternal/core/adtcatch errors for circular failuresinternal/core/adtconsider closed status for equalityinternal/core/adtdon't pre-expand disjunctionsinternal/core/adtintroduce HasDefaults for Disjunctioninternal/core/adtkeep nodeContext in Vertexinternal/core/adtskip partial unify if unnencessaryinternal/core/convertfix faulty label updateinternal/core/evalbreadth-first disjunction resolutioninternal/core/evaldo not precompute matchersinternal/core/evalexport fieldSet fieldsinternal/core/evalmake arcMap a listinternal/core/evalrecursive disjunctionsinternal/core/evalseparate out dynamic fieldsinternal/core/evalsmall cleanup of evaluation codeinternal/core/evalsort empty disjunction message to top of groupinternal/core/evaluse env from fieldSetinternal/core/exportextract docs from nested Vertex valuesinternal/coremerge adt with eval packageinternal/corereimplementation of closedness algorithm
Other2
doc/ref/spec.mdchange disjunction ruletools/flowrecord dependencies per value based on path
Downloads
Every file this release published on GitHub, with its SHA-256. Most people install CUE as Installing CUE describes, which also shows how to check a download.
Archives
| Platform | File and SHA-256 |
|---|---|
| macOS, Intel | cue_d9a98d53fb66bc45035c53bdbe653749abb18a898b8e143ba0cbb1348a700437 |
| Linux, Arm64 | cue_b31079411f42386210046080fca19eda18b4d4f4d3271a0c4a53bb182d1265b0 |
| Linux, x86-64 | cue_5e8c1fbf35e9302f186d2b8d66184064c7a735d6f56baa22f964f3c0f75dde98 |
| Windows, x86-64 | cue_1c993a69f2ac561f8239481e8f5805dfd3b2e894885d94c29a339456aa0e8e64 |
SHA-256 checksums for all of these: checksums.txt