Repository navigation
Hew 0.11.2
Hew adds module-private fields on named records, expands std.cache and std.random, removes superseded top-level compiler aliases and speeds up both native release compilation and runtime execution.
Language and tooling
-
Named records support module-private fields. Private field access is enforced at the declaring module, including in projected record constructors, and respected in editor completions, hover documentation and syntax highlighting.
-
Top-level
hew compileandhew playground verifyhave been removed. Usehew buildto produce an executable, replacehew compilewithhew tool compile(same arguments; barehew file.hewkeeps its existing artifact paths) and replacehew playground verifywithhew tool playground-verify. -
The formatter preserves source grouping, macro input and comments more faithfully.
-
Editor and LSP tooling colour contextual failure syntax, end import folding spans at their semicolon and reuse document line offsets and test source snapshots to reduce repeated work.
Standard library and codecs
-
std.cache.Cachefields are now module-private. Migrate direct field reads and writes tocapacity(),ttl()andset_limits(capacity, ttl).std.cachealso addstouch(key),eviction: .Lrufor least-recently-used eviction, faster pruning that avoids scanning live entries andcache:prefixes onCacheErrordisplay messages. -
std.streamresumes newline scans across chunked input instead of rescanning buffered bytes from the start. -
std.randomruns weighted draws in Hew across both native and browser targets. -
Arena.containsandArena.removeno longer requireT: Clone. Standard library fixes also move owned vector elements without cloning, preserve numeric errors at representation limits and preserve UTF-8 byte and scalar boundaries in HTTP and streams. -
std.text.markdownandhew doc(vendoredpulldown-cmark) normalize empty Markdown heading ranges so callers trim heading spans safely. -
YAML decoding preserves indentation in multiline strings.
-
Live tooling includes a portable vibration monitor built with generated services.
Performance and runtime reliability
-
Large static
--releasebuilds (or--opt-level 2without-g) on Linux x86-64 (glibc) can generate native objects in parallel when sufficient CPU and memory headroom,ld.lldandllvm-objcopyorobjcopyare available. Hew verifies linked source ranges before using the split object. -
Native code generation places repeated owned child frames in their parent, omits unused coroutine root storage and empty actor request visitors, reduces coroutine cleanup code, skips heap acquisition for values without backing and records authored function names in DWARF for split-coroutine frames.
-
Ownership verification and type checking share CFG, cleanup, ancestry and dependency state across walks and reuse ownership proofs for wide aggregates.
-
Runtime improvements refund a single backing without a temporary map, acquire shared copy backing once, skip empty static callable release walks, retain gossip intent until send, keep the first reply waiter inline and skip cycle scans for actor waits with an escape.
-
Unrecovered supervised crash counts are verified consistently across native and WASI execution, and unstarted remote sends keep blocking sends queued or report local capacity and shutdown errors when another worker cannot start.
Security, documentation and builds
-
Updated
urlto2.5.9to addressRUSTSEC-2026-0592(nestedblob:URL stack overflow inUrl::origin()) and alignedregex1.13.2across Hew and its fuzz targets. -
Core examples and language documentation have been refreshed with focused, runnable programs and updated module import guidance.
-
Native runtime builds use distinct Cargo outputs to avoid Windows artifact collisions, and CLI documentation describes Windows foreground console interrupt behaviour and forced termination of macOS runs.