Repository navigation
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::httpand@voyd-lang/web, including typed
routing and extraction, middleware, static files, cookies, limits, and
cooperative timeouts. - Integrate host-language packages through
@externalfunctions and effects,
generated TypeScript contracts and WIT, automatic Node discovery, and static
browser registries. - Render Markdown through the new
@voyd-lang/markdownreference 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::fetchhas been removed. Migrate outbound requests to
std::http::client.- VX apps now expose
app() -> Program<Model, Msg>and use
program({ init, step, view, subscriptions })plusnext(...). The previous
explicitstate(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. SetruntimeDiagnostics: trueto 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.0All 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
- #642 Add functional VX DOM runtime, docs, and playground examples
- #643 Implement typed VX boundary
- #645 Add typed boundary SDK exports
- #646 Decouple VX state and app APIs from compiler internals
- #648 Fix labeled object inference for VX program calls
- #649 Fix recursive optional object resolution
- #650 Support recursive optional boundary DTOs
- #644 Add bootstrap scaffolding for VX starter apps
- #627 Add web proposals
- #667 Adopt semantic web proposal API style
- #668 Implement standard-library HTTP
- #669 Update web framework handler extraction proposal
- #670 Implement the web framework package
- #671 Fix imported effect handler codegen metadata handling
- #672 Add hermetic web static-file tests
- #673 Implement web framework phase 2
- #674 Add the SSR app bootstrap
- #676 Add async task support to VX DOM and the host runtime
- #678 Add compiler-safe VX task and program mapping APIs
- #682 Rewrite the VX reference docs
- #683 Expand VX runtime commands and subscriptions
- #684 Fix overloaded return-only type argument inference
- #688 Make string UTF-8 exports return an isolated copy
- #695 Rebuild mini-wikipedia with Voyd and VX
- #696 Fix full
EventOptionsWasm lowering - #710 Add external package adapters and Markdown integration
Language, standard library, and correctness
- #641 Add a Voyd quick reference for compiler and std contributors
- #656 Fix
use ...::alleffect-op collisions and restorestd::log - #665 Add the
enummacro to the standard prelude - #679 Reject subsuming labeled overload definitions
- #680 Allow object literals to satisfy optional structural fields
- #681 Refactor overload resolution scoring
- #690 Fix generic escaped closure continuations
- #691 Enforce self return types for init methods
- #692 Fix free operator resolution in impl methods
- #694 Add
std::fs::remove - #697 Add
Eqsupport forStringandStringSlice - #699 Reject reference-bound default parameters
- #700 Lower effectful default-parameter continuations
- #702 Make default-argument presence first-class
- #704 Improve parser diagnostics for missing commas and invalid module access
- #709 Refactor the compiler surface-syntax boundary
Compiler and runtime performance
- #640 Disable runtime diagnostics by default
- #651 Remove standalone pure direct-call inlining
- #652 Optimize local tail effect handlers
- #653 Remove scalar object local replacement
- #654 Fix optimized tail effects across dynamic dispatch
- #655 Optimize closed receiver dispatch
- #657 Add tier-two optimizer passes and benchmarks
- #658 Remove inline aggregate fixed-array storage
- #659 Add
std::Arraylen/atfast paths with value-object support - #660 Add safe array-loop fast paths for bounds checks
- #661 Add whole-program escape-analysis facts and benchmarks
- #662 Consume escape facts for scalar replacement
- #663 Fix safe array-loop proof invalidation
- #664 Preserve mutable scalar aggregates in call lowering
- #685 Reuse dependency semantic snapshots for app edits
- #686 Add SDK compiler performance attribution
- #698 Optimize the compiler pipeline end to end
- #701 Harden the optimizer scorecard against peak-RSS flakiness
- #703 Modularize and harden the compiler optimization pipeline
- #706 Improve release optimization and scalar boundary exports
- #707 Eliminate recursive static-effect ABI overhead