v0.3.0-beta.1

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

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 | 3

Previously, 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 debuggingd5b4ca8
  • internal/core/adtadd memory management0c3791e
  • internal/core/adtcatch errors for circular failures008d37d
  • internal/core/adtconsider closed status for equalityb619e0c
  • internal/core/adtdon't pre-expand disjunctions396202c
  • internal/core/adtintroduce HasDefaults for Disjunction69e0c96
  • internal/core/adtkeep nodeContext in Vertex514082a
  • internal/core/adtskip partial unify if unnencessarya595db2
  • internal/core/convertfix faulty label update02ff29b
  • internal/core/evalbreadth-first disjunction resolution778719e
  • internal/core/evaldo not precompute matchers2be20f8
  • internal/core/evalexport fieldSet fields399ba76
  • internal/core/evalmake arcMap a list0ef6caa
  • internal/core/evalrecursive disjunctions1fa69d5
  • internal/core/evalseparate out dynamic fields9ca9e04
  • internal/core/evalsmall cleanup of evaluation code0e1e7b5
  • internal/core/evalsort empty disjunction message to top of group062b3d8
  • internal/core/evaluse env from fieldSet359685a
  • internal/core/exportextract docs from nested Vertex valuesd4c600f
  • internal/coremerge adt with eval packagec62d8a0
  • internal/corereimplementation of closedness algorithmcea55b2

Other2

  • doc/ref/spec.mdchange disjunction rulecc41853
  • tools/flowrecord dependencies per value based on path93c79a3

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

PlatformFile and SHA-256
macOS, Intelcue_0.3.0-beta.1_Darwin_x86_64.tar.gzd9a98d53fb66bc45035c53bdbe653749abb18a898b8e143ba0cbb1348a700437
Linux, Arm64cue_0.3.0-beta.1_Linux_arm64.tar.gzb31079411f42386210046080fca19eda18b4d4f4d3271a0c4a53bb182d1265b0
Linux, x86-64cue_0.3.0-beta.1_Linux_x86_64.tar.gz5e8c1fbf35e9302f186d2b8d66184064c7a735d6f56baa22f964f3c0f75dde98
Windows, x86-64cue_0.3.0-beta.1_Windows_x86_64.zip1c993a69f2ac561f8239481e8f5805dfd3b2e894885d94c29a339456aa0e8e64

SHA-256 checksums for all of these: checksums.txt

Install CUE