Skip to content

v0.2.11

Choose a tag to compare

@github-actions github-actions released this 01 Oct 19:01
· 120 commits to master since this release
0fd5a67

Language

  • Library modules need no hive. prefix: task.sleep(10) is hive.task.sleep(10). A declaration, import, local or parameter of the same name comes first, and hive.<module> always reaches the library.
  • Patterns nest: foo() is Result.Ok(Foo.Bar(["foo/{padding}/bar", ...rest])) compiles to exactly the && chain it abbreviates. A variant's field may also hold a literal, as in Result.Ok(3).
  • Exhaustiveness follows nested patterns, vector lengths ([] and [x, ...rest]) and Bools, and a chain that falls short names a value no branch takes.

Standard library

  • Windows and Linux draw a hive.ui.window themselves — every widget but scene and inset, with no browser and no C compiler. The layout is modelled on Clay by Nic Barker.
  • Such a window behaves like a desktop one: selection and copying, context menus, undo, draggable scroll bars, resizable textareas, and PNG, JPEG, GIF, WebP and SVG images.
  • Screen readers and input methods work in it: UI Automation on Windows, AT-SPI on Linux, and IBus or Fcitx5 for typing.
  • hive.ui.webview(title, view, update) is a window that is always a page.
  • hive.syslink.setKey(key) sets this program's cluster key for every connection after it, held in memory only.

Tooling

  • hive analyze lists dead code: what nothing reached from main or a test names, and parameters never read.

Examples

  • 23-every-widget: every hive.ui widget but the 3D ones, in one window.

Fixes

  • A member of a value with no fields, such as n.size on an Int, is a compile error rather than a Go toolchain failure.
  • A chain testing p.left then p.right no longer counts as exhaustive; it compiled and panicked with hive: unreachable.
  • A variant pattern must match its subject's type, where a mismatch reached the Go toolchain.

To bootstrap from this release, seed/pinned.txt becomes:

tag:    v0.2.11
asset:  hivec-linux-amd64
sha256: 00d566cfa65c68d69ff79f53d758f790d872403600401cbee178a74107121d66