News

Every release of Hive, the newest first: what changed, in its changelog's words, and who helped.
  1. v0.5.2

    Language

    • A mut argument is lent, not copied, to a callee that can keep none of it — no mut parameter, no thread, no function in its answer — and the answer is copied instead where it could hold that storage and weighs less.

    Tooling

    • hive test runs multiple tests in parallel (or concurrently if you set N higher than your available core count). By default, it uses as many threads as your machine has cores, but you can change the number with --threads N.
    • Large programs compile significantly faster: the compiler builds itself in seconds rather than minutes.
    • The compiler's passes stopped deep-copying the whole symbol table at every lookup, through the lent arguments above.
    • indexOf over Str and Int vectors compares directly instead of through reflection, in every program.
    • A program with no with compiler call skips working out the order such calls run in.
    • Types and callables are looked up by name in an index rather than a scan.
    • Walking the storage a type reaches stops at a shape it has already been through.
    • A build asks go env once instead of up to four times.
    • hive analyze reports the copies the compiler really makes, in seconds rather than minutes on large programs: it names an answer copied in place of its arguments, no longer charges a Result for a copy that never happens, and counts the copy of a mut name bound twice in one body.

    Breaking

    wasis
    two tests in one program writing the same filea file of each test's own, or hive test --threads 1
    a test relying on the node another one listens on, or a service name it registersone test doing both, or hive test --threads 1
  2. v0.5.1

    Language

    • f(x) with compiler runs a call while the program builds and builds its answer into the executable, so reading it costs nothing at run time. Only the entrypoint may write one, its arguments are literals or other such calls' answers, and a panic in it is a compile error at the call.
    • trim(str) is a builtin, answering with the string less the white space at both ends.
  3. v0.5.0

    Language

    • Binary values and patterns are written <<<...>>>, so << and >> are only ever shifts and a shift inside one needs no parentheses: <<<x >> 4, y>>>.
    • map, filter and filterMap take a proc as readily as a func, as long as it does not take its element mut.
    • hive.map.set and hive.map.delete are declared as the procs they are, taking their map mut.
    • A - that opens a line starts a new statement outside brackets, as ( and [ already did; to break a subtraction there, end the line with the -.
    • A T[dyn] parameter takes only a vector declared [dyn], mut or not; T[] is the parameter for any length, and the library's and Go functions' vector parameters are T[].

    Tooling

    • Releases are signed: SHA256SUMS comes with SHA256SUMS.sig, and hive use and the Windows installer refuse a release whose signature does not check. GitHub attests to every file, for gh attestation verify.

    Breaking

    wasis
    <<a, b: UInt16>><<<a, b: UInt16>>>
    x is <<v: UInt4, ...rest>>x is <<<v: UInt4, ...rest>>>
    a line opening with - to continue a subtractionend the line above with the -
    a static vector or a literal passed to a T[dyn] parameterthe parameter is T[], or the vector is declared [dyn]
  4. v0.4.3

    Laws

    • A law follows hive.* calls, builtins and queries, and never runs them: a call that answers the same for the same arguments is worked out on known ones and one unknown otherwise, and any other answers whatever its type allows.
    • async, the await-all and with timeout are followed: a call run alongside is the call, and a wait with a timeout is both outcomes.
    • A law follows a hive.map.Map write by write, so get after a set of the same key is what was set, and a type's law about a map field is kept by set and delete.
    • An interpolation of something unknown is a string a law can still reason about, rather than a law that cannot be followed.

    hive.map

    • hive.map.plus and hive.map.minus are set and delete answering a new map, leaving the one they were handed as it was.
  5. v0.4.2

    Fixes

    • A [ or ( that opens a line starts a new statement, so [a, b] := … under x := "…" is no longer read as an index into the string.
    • A law on known values follows a recursion to its end, and one the prover gives up on is reported as unproved rather than as a counterexample.
    • x / k and x % k by a positive literal are tied back to x, so n % 2 == 1 shows 0 <= n / 2 < n.
    • indexOf past the elements a law knows is one unknown Result, the same for the same vector and value, instead of a law that cannot be followed.
    • A guard on a call is what a type law asking the same call is told, so if unique(pages) { Update(pages) } keeps a law asserting unique(u.pages).
  6. v0.4.1

    Fixes

    • A != between integers is two cases to the prover, below and above: n != 0 beside n >= 0 shows n > 0, and len(v) != 0 shows len(v) > 0. A type law needing 0 < len(items) was refused after if len(items) == 0 { panic … }, with 0 != len(items) among what was known.
    • A law follows indexOf through the elements a vector is known to hold, splitting the case at each one that may be the one sought. It needed every element and the one sought known, so indexOf([], ip) was refused for an unknown ip, and so was indexOf(allowed, "*") under allowed is ["*", ..._].
  7. v0.4.0

    Laws

    • law declares a claim the compiler proves for every value of its parameters, and one it cannot prove is a compile error.
    • A false law is refused with a counterexample, and one nothing settles with the goal left open, the case it is in and what was known.
    • A law cites another by calling it, and is an induction by calling itself on a part a pattern took apart; the compiler tries an induction on each vector parameter on its own.
    • A generic law is proved at every set of types the program uses what it calls at, each copy on its own.
    • A law reaches only code that ends and answers the same every time: no library call, no async, no loop but for each and a counting loop the bounds pass trusts.
    • A law inside a type is kept by every value of it: each construction and each write is proved to keep it, from what that function knows there.
    • A type's laws are known wherever a value of it is read, by function laws and by the bounds pass.
    • A decoder refuses a value that breaks its type's law as Broken, beside Mismatch for a document of the wrong shape.
    • hive indent keeps an empty line around a type's law, which touches only other laws.
    • A law for table <name> is a SQL filter every query on the table carries, read off the query's SQL: in what it reads, changes and deletes, wherever the law's if holds.
    • A row a query inserts or updates has to land inside a table law's filter, by writing one of its column = value parts.
    • table is a keyword only after a law's for, so a name spelled table still compiles.
    • law is a keyword, so a name spelled law no longer compiles.
    • axiom is reserved: any use of it is a compile error, so a later version can give it a meaning without breaking a name.

    Fixes

    • An assignment never lets a write through one name reach another: rec.f = xs copies an immutable xs, as a binding does.

    Breaking

    wasis
    a variable/parameter/field named lawsomething else
    a variable/parameter/field named axiomsomething else
    hive.json.JsonError, hive.crypto.JwtError, hive.net.QueryParamsError and hive.term.FlagError as structsunions of Mismatch and Broken, sharing path, expected and found
    hive.sql.raw(connection, text)hive.sql.unsafe(connection, text), which no table law reads
  8. v0.3.9

    Tooling

    • hive install <entrypoint.hive> builds a program and puts it where a shell finds commands: ~/.local/bin on Linux and macOS, and on Windows %LOCALAPPDATA%\Programs\Hive\bin, put on the user's PATH the first time. --name installs it under another name.
    • hive install --desktop adds a windowed program to the system's app launcher, with its icon, on Linux, macOS and Windows.
    • hive install --target android/arm64 installs the program as an app on a phone connected over USB, through adb.

    The terminal

    • hive.term.print ends no line, and hive.term.println is the one that does, so a prompt or an escape sequence is written as it is.
    • A terminal is read a key at a time: raw stops the echo and the line buffering, readKey answers each key named as hive.ui names it and a paste as one, and size measures the window.
    • Raw mode is put back however a program ends: main returning, a panic, hive.term.exit, or its last window closing.
    • A Windows console paints the escape sequences a program prints, as every other terminal does.
    • hive.term.start runs a program alongside this one: its output read while it runs, its input written, and processKill stopping it with everything it started; whatever is left is stopped when this program ends.

    Command-line flags

    • hive.term.flags() is the program's arguments as one line hive.term.codec() reads back word for word, a word holding a space or a quote quoted again; join(hive.term.args(), " ") split such a word in two.
    • A flag takes a short name: -- Flag as background-task bg; reads -bg as well as --background-task, the shorter of the two names being the short one.
    • hive.term.positional(line) answers with a command line's own words: those before the first flag, and everything after a lone --.
    • The flag codec pairs words knowing the type: a Bool takes the next word only when it is true or false, and a negative number is a value, never a flag.

    Files, pictures and HTTP

    • hive.net.httpOpen reads a response as it arrives: it answers once the headers are in, httpReceiveLine and httpReceive hand the body over piece by piece, and httpClose drops the connection, which is what stops a model generating.
    • hive.image reads PNG, JPEG, GIF and WebP pictures into their pixels, and scale resizes one.
    • hive.file says where the program is: workingDirectory, home, executable, and isDir beside exists.
    • hive.file.asset reads the program's own assets/ folder out of its executable, which is built in whenever a program reads it, window or none.

    Windows and pages

    • hive.ui lays out grids and stacks: grid with columns and span, stack with place, a row that wraps, and minWidth, maxWidth, minHeight, maxHeight and aspect on any box.
    • Text takes a weight, a slant and a length: weight, italic, mono, lines ending in an ellipsis, justify across a text's lines, and paragraph for words in several styles wrapped as one.
    • radio, choices, tabs, tree and progress are widgets, the first four heard through onChoose, on and onToggle.
    • Any widget hears the pointer and the focus: onEnter, onLeave, onPress, onPoint, onRelease, onWheel, onFocus, onBlur, onScroll and onSize; carry and onDrop drag one onto another, and onFile hears a file chosen or dropped.
    • A box looks more ways: gradient, opacity, shadow, ease to bring a change in over time, and fit for a picture.
    • limits sets a slider's or a number's range and step, and InputKind adds Time, DateTime, Email, Tel, Url, Color and File.
    • Icon has 320, drawn from Lucide alike on a page and in a window.
    • A canvas draws more: oval, arc, wedge, curve, cutout, symbol, picture, an edge, a dash and a gradient, and measure says how wide words will be everywhere.

    Scenes

    • A scene has more shapes: torus, capsule, disc, mesh, tube, extrude, lathe, cloud, model, sign, group, and a line with thick.
    • A shape says how it shines: rough, metal, glow, unlit, wire, shadows, and a texture and relief of its own laid by tile; scale sizes every shape.
    • A scene's light is the program's: lamp, spot, sunlight, ambient, a panorama, and a background with no alpha to see through.
    • The camera can orbit, look toward a place, roll, go ortho and set its depth.
    • A scene says what is under the pointer through onHit and onOver, and hands over a PNG of itself through snapshot and onSnapshot.
    • A model or figure plays its file's animations with play(clip, at, loop), and a glTF without a skin, or with many meshes, is drawn whole.

    Fixes

    • onDrag reaches a scene on a page, where the picture drawn over the scene took the press.
    • Writing an element inside a branch or a loop keeps what was proved about its vector: t[k] = 1 in an inner if cost the outer t bounds k, which a write cannot change.
    • A proof is lost when what it was about is replaced: an indexOf over a vector since rebound, and a guard on grid[0] after grid[0] = [1], still proved an index that could be out of range.

    Breaking

    wasis
    an index proved for a vector, or for a row, used after the vector or a row of it is writtenguarded again after the write: writing grid[1] costs the proofs about every row of grid
    hive.term.print(text) ending its linehive.term.println(text)
    --verbose file.txt, an error about file.txtfile.txt is a word, and words go before the flags or after --
    a flag the type does not declare, or a word between the flags, passed overa FlagError
    a value opening with a dash, --name -x--name=-x, or quoted
  9. v0.3.8

    Standard library

    • hive.net.httpWsServe(port, handler, wsHandler) serves HTTP and WebSockets on one port: every request reaches handler as under httpServe, and answering 101 hands that one to wsHandler, which takes it as under wsServe.
    • A hive.net.WsConnection says who is at the far end: conn.address is its host:port, and hive.net.WsConnection(address) builds one with no socket behind it, for a test.
    • hive.sql.run prepares a statement once and runs that one from then on, where the database parsed its text again on every call — about half of what a short SQLite statement cost. hive.sql.raw is not prepared.

    Fixes

    • A query with a row type can be run from a test: its row mapper was written only where the program itself ran the query, and a test that ran one nothing else did failed in Go with undefined: sqlFields_….
    • A hole's name may open with _, as any binding's may: "{_before is (\s*)}" was refused.

    Tooling

    • hive container reads the port httpWsServe serves, as it does the other servers'.
  10. v0.3.7

    Tooling

    • hive lsp is a language server: errors as a file is typed, hover, go to definition, completion, an outline, and reindenting.
    • LSP.md sets it up in Neovim and VS Code, the second through the extension in editors/vscode.
    • hive agents sends a coding agent to the language server: a page on what to ask it, and a Claude Code plugin in .hivedocs/plugin that starts it.
    • A name that is no value is refused where a value was wanted: hive.env.nope, a module or a type on its own, and a variant nobody declared passed hive check and failed in Go.
    • An error inside a string's {...} is reported at the expression, where it was at the string.
    • An error is reported on the line it is on, from every pass: an index at the index, an argument at the argument, a field at the field — where it was the line of the declaration around it.
    • hive check writes no Go: it stops after the checks and the bounds pass.
    • hive analyze no longer scores a program that does not compile: five rejections that were the emitter's alone are the checker's.
    • The runtime is Go under runtime/, with its comments, and ./bootstrap puts it in the compiler; it was strings in the compiler's source.
    • A module of the standard library is declared once, in a stub beside its Go — term.hive beside term.go — where it was three tables in the compiler.
    • A call added to the library and used by the compiler is one build: ./bootstrap has the compiler read the checkout's runtime/, which HIVE_RUNTIME names.
    • scene/build downloads the engine of the latest release where that was built from the same scene/, and --force compiles regardless.
  11. v0.3.6

    Fixes

    • A Linux window holding the mouse no longer looks round many times as far as the mouse moved: X queues what the mouse did before the pointer is warped back to the centre, and every queued event was measured from the centre, so a burst counted its first move once, its second twice and so on; a move is now measured from the event before it.
  12. v0.3.5

    Standard library

    • A scene is drawn by Filament, through an engine of Hive's own in scene/, and three.js is gone.
    • Windows and Linux draw a window with a scene in it themselves, on amd64 (Linux with glibc 2.38 or newer): the engine runs beside the program, on Vulkan or OpenGL, and no browser opens.
    • A page draws with the same engine, as WebAssembly, so a scene looks the same wherever it is shown.
    • hive.audio plays in a window that draws its own scene, through the scene's engine: an MP3 stream, or a recording in MP3, Ogg Vorbis, FLAC or WAV.
    • A row or column wider than the row it sits in is cut to it in a window that draws itself, as it always was on a page.

    Tooling

    • scene/build builds the engine; a release's compiler fetches its own against pinned digests, and HIVE_SCENE_DIST names a directory to take it from instead.
  13. v0.3.4

    Standard library

    • ui.terrain(attrs, wide, cell, heights, colours) is the ground as one surface: a height and a colour (0xRRGGBB) a corner, lit smoothly and finished across the whole of it. What crosses to the window each frame is a name for its numbers, and the numbers only when the name is new.
    • Every figure of one file is one draw, however many there are and however each is posed and painted, and none is culled for standing half off the screen — a figure was a draw each, and vanished whole when its feet left the picture.
    • ui.scale(x, y, z) is a figure's size, as a multiple of the file's own.
    • ui.sun(yaw, pitch) says where the sun stands, and a low one is warmer and weaker; ui.cast(metres) says how far round the eye it casts shadows.
    • A sprite painted see-through is smoke: filtered, and as faint as the paint's alpha. An opaque one keeps its pixels.
  14. v0.3.3

    Standard library

    • hive.term.platform() is the platform a program was built for, goos/goarch.

    Tooling

    • hive-windows.msi comes with every release: it installs hive.exe for this machine's architecture, puts its folder on the PATH, and offers to install Go when there is none.
    • hive use <version> replaces the running compiler with another release's, checked against that release's SHA256SUMS; it reaches back to v0.3.3.
    • The compiler imports a Go file, so hive check src/hivec.hive needs Go on the PATH.
  15. v0.3.2

    Language

    • A pattern on the left of := binds for the rest of the block: Result.Ok(text) := read(path) else { Result.Error(why) { return ... } }, whose else arms take every other value and each has to leave the block.

    Tooling

    • hive indent <path> respells every Hive file's indentation in spaces, a tab to the next multiple of four, and never what a literal holds.
  16. v0.3.1

    Language

    • A Result literal takes its other half from where it is used: half(4) == Result.Ok(2) compares two Result<Int, Str>s, either side round, in assert and out of it. x := Result.Ok(...) takes the error type from the first later use that says it, as at does, and is a compile error when nothing does.
    • A generic parameter reads its variables off a generic type's arguments: count(b: Box<T>) handed a Box<Int> is count_Int, nested and across modules alike. A constructor is aimed by a declared type or a declared return type, so Page([], 1) builds the Page<Entry> it is declared as, and a partial application whose holes leave a type variable unfixed is a compile error.
    • hive.map.set and delete need a mut map, as append needs a mut vector: a func could write its parameter's map, and the caller's map saw half of the write.
    • A Secret is read from a document: T.decode reads a Secret<U> field as the U it holds and keeps it the way bypass does. Writing one out — encode, a message — is still refused.

    Standard library

    • hive.sql matches a row's columns to its fields by name, in any case, as the spec always said; the columns were read by position, so a reordered SELECT swapped two fields of one type in silence. A column that fills no field, or a field no column fills, is a SqlError.Shape naming it — even when no row comes back.

    Tooling

    • Two compilers reading imported Go files at once no longer read each other's: each copies its file under a name of its own, and the reader tool is written atomically.

    Breaking

    wasis
    hive.map.set(m, …) on a name that is not mutdeclare it mut
    x := Result.Ok(v) with nothing saying the error typeResult<T, E> x = Result.Ok(v), or a use that says it
    a SELECT whose column names are not the row's fieldsan AS alias naming the field
  17. v0.3.0

    Language

    • Address<M> says what its service takes: a message of any other type is a compile error where it is sent, and the answer is an M.
    • spawn reads M off its handler, and a handler's third parameter is an Address<M> of its own mailbox type.
    • at takes its type from where it land, or from the first later use that says it — x := at(#Name) then x(Op.Ping()) — and keep it.
    • monitor's notice is one of the watcher's messages.
    • Secret<T> keeps any plain value: hide(T) and bypass(T) make one, and reveal answers the T back.
    • An Int wraps round past MAX and MIN, as the machine's arithmetic does, where it stopped at the edge.
    • A counting loop proves its counter only where it cannot wrap: starting at a non-negative literal, stepping by one, and held below something by a <.
    • Sized numbers: UInt1 … UInt64, Int1 … Int63 and Float32, each kept in the smallest Go type that holds it and wrapping at its own width; Int64 and Float64 are Int and Float.
    • Every number conversion is written: Int(b), Float(f), UInt4(x), or UInt4.checked(x) for a Result; two integers of any sizes still compare.
    • A sized index proves itself against a vector its type cannot outrun, and an unsigned one is never negative.
    • A vector of sized integers is packed where Go has no integer that wide: a UInt4[dyn] keeps each value in four bits.
    • One call never lends a vector and a path inside it: both(v, v[0]) with both parameters mut is a compile error, where the write through v[0] could be lost.
    • Only a keyword's lower-case spelling is reserved: Proc, Query and proC are names like any other.
    • Bitwise operators: &, |, ^, ~, << and >>, with &= |= ^= <<= >>=; a shift counts by an unsigned number or a literal, and two different ones need parentheses.
    • The pipe is |>, which leaves | to bitwise or.
    • Binary patterns: <<version: UInt4, length: UInt16, body: UInt8[length], ...rest>> matches bytes, a Str or an integer field by field, and the same <<...>> builds bytes.
    • 0xFF, 0b1010 and 1_000; a hexadecimal literal past Int's largest is a UInt64.
    • v[h & 255] proves itself against a vector of 256 or more.

    Standard library

    • A library error is a union of what went wrong: FileError, WsError, SocketError, NetError, SqlError, CryptoError, SyslinkError and SecretError have a variant per failure, matched and covered like any other union.
    • An error comes with the module that answers with it, whether or not the program names its type.
    • hive.conv.itf32, and hive.math answers a Float32 when handed only those.
    • hive.time counts milliseconds: now(), dateFrom, dateTimeFrom and format all speak Unix milliseconds.
    • hive.conv.bytesOf and fromBytes cross between a Str and its bytes.

    Breaking

    wasis
    AddressAddress<M>, with M the service's message type
    why.reason == "NotFound"why is file.FileError.NotFound
    SqlError reason "Query"SqlError.Statement
    SecretSecret<Str>, and the library's secrets with it
    hide(text: s), bypass(text: s)hide(value: s), bypass(value: s)
    Int overflow stopping at MAX or MINit wraps round to the other
    for i := 0; i < n; i += 2 { echo v[i] }a guard: if v bounds i
    both(v, v[0]), both mutlend v alone and reach v[0] through it
    x | f, the pipex |> f
    hive.time.now() in secondsin milliseconds — hive.time.now() / 1000 for seconds, as a JWT exp wants
  18. v0.2.18

    Standard library

    • ui.figure(attrs, model, bones, paints) draws a body out of a skinned glTF under assets/: a person, an animal, anything made of bones and a skin. bones is three numbers a bone, each one's turn on top of how it stands in the file, so a program poses a body the way it places a box; paints is a colour a part — a part being one of the mesh's primitives — and a part painted see-through is neither drawn nor casts a shadow, so one file carries a shirt and the skin under it and a program shows the one it wants. Every figure of a file shares its geometry and is one draw.
  19. v0.2.17

    Fixes

    • A code editor whose program shortens its text no longer crashes the native window. ui.code keeps where it was scrolled when its program hands it a new text, and nothing held that to the new text's length: an editor scrolled to line 470 that was handed a text of one line — another file's diff, a file reloaded from disk — asked to paint lines 469 to 0, and the window died with makeslice: len out of range. The scroll is now held to the end of the text before every paint, and the lines to colour can no longer be counted below none.
  20. v0.2.16

    Language

    • switch matches one or more values against arms, each a pattern, a literal or _ per value; the first arm that matches runs.
    • A switch is always exhaustive: a value no arm takes, and an arm that can never run, are compile errors.
    • switch is a keyword, so no name may be spelt as it in any casing.

    Standard library

    • hive.term.readSecretBypass() and hive.crypto.decryptBypass(ciphertext, password) are readSecret and decrypt into ordinary memory, as bypass is to hide, so neither stops at the locked-memory limit.
  21. v0.2.15

    Standard library

    • A box's and a cylinder's edges are round. The bevel is a fifth of the shape's smallest side, at most 35 cm, and is put in by the shader at the size the shape is drawn, so one unit geometry still serves every size: a wall's arris is softened, a bench's or a car's wing is rounded, and a pane or a painted line a few centimetres thick stays crisp. A face's texture runs across its rounded edge, and the sun's shadows are cast by the rounded shape, so no lit edge is shadowed by its own sharp corner.
    • hive.audio plays a recording or a live stream by name: play(name, url, volume) and stop(name). It is its own module rather than part of hive.ui — a program with a window plays the streams it wants there, with the platform's own decoders, picking a stream that drops back up and one refused for want of a gesture on the next key or tap.
    • A scene is lit physically. Toon shading is gone: every surface takes the light its own way (Gloss, Glass and a window's panes reflect the sky, Metal is a metal, turf and tarmac are matt), the sky's colour fills the shadows from above and the ground's from below, and a warm sun carries most of the light, so a lit face and a shaded one are told apart. The tone curve is the shoulder of Khronos's neutral one, which leaves a scene's colours where they were and rolls a sunlit white off instead of clipping it. The rig is still fixed, and a night is still its palette.
    • Surfaces are filtered smoothly, with mipmaps and anisotropy, and redrawn: bricks in a running bond each their own shade, boards with grain, tarmac with aggregate, grass in tufts, windows with white frames and dark glass. What grows and what is poured also varies at a scale of tens of metres, so a field or a road is not one flat colour from a distance.
    • Opaque solids are drawn together. Every one of a kind in a surface is one instanced draw, whatever its size and colour: a city of three and a half thousand shapes went from about 940 draws a frame to about 40, and the page's thread from a whole core to half of one.
    • A scene keeps one texture per surface rather than one per colour, and one geometry per kind rather than one per size. Nine hundred canvases and three thousand geometries a few minutes into a city, never one let go, are now about forty textures and twenty geometries for good; the page and the GPU hold about 300 MB less between them.
    • A window's scene frames are built at their exact size and sent without being copied, where each one was a builder grown twice, copied into bytes and copied again behind the websocket header — about 25 MB a second of garbage at sixty frames.
    • The sun's shadows are redrawn every frame, and their box follows the eye a whole texel at a time. Every other frame was invisible while the sun was weak; with the sun most of the light, anything moving fast was shadowed on alternate frames by where it had been and flickered, and every shadow's edge crawled while the eye moved.
    • A hill is textured. A cone's side is tiled down its slope rather than by its height, and a cone gentler than it is tall is laid from above in metres of the world, so a hill's grain is neither smeared down it nor squeezed into its summit.
    • A scene draws at one pixel per pixel of its box, where a screen at twice the density was four times the fragments and a hundred megabytes of multisampled framebuffer.

    Fixes

    • Speckle is matt. It was a little glossy, and the sun shines as brightly at night as by day while a night's palette is a third as bright, so its highlight stood out more the darker the scene: after dark everybody's head, hair and clothes looked like chrome. It is now nearly as rough as turf, as cloth, skin, fur, sand and snow are.
    • Nothing see-through casts a shadow. A shape with an alpha cast one as black as a wall's, since a shadow map has no half-shadows: the faint pool a car's headlamps throw on the road shadowed the road under it, and a street lamp's halo threw a dark disc over its own pool of light. A glow, a beam or smoke now lets the sun through, and is still shadowed by what is solid.
    • The sky changes colour with the light. It is one texture, redrawn when its colour changes, and three.js keeps the cube it makes of a background for as long as the texture lives — so the sky stayed whatever colour it was first drawn in, a day's blue all night. It is let go and made again on every change of colour.
    • roof is drawn as a roof. It was sent to the page as a box, so every gable ever written came out a flat-topped block.
  22. v0.2.14

    Fixes

    • A test may call something t: the *testing.T a test is compiled to run under was itself named t, so a test declaring a t of its own did not build — Go read every assertion after it as being handed the test's value. It is now __t, which no Hive name can be spelled as.
  23. v0.2.13

    Standard library

    • hive.ui.code(attrs, text, runs) is a code editor: fixed-width, no wrapping, coloured by runs — ink, shade, squiggle, underline, marker (a line's mark in the gutter), band (a line's background) and note (text after a line's end that is not part of the text), each placed by character offsets. It types, selects, scrolls, undoes and pastes as a textarea does; Tab types a tab and Enter keeps the line's indentation.
    • A code editor tells and is told: onEdit is handed what an edit replaced (from, to, text) rather than the whole text, onCaret the selection, onView the lines in view, onFit the columns and rows that fit, onHover and onJump the character under the pointer and under a Ctrl+click, onProbe the one under the pointer while Ctrl is held, and onPaste the clipboard's text. caret(anchor, head, serial) puts the selection somewhere, once per change; numbers, tabSize, fontSize, readOnly and perform(command, serial) (undo, redo, cut, copy, paste, select all) round it out.
    • hive.ui.keys(names) and onKey(f): a widget takes the keys it names — "Ctrl+S", "Escape", ":", or "Any" — and the innermost one around the focus that names a key gets it; nothing else happens to that key.
    • The pointer's own events on any widget: onMenu (a right click), onMiddle, onDouble and onDrag(f), handed how far the pointer moved since the press and whether it was let go.
    • anchor(Anchor.Pointer) and anchor(Anchor.Caret) open an overlay where the pointer was last pressed or under a code editor's caret, never past the window's edge; a press anywhere else is its onDismiss.
    • hive.ui.title(text) on the outermost widget is what the window's title bar says.
    • Requests carried out once per serial: focus(serial) focuses a widget (or the first field in it) and clip(text, serial) puts text on the clipboard.
    • A button's or a field's look: border(n), borderTone(tone), radius(n), ring(false) (no accent ring while focused) and hover(tone) (the colour behind any widget under the pointer; a link with one is not underlined). A button or field in a colour of its own draws no edge unless it asks for one.
    • A row that scrolls across keeps its children's widths, so what does not fit is scrolled to rather than squeezed.

    Fixes

    • The native window no longer crashes at random on Windows: the message DispatchMessage worked on lived on a goroutine stack that could move while the window procedure ran.
    • The native window paints faster: a rounded box fills its middle a row at a time, and a field works out its text and its lines once per change.
    • A link drawn natively keeps a colour of its own rather than taking the accent.
    • A crash in a native window is kept: what it prints is also appended to <temp>/<program>-crash.log, since such a window has no console.

    Thanks

    • Nukeer wrote the code editor, the keys and the pointer's own events.
  24. v0.2.12

    Language

    • Secret is text that must not leak: hide(text) answers a Result<Secret, SecretError> kept in memory that is never swapped to disk, and reveal(secret) is the only way back to a Str.
    • bypass(text) is a Secret that cannot fail, kept in ordinary memory that may be swapped out.
    • hive.Secret and hive.SecretError reach the builtins from a program that declares its own.
    • A Secret is never shown: echo, panic, interpolation, encode and a service message refuse one, or anything holding one, at compile time.
    • == on secrets compares what they hold, in constant time.

    Standard library

    • hive.crypto.encrypt and decrypt keep the plaintext a Secret, under a Secret password, and hmacSha256 and jwtCodec take a Secret key.
    • hive.term.readSecret() answers a Result<Secret, SecretError>, read straight into locked memory, and hive.file.writeSecret and hive.syslink.setKey take a Secret.
    • hive.env.getSecret(name) is get answering a Secret, and hive.crypto.randomSecret(bytes) is randomHex drawn into locked memory, answering a Result.
    • hive.ui.scene now has native antialiasing.
    • hive.ui.touch(name) makes any widget a thumb control. While a finger is on it, a scene's onPad hears pad -1: name is 1 while the finger is down and 0 once it lifts, and nameX and nameY are where on the widget it is, -1 to 1 from the middle and held inside a circle. Every finger is followed on its own, so a stick and a button can be held together, and the widget's box is taken when the finger goes down, so a repaint under it moves nothing. The page neither scrolls nor zooms under one.

    Tooling

    • hive test <directory> runs every test under it that git does not ignore, plus those of anything outside it that a file inside imports, each file's tests once.

    Breaking

    wasis
    hive.crypto.encrypt(text, password)hive.crypto.encrypt(bypass(text), bypass(password))
    hive.crypto.decrypt(sealed, password) → Result<Str, _>hive.crypto.decrypt(sealed, bypass(password)) → Result<Secret, _>
    hive.crypto.hmacSha256(input, key), hive.crypto.jwtCodec(key)bypass(key)
    hive.term.readSecret() → Str→ Result<Secret, SecretError>; reveal the Secret for the text
    hive.file.writeSecret(path, text), hive.syslink.setKey(key)bypass(text), bypass(key)
  25. v0.2.11

    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.
  26. v0.2.10

    Language

    • Services are the language's own. Three builtins start, name and stop them:
    • spawn(handler, state) starts a service, and spawn(handler, state, name) starts one registered under an atom. Either answers Result<Address, hive.syslink.SyslinkError> — "Taken" for a name another service holds — and either takes a handler of both shapes, proc(mut S, M): M or proc(mut S, M, Address): M.
    • at(name) is the service registered under name on this node, and at(endpoint, name) the same one on another. Neither does any I/O.
    • kill(address) stops a service, on this node or another.
    • Address is a builtin type, written with no module; hive.Address is the same type where a program declares an Address of its own.
    • A query may answer with a Table: a header row of column names, then every row as text — the one result SELECT * fills.
    • An Int never wraps. Arithmetic that would pass the largest or smallest Int stays at it — MAX + 1 is MAX, MIN - 1 is MIN, 2 ** 100 is MAX, and -MIN is MAX — where it wrapped around to the other end. Two literals that overflow together, 9223372036854775807 + 1, compile too, where the Go toolchain refused them.
    • A guard covers the rest of its own condition: if v bounds i && v[i] > 0 compiles, and a name a pattern binds is proved by a guard after it.

    Standard library

    • hive.json.JsonValue.Null — a document's null, read and written as one, where a null anywhere in a JsonValue was an error at its path.
    • hive.ui.window(title, view, update) is a handler, and spawn opens it. Opening a window no longer waits for it, so a program may open several: closing one kills its service, closing the last ends the program, and a main that returns while one is open waits for them.
    • hive.task.sleepForever() parks the calling thread for good.

    Fixes

    • A builtin called from an imported module is the builtin, where the entrypoint declaring one of the same name — a test file's own at, say — captured the call.
    • A dead service's name is free before anyone hears it died, so a caller told "Down" can spawn under it straight away.
    • The bounds pass is sound where it was not. An index rebound, redeclared or shadowed by a pattern under its guard, a length lost through an assignment in a loop body, a counter moved inside its loop, and an upper bound with no lower one all compiled and could fail at run time; each now costs the proof.
    • Builtins and library calls take named arguments like any call, by the names specs 13 and 14 give them, and work them out in the order written: join(sep: ",", vector: v), hive.math.clamp(value: x, low: 0.0, high: 1.0). A builtin ignored the names and reached the Go toolchain with the arguments in the wrong places, and a library call silently took them by position.
    • A function value fills only a slot whose calls it can take. A proc(Str[3]): void passed where a proc(Str[]): void was wanted compiled, and failed out of range when the slot handed it one element; a callable with a sized parameter is otherwise a value like any other, its type carrying the promise.
    • Programs the Go toolchain refused are refused by the checker, with a message about the program: binding a call that answers with nothing; declaring a name twice in one block; an expression that is not a call standing as a statement; an operator on a type it is not defined on (< on vectors, - on strings, == on function values); an await-all mixing answer types; with timeout on a void call; a for each annotation the element does not fit; a struct that holds itself by value; main taking or answering anything; a builtin or library call as a value or partially applied; a union field only some variants have, or an assignment into a union's field; two tests with one title.
    • A union value reads its shared fields, where event.at failed in the Go toolchain.
    • sort orders a union by its variants' declaration order, where it left the vector as it was or panicked.
    • A partial application captures what it was given, where it read the variable at each call; named arguments are evaluated in the order written; _ := x compiles, and an async binding nobody reads still runs.
    • A failed assert says what it asserted, and for ==/!= both sides, where it said only "assertion failed".
    • hive test shows what a failing test printed, and only that: a line of go test's own about the runtime package no longer trails the last failure as a blank line, and a printed line keeps the tabs in it.
    • A function that answers with a value cannot end on an assert. One that holds carries on past it, so func f(n: Int): Int { ...; assert n == 0 } fell off its own end and crashed with "hive: unreachable" on exactly the input it asserted; it is now a compile error asking for a return or a panic. A call to hive.term.exit, which never returns, now closes a path the way panic does.
    • An error in an imported module is reported in that module's file, with names as the source spells them (text.pad, not text_0_pad) — from every pass, the emitter's included, and in coverage too; an import that names no file is reported at the import; a file named text-utils.hive compiles.
    • Errors go to standard error, so hive emit x.hive > main.go never writes one into the Go; a usage error exits non-zero with hive: in front; every command refuses a flag it does not take. What a running program's runtime says about itself — a service that crashed or dropped a message, a node gone down, a window that could not open — goes there too, rather than into the program's own output.
    • The runtime: a .env beside the executable is read wherever it is started from; a CSV's byte-order mark is dropped and a separator longer than one character refused; JSON keeps a repeated key's last value in both readers and refuses text after the document; a failed connect is "Connection"; a local name nobody registered answers "NoProc" and a killed service "Down" at once, where both waited out the timeout; listen on a loopback host binds only loopback; assets/ is served to any window, so assets/font.woff2 sets it; hive container exposes no port for a program that serves none, and writes no Dockerfile for a program that does not compile.

    Breaking

    wasis
    hive.syslink.spawn(h, s), hive.syslink.spawnAddressed(h, s)spawn(h, s), answering a Result
    hive.syslink.register(#Name, address)spawn(h, s, #Name)
    hive.syslink.at(#Name) / hive.syslink.on(endpoint, #Name)at(#Name) / at(endpoint, #Name)
    hive.syslink.stop(address)kill(address)
    hive.syslink.AddressAddress
    hive.ui.window(title, view, update, state), hive.ui.windowAddressed(...)spawn(hive.ui.window(title, view, update), state)
    closing a window ending the programclosing the last one does
    an address in a message's digest as hive.syslink.AddressAddress: a node built before this one does not talk to one built after
    a path ending in assertend it in panic or return
    hive.conv.its(_), join(_, ",")a func of your own, partially applied
    proc main(args: Str[]): Intproc main(): void, with hive.term.args() and hive.term.exit(code)
    x := 1 twice in one blockmut x, then x = 2
    #A + #Batoms do not add
    Int overflow wrapping aroundit stops at MAX or MIN
    compile errors, and the runtime's hive: notices, on standard outputon standard error
  27. v0.2.9

    Language

    • A proc with a mut parameter is a value. It can be referenced, partially applied, stored and passed like any other: a function type marks the position mut — proc(mut Str[dyn], Str): void — and a call through the value hands it a mut variable exactly as a direct call does. A partial application leaves a mut position a hole, and func(mut ...) is refused.
    • A call through a function value is held to its type: how many arguments, what each one is, and no named arguments, where only a field's argument count was checked and a local's mistakes reached the Go toolchain.

    Standard library

    • A service's handler is now proc(state: mut S, msg: M): M. It writes its state in place and answers with what it returns, so every request is answered, and the handler is an ordinary proc a test can call.
    • hive.syslink.spawnAddressed and hive.ui.windowAddressed start a handler that takes its own address third, proc(mut S, M, hive.syslink.Address): M, and is handed it every turn.
    • A handler whose state is not mut, whose answer is not one of its own messages, or whose state argument does not fit is refused where it is started.
    • hive.json.JsonValue — a document whose shape is not declared: a union of String, Boolean, Int, Float, Array and Object, whose codec reads and writes the JSON as it is. It is built, matched and compared like any declared type, and may be a field of one. An Object holds its properties as a hive.map.Map<Str, JsonValue> in document order, so hive.map.get(properties, "name") reads one, and a key written twice keeps its place and its last value.

    Performance

    • x = f(x) hands x over without copying it wherever nothing but f's result can keep it — no mut parameter, no thread handed any storage, no function value in the result — nested calls included. A service's world = ticked(world, dt) copied its whole world every message.
    • A proc with no mut parameter is lent storage the way a func is, and a send counts as starting no thread: its message is copied on the way out.

    Fixes

    • A vector handed to a mut parameter loses what was proved about its length, where shrink(v) inside if v bounds 0 left v[0] compiling and failing at run time.
    • A library type the library does not have is refused, where hive.net.Nonesuch compiled and the Go toolchain reported it undefined.
    • sort with nothing to order by is refused. A vector of maps, addresses or function values — or of a type holding one — compiled and panicked when it ran; it now asks for the func that says which of two comes first.
    • A mut value handed to a function value's ordinary parameter is copied, as a direct call copies it.

    Breaking

    wasis
    hive.json.flatten, hive.json.get, hive.json.tablehive.json.JsonValue.decode(text, hive.json.codec()), then a pattern
    encode of a Table, or of a type with a Table field, re-nesting [path, value] rowsa compile error, Str[dyn][dyn] included
    a Table field decoding as a flattened documenta compile error
    proc h(s: S, m: M, from: hive.syslink.Envelope): Sproc h(s: mut S, m: M): M
    hive.syslink.answer(from, v)return v
    hive.syslink.self(from)a third parameter me: hive.syslink.Address, started with spawnAddressed or windowAddressed
    hive.syslink.monitor(from, target, notice)hive.syslink.monitor(watcher, target, notice), watcher an address on this node
    an answer given after the turn endedremoved: a turn answers when it returns
    a request left unanswered failing as NoReplyremoved: every request is answered
  28. v0.2.8

    Standard library

    • ui.onSize(f) — a scene reports how wide and how tall its box landed, as two Ints. It says so when it starts listening and whenever the box changes, which is the one number a view cannot work out for itself.

    Performance

    • A window sends what changed in the document, not the document, which took formula-hive's 96-element HUD from 20.5KB a fold to 2.6KB and from every element parsed to 24.
    • Drawing one costs a fraction of what it did, byte for byte the same: one render of formula-hive's HUD and standings went from 3,819 allocations, 1.67MB and 513us to 1,407, 104KB and 133us.
    • A ui.Attr is 80 bytes rather than 144, which took building a formula-hive frame of 1,495 shapes from 1.97MB allocated to 1.56MB.
    • A window that folds frames draws once a frame. A pad, a key or a message from the network is still folded the moment it arrives, but view runs only for a frame or for something clicked. A moving gamepad was a whole view and publish for every stick that moved: formula-hive went from 120 draws a second to 57 with one in hand, and from 160 collections a second to 80.
    • A scene frame carries the shapes that moved as moves. A shape that is now in a different slot is sent as [dst, src, len] and the page moves the mesh it already built, where a list shifted by one was every later shape sent again and rebuilt. Driving formula-hive went from 35–48KB a frame to 6–16KB.
    • A world is drawn on the frame it arrives in, where it waited one more refresh.
    • Positioned sounds pan with equal power, not HRTF: HRTF convolves every voice, and a racing grid is sixty of them.
    • An Android app collects garbage about once a second rather than once a frame, with GOGC=off and GOMEMLIMIT=256MiB. HIVE_FOLDS, GOGC and GOMEMLIMIT can be given as intent extras, and HIVE_INSPECT lets chrome://inspect attach.
    • HIVE_FOLDS=1 prints fold timings once a second, and HIVE_WINDOW=print prints a window's address instead of opening a browser.

    Fixes

    • A variant no library enumeration has is refused here, where hive.ui.TextSize.Small() compiled and the Go toolchain reported undefined: hive.Ui against a file nobody wrote. A name that is not a type of that module — hive.ui.Nonesuch.Caption() — is refused the same way.
    • An Android app asks for ACCESS_NETWORK_STATE, where the manifest named only INTERNET and every ConnectivityManager call threw for want of it: nothing was written to $HOME/.hive/resolvers and every lookup failed. Installing over an earlier app picks it up.
  29. v0.2.7

    Building

    • hive export <entrypoint.hive> --target android/arm64 writes an installable app. The program is the same one hive build writes; what the handset needs to start it — a WebView host, a binary manifest, a resource table, an aligned archive and an APK Signature Scheme v2 signature over it — the build writes itself. No Android SDK and no network, the way the Windows resource object is written. The application id comes from the entrypoint, so chat.hive is hive.chat, and the signing key is made on first use at ~/.hive/android.key so a later build installs over an earlier one.
    • android/arm64 is the only Android target, being the only one Go links without a C cross-compiler; the other three are refused by name. A program that opens no window is refused too — an app with no window has nothing to show and no way to start.

    Standard library

    • A window is usable with a finger. Where the pointer is coarse, a button, a field and a checkbox stand at least 44px tall and a field's text is 16px — below which a phone zooms the page on focus and never zooms back. A dialog no longer runs wider than the screen it is on. No layout moves: a row is a row at every width, on every device.
    • width on a row or a column is held to the space there is, where a width(460) box on a 360px screen made the whole page 460 wide and every window on a handset opened zoomed out. A canvas, a scene and an image keep the width they asked for, since one wider than the box showing it is what scroll(Horizontal) is for.

    Fixes

    • An import of a library module this compiler does not carry is refused at the import, where it loaded nothing and said nothing: the standard library names no file, so import hive.jsno compiled and the error arrived later against every use of the alias instead of against the line that got it wrong. An import naming something inside a module is answered as that rather than as a mistake about names — no alias makes import hive.ui.View right.
    • hive.syslink.listen answers with the port it bound, where a 0 asking the kernel to choose was handed straight back and node() went on telling peers to dial :0. The host is untouched — which address a machine advertises stays the program's to answer, with hive.net.localAddress.
    • A declaration of your own is what a bare call answers with, where inference handed back the shadowed builtin's result type and every typed position was held to that instead.
    • A declared append, prepend, drop or sort called as a statement is an ordinary call, where it lowered to the builtin's own statement and the Go toolchain refused what came out.
    • hive.append(v, x) stands as a statement of its own while a binding of your own shadows append, where the long name was turned down for the short one's reason.
    • async fires off a declaration named after a builtin, where it was turned down as the builtin.
    • A generic reached only from a test is specialised for it, where no copy was made and the call was reported as a name nothing declared.

    Documentation

    • hive analyze is in the pages hive agents writes, which until now documented every command but that one.
  30. v0.2.6

    Building

    • Every executable carries assets/icon.png as a Windows resource, where before only a windowed program did.

    Standard library

    • ui.InputKind.Range() — a slider running 0–100, whose value and onInput text are that number, and which keeps only the keys that move it while it has focus, so a scene still hears Escape.

    Fixes

    • A Str inside an echoed value is quoted, where [1 2] was the line for [1, 2], ["1", "2"] and ["1 2"] alike. Elements and fields are separated by , too, and a Str echoed on its own is still the line itself rather than a quoted one.
    • A key released while a field has focus is let go, where a scene ignored keyup as well as keydown while typing and a key held as focus moved into a field stayed held after it came up.
    • An inset no longer shrinks the picture behind it, where under ui.grain it set the renderer's viewport rather than the render target's and left the canvas at the buffer's size, drawing the whole blown-up world into its bottom-left corner.
  31. v0.2.5

    Language

    • toTable(cells, wide) — a flat Str[] cut into a Table of rows that wide, the last row holding what was left. A width written as a literal below one is a compile error; a computed one that turns out below one hands back an empty Table.
    • URL as <name>; — a field annotation naming the query parameter the field is read from and written as.
    • Flag as <name>; — a field annotation naming the command-line flag, without its dashes, the field is read from and written as.
    • Codecs are ordinary values — held in a variable, passed, stored or returned, since a hive.codec.Codec<E>'s type says its format.

    Standard library

    • hive.net.urlEncode(text) percent-encodes every byte but RFC 3986's unreserved characters.
    • hive.net.queryParamsCodec() reads and writes a flat type as a query string, without the leading ?.
    • hive.term.codec() reads a line of --name value flags, quoted words kept together, into a flat type and writes them back.
    • hive.codec.Codec<E> names the error its decoding fails with, and each module with a codec owns its own: hive.json.JsonError, hive.crypto.JwtError, hive.net.QueryParamsError and hive.term.FlagError.
    • hive.time.dateFrom(year, month, day) and dateTimeFrom(year, month, day, hour, minute, second) — a stamp for a date you name, the same kind of Int now() answers. Both build in local time, and a field out of range carries into the next: dateFrom(2026, 3, 0) is February's last day.
    • hive.time reads the current instant field by field: year, month, day, weekday (1 Monday – 7 Sunday), lastDayOfMonth, hour, minute, second and millisecond. millisecond is a sub-second field, not a millisecond clock — a reading is still seconds.

    Fixes

    • A standard library call is held to how many arguments it takes, the way a declared func is. The table behind hive.<module>.<name> recorded a type for the positions a module had something to say about and stopped, so a miscount — hive.math.pi(1.0), hive.file.read("a", "b"), hive.map.set(m, "a") — reached the Go toolchain and was reported there, against a file nobody wrote. It is a whole signature now, so its length is the arity.
    • Argument types are held more closely for the same reason: every hive.math call claimed three Floats, hive.map and hive.syslink claimed nothing, and each now says what it takes.
    • One of the library's own types — hive.net.HttpResponse(200, body: ..., ...) — is checked against its fields, so a named argument may come in any order.

    Breaking

    wasis
    hive.codec.Codechive.codec.Codec<E>
    hive.codec.DecodingErrorhive.json.JsonError, hive.crypto.JwtError or hive.net.QueryParamsError
  32. v0.2.4-pre1

    Language

    • A func may call a proc. It still cannot declare a mut parameter, which is what keeps it from writing to storage its caller can see.
    • A backtick string reads \{ as a literal {, ahead of backtick strings gaining interpolation.

    Standard library

    • hive.ui.scene — grain(px) draws the world into a buffer that many pixels on its short edge and blows it up unfiltered; bits(n) keeps n bits of colour a channel, dithered rather than rounded. Together: a handheld's picture.
    • hive.ui.scene — a sprite(attrs, image, wide, tall) shape: a picture from assets/, standing on its place, always facing the viewer, tinted by paint.
    • hive.ui.scene — a Talk voice: struck like Impact and Chime, unpanned like Music. For anything said about a scene rather than in it, which pinned to a place is a voice the listener walks away from.
    • A program shipping assets/font.woff2 has its window set in that typeface.

    Fixes

    • hive.ui.scene — a scene that shrinks no longer strands its sound slots. They sit past the end of the solids, so the frame's trim loop never reached them and a stale voice fought the live one for its name: silence, wherever a program renamed a track mid-run.
    • A callable that takes a mut parameter is refused as a value — f := grow, grow(_, "x") — where it used to reach the Go toolchain and be refused there.
    • The loop-invariant finding asks whether the callee really answers off its arguments, rather than whether it is a func. One that prints, reads the clock or reaches any of those through another call is no longer advised as the same answer every turn.
    • A stdlib module used only inside a test is now carried into the test build.
    • A name an is binds now reaches the rest of its condition outside an if too.
  33. v0.2.4

    Language

    • A backtick string interpolates {expression} the way a "..." string does, and \{ is its literal {.
  34. v0.2.3

    Language

    • A call on a thread of its own is handed a copy of every argument, made on the caller's side before the thread starts.
    • Two mut names share their storage, not their names. Writing through either still reaches both, but rebinding one no longer rebinds the other.

    Standard library

    • hive.crypto.jwtCodec(secret) — a token is a codec: encode signs the claims, T.decode checks the signature and the times before reading them.

    Fixes

    Breaking

    wasis
    hive.crypto.jwtSign(claims, secret)encode(claims, hive.crypto.jwtCodec(secret))
    hive.crypto.jwtVerify(token, secret) then T.decodeT.decode(token, hive.crypto.jwtCodec(secret))
    a bad token as a CryptoErrora hive.codec.DecodingError
    b = [...] rebinding a too, after mut b = ait rebinds b alone
    async f(v) writing through the caller's vit writes through a copy
  35. v0.2.2

    Language

    • Pipes. x | f(a) is sugar for f(x, a): nums | filter(isEven) | join(" ").
    • encode(value, codec) and T.decode(text, codec) replace the JSON-specific pair. Neither names a format — the codec does, and it must be named at the call.
    • A variant standing as a value is refused: Shape.Point() builds one, Shape.Circle(_) is a function value.

    Standard library

    • hive.file.writeSecret(path, contents) — write leaving the file readable by its author alone: 0600 on Linux and macOS, a protected access list on Windows. Settled before any of the secret is in the file.
    • hive.codec — new. Codec and DecodingError, so a second format is a second module rather than a change to the language.
    • hive.json — gains codec().
    • hive.ui.scene — a roof shape and a Panes surface. turn is now yaw, pitch and roll about the shape's own axes.

    Windowed programs

    • A hive.ui.window is an application-mode browser window on a profile of its own — no address bar, no tabs, its own process. Closing it ends the program.
    • Its icon is assets/icon.png beside the entrypoint, embedded by the build.
    • On Windows a built windowed program links without a console and carries its icon as a PE resource.

    Breaking

    wasis
    hive.json.encode(v)encode(v, hive.json.codec())
    T.fromJson(text)T.decode(text, hive.json.codec())
    hive.json.JsonErrorhive.codec.DecodingError
    fromJson reserved as a field namedecode is instead
    Shape.Point as a valueShape.Point()
    turn as world X, Y, Zyaw, pitch, roll
  36. v0.2.1

    This release predates the changelog.

  37. v0.2.0

    This release predates the changelog.

  38. v0.1.11

    This release predates the changelog.

  39. v0.1.10

    This release predates the changelog.

  40. v0.1.9

    This release predates the changelog.

  41. v0.1.8

    This release predates the changelog.

  42. v0.1.7

    This release predates the changelog.

  43. v0.1.6

    This release predates the changelog.

  44. v0.1.6-pre1

    This release predates the changelog.

  45. v0.1.5

    This release predates the changelog.

  46. v0.1.4

    This release predates the changelog.

  47. v0.1.3

    This release predates the changelog.

  48. v0.1.2

    This release predates the changelog.

  49. v0.1.1

    This release predates the changelog.

  50. v0.1.0

    This release predates the changelog.