v0.14.0-alpha.2

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

This release brings many evaluator performance improvements, as well as initial support for Kubernetes CRDs.

Evaluator

Further performance improvements were made to the new closedness implementation, giving speed-ups of up to 50% for some projects with heavy use of definitions.

Significant progress has been made to the new evaluator’s memory usage; a few large projects experiencing high memory usage on the previous alpha release now see reductions of up to 80%.

Various other optimizations and performance bug fixes have been made to the new evaluator, yielding speed-ups of 5-20% on a variety of CUE projects.

Encodings

cue get crd introduces support for extracting Kubernetes Custom Resource Definitions (CRDs) as CUE definitions; see cue help get crd.

The new encoding/jsonschema.ExtractCRDs Go API exposes the extractor used by cue get crd.

All changes

52 changes since v0.14.0-alpha.1by area

cue3

  • cue/loaddeduplicate handling missing files for ad-hoc packages@mvdan4cb33de
  • cue/loadreject unsupported cue.mod files by inspecting open errors@mvdanc80fdaf
  • cue/astEnsure ImportPath.Canonical copes with host-only paths@cuematthew703c22c

internal40

  • internal/core/adtfilter notifications@mpvl971ee4f
  • internal/core/adtkeep track of notification counts@mpvl18b7df0
  • internal/core/adtrun evaluator tests in parallel@mvdan991e549
  • internal/pkgfix a race when contexts concurrently load std imports@mvdan79798ca
  • internal/core/adtclean up orphaned arcs@mpvla397974
  • internal/core/adtmark inlined nodes for cleanup@mpvle92f16e
  • internal/core/adtprune parent processing@mpvl1b7a71c
  • internal/core/adttrigger more diffs in stats@mpvlf389502
  • internal/core/adtclean up use of Vertex.state@mpvlfb4f507
  • internal/core/adtbasic memory management for evalv3@mpvl4ebd05f
  • internal/core/adtcheck for nil state in parent disjunction@mpvl4638be0
  • internal/core/adtdelay processing of pattern constraints@mpvlab40e7f
  • internal/core/adthandle equal disjuncts@mpvl654008d
  • internal/core/adtdo not set error for nil task state@mpvl495f602
  • internal/core/adtreuse more lets@mpvlb96ed2c
  • internal/core/adtallow unprocessed@mpvl4d894fa
  • internal/core/adtremove filter for let sharing@mpvl521d442
  • internal/core/adtrearrange newNodeContext@mpvlf42b369
  • internal/core/adtmark nodeContext.clone as v2@mpvlb7d9b69
  • internal/core/adtadd benchmark for Issue 3334@mpvl99494a6
  • internal/core/adtmore eagerly update stats in tests@mpvl2862a10
  • internal/ciskip "check git tags" when testing CLs@mvdan5100525
  • internal/ciuse shorter Namespace runner profile aliases@mvdan6f50798
  • internal/cirun tests with GOARCH=386 on protected branches only@mvdan673b49f
  • internal/robustioadd stub js/wasm getFileID implementation@cuematthewc13484f
  • internal/core/adtnormalize how the tests configure the runtime@mvdana6abf3b
  • internal/cuetxtardo not load the root cuelang.org/go CUE module@mvdan7a237eb
  • internal/robustioCopy from upstream and consolidate use@cuematthew4544972
  • internal/core/adtremove unused test code@mvdanee299f0
  • internal/modpkgloadMake Package keep its set of files@cuematthew6405ce0
  • internal/coreremove a few unnecessary trailing Fprintln calls in tests@mvdanc2f57e3
  • internal/lsp/fscacheCreate CUECacheFS and OverlayFS@cuematthew955e7f4
  • internal/cidrop "evict caches" nightly cron job@mvdan206e824
  • internal/cicache staticcheck via nscloud-cache-action@mvdanff4639c
  • internal/ciassume the CI machines are reasonably modern@mvdan7bddda5
  • internal/ciskip the test cache via GOFLAGS=-count=1@mvdand3da405
  • internal/ciswitch to Namespace GitHub Actions runners@mvdanf615383
  • internal/core/adtdelay stringifying nodes in errors via fmt.Stringer@mvdan7e4dff2
  • internal/core/adtensure emptyNode is inert@mpvl2adf5e9
  • internal/core/adtuse custom int set implementation for visited@rogpeppe12ec0ec

mod4

  • mod/modfiledatarename File.ModulePath() to File.ModuleRootPath()@cuematthewb8a14de
  • mod/modpkgloadcorrect calculation of pkg.fromExternal@cuematthewa8ba684
  • mod/modpkgloadcapture faulty behaviour of pkg.fromExternal@cuematthewc237083
  • mod/modpkgloadMake LoadPackages support nil shouldIncludePkgFile@cuematthew19d3abc

Other5

  • tools/trimhandle error cases in API@mpvlbd237a2
  • encoding/jsonschemaparallelize vendor_external.go a bit@mvdan3b10030
  • cmd/cueimplement cue get crd@rogpeppea6df86a
  • encoding/jsonschemaimplement ExtractCRDs@rogpeppee2835d9
  • cmd/cueskip tests using sleeps in short mode@mvdanf7e5f80

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_v0.14.0-alpha.2_darwin_amd64.tar.gz0a23ba2dcce44c649325a8443ddb245473afe694b4b5b3c89b7660cffca8f92d
macOS, Apple siliconcue_v0.14.0-alpha.2_darwin_arm64.tar.gz29c24a9bab97905acc31492869c1512af771146c6d4c8a0441435c19eb88a04c
Linux, x86-64cue_v0.14.0-alpha.2_linux_amd64.tar.gz909b1017b816979c445880fbf8a2c0f2af6707296c61486f138e449da85443e5
Linux, Arm64cue_v0.14.0-alpha.2_linux_arm64.tar.gzf2550e7ed47a01b5552f7ce46a63ac5035a405323ed6358307c5d0131deacb2b
Windows, x86-64cue_v0.14.0-alpha.2_windows_amd64.zipd2952cb87a599b088fd8cfa04046a2a118b87526aa0929bf72734e5780eac711
Windows, Arm64cue_v0.14.0-alpha.2_windows_arm64.zip2b4e3a2a53c4fae13c94f69aca9113d84b9c30127e4a0d29d8c04b7c7d6159ee

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

Install CUE