Skip to content

Voyd 0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Jul 16:55
· 379 commits to main since this release
5e5a001

Voyd 0.3.0 - Gaia BH1

Voyd 0.3.0 turns the runtime and compiler work from the first two releases
into a practical full-stack web platform. It adds a typed VX application
runtime, HTTP client and server APIs, a web framework, server rendering and
hydration, project scaffolding, external package adapters, and a substantially
stronger release optimizer.

Highlights

  • Build typed browser applications around Program<Model, Msg>, with commands,
    subscriptions, async tasks, DOM patching, hydration, and server rendering.
  • Scaffold a VX SPA or full-stack SSR application with voyd bootstrap.
  • Build HTTP services with std::http and @voyd-lang/web, including typed
    routing and extraction, middleware, static files, cookies, limits, and
    cooperative timeouts.
  • Integrate host-language packages through @external functions and effects,
    generated TypeScript contracts and WIT, automatic Node discovery, and static
    browser registries.
  • Render Markdown through the new @voyd-lang/markdown reference adapter as
    sanitized structured nodes, without passing HTML strings into the DOM.
  • Call exported Voyd functions through automatic typed SDK boundaries, with a
    direct fast path for scalar signatures and validated serialization for DTOs.
  • Produce smaller and faster release builds through new whole-program compiler
    passes and Binaryen closed-world optimization.

Breaking changes

  • std::fetch has been removed. Migrate outbound requests to
    std::http::client.
  • VX apps now expose app() -> Program<Model, Msg> and use
    program({ init, step, view, subscriptions }) plus next(...). The previous
    explicit state(id:) API has been removed in favor of stable generated
    call-site IDs.
  • Runtime diagnostics and Binaryen validation are now opt-in for unoptimized
    compilation. Set runtimeDiagnostics: true to restore them.
  • Default values on reference-bound (~) parameters are rejected. Prefer an
    overload or copy the value into callee-owned storage.

Install

npm i -g @voyd-lang/cli@0.3.0

All directly consumed Voyd packages should be updated together.

Performance

The release optimization profile now enables closed-world GC optimization and
uses a larger set of compiler-owned whole-program facts. Across the six-scenario
optimizer scorecard, raw Wasm fell from 162,288 to 151,474 bytes (-6.66%) and
gzip size fell from 56,469 to 54,824 bytes (-2.91%). The representative
vtrace workload became 6.71% faster in the closed-world comparison.

Typed scalar exports also bypass the serialized DTO wrapper when the public
type maps directly to the physical Wasm signature. For a minimal
pub fn main() -> i32, the typed release artifact fell from 17,111 bytes to 783
bytes and warm runPure dispatch improved from 0.901 µs to 0.146 µs per call.

All merged pull requests

This release contains 68 merged changes since v0.2.0.

VX, web, HTTP, and examples

Language, standard library, and correctness

Compiler and runtime performance

Tooling, tests, and dependencies