Repository navigation
v0.2.11
·
120 commits
to master
since this release
Language
- Library modules need no
hive.prefix:task.sleep(10)ishive.task.sleep(10). A declaration, import, local or parameter of the same name comes first, andhive.<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 inResult.Ok(3). - Exhaustiveness follows nested patterns, vector lengths (
[]and[x, ...rest]) andBools, and a chain that falls short names a value no branch takes.
Standard library
- Windows and Linux draw a
hive.ui.windowthemselves — every widget butsceneandinset, 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 awindowthat 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 analyzelists dead code: what nothing reached frommainor a test names, and parameters never read.
Examples
23-every-widget: everyhive.uiwidget but the 3D ones, in one window.
Fixes
- A member of a value with no fields, such as
n.sizeon anInt, is a compile error rather than a Go toolchain failure. - A chain testing
p.leftthenp.rightno longer counts as exhaustive; it compiled and panicked withhive: 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