Repository navigation
Nova Oracle 0.1.3 (alpha)
Pre-releaseNot recommended for installation. Use Nova Oracle 0.1.4, which consolidates all fixes since 0.1.0.
Nova Oracle 0.1.3 (alpha)
Nova Oracle 0.1.3 is the third quality patch of the Oracle line. The
headline: print/println now run through the Io effect — the
canon-exact placement (both spec examples annotate a println-calling fn
with Io), with the handler provisioned ambiently by the D431
#default_handler (real_io), and mockable via with Io = mock_io(...).
Plus io.read_line, the bare-None unification, a batch of workaround-sweep
closures, and — the unplanned harvest — seven latent compiler defects the
Io wave surfaced, all fixed with pins.
Highlights
The language
print/println→Io(owner decision, canon-exact): signatures
carryIo(extern "nova" fn println(...items []any) Io -> ());
enforcement per D62 rule 1 (--strict-effectsnames a missingIowith
an exact hint). The lowering is a synthesis: args become one interpolated
string through the existing display engine (honest
E_INTERP_NO_DISPLAYfor user types instead of the old%lldgarbage),
then a single dispatch through theIo.write_outop with the lazy D431
default. The ~190-LOCnova_print_*dispatch family is gone. Behavior
notes: a multi-arg call is one write;println(char)prints UTF-8; a
user type without@displayis a clean compile error.io.read_line[R Read]— one line over theReadprotocol (up to and
including the first\n, consumed but not included;Ok("")= EOF).
Byte-wise reads keep the documented fill-semantics ofread_inintact
(line input works against the fill-only stdio primitive). Mock-covered.
The compiler
- Item 126 (both doors + remainder): a bare-
Noneif-branch unifies
with the other branch'sOption[X]— in the checker's join, in the
value emitter, and (the remainder) in the storage probe: one shared
decision pipeline where hand-maintained copies had diverged twice. - Items 16/17/18/20/25 of the product's workaround sweep closed or
evidenced: fluent assign-back (16), Atomic-in-value-record closure
evidence (17, D447), consume bindings without C preprocessor macros
(18), the stdout drain past 4 KB (20), nested module resolution (25). - Item 49 (resolution half): a call the checker resolved to a concrete
fn no longer gets hijacked into a foreign same-named generic's mono arm. - Module-local name preference for bare variant names when several
sums declare them (the keystone of the 49/29 family).
Latent compiler defects surfaced by the wave — all fixed with pins
The Io wave put std.io into every compile unit, stress-testing the
single-CU name machinery. Seven latent defects (any program importing
std.io alongside same-named types could have hit them since 0.1.0):
- A match arm's inner variant tag resolved first-wins by import
order — a same-named variant in another sum silently won (toml's
ParseTomlError.UnexpectedEofvs io'sErrorKind.UnexpectedEof).
Fixed: the operand's/scrutinee's declared type is authoritative
(together with defect 7 below). - A foreign function's local of a common name (
base) clobbered the
flat CU-wide type map — a user fn of that name emitted as an
undeclared local read (n96). @field-hoisted snapshot locals emitted without a type when the
declaring module wasn't emitted in the CU.- A value-record named through an Option/Result typedef had no struct
definition in the C (field has incomplete type). - The same for an erased generic base used by value in a method stub.
@/@fieldoutside any method silently compiled into an
undeclarednova_self— now the honestE_SELF_OUTSIDE_METHOD
diagnostic with a negative-conformance pin.- The
fail(e)handler-literal param was bound asnova_strat any
Ewhilethrowstores the typed pointer — the handler read a
wrong-typed payload. Fixed by inheritingEfrom thewithheader,
plus an operand-firstisoperator.
Also in this tag (between 0.1.2 and 0.1.3)
- A self-hosted-compiler CI contour: an oracle-free
carina-gate
workflow now judges every main move, with a corpus-tier measurement of
the self-hosted compiler over the full examples corpus, and a ratcheted
seed-drift guard (HEAD vs the pinned bootstrap seed) so language drift
is published, not silent. - Native-build tooling for the self-hosted line and several
flakes-guard hardenings around its test harness.
Mark-sweep note
The fixes here are what a batch of documented workaround marks in a
downstream product was waiting for: 72 ORACLE-WORKAROUND(N) marks there
are now removed, and the simplified code lands in that product repository
through its own acceptance process. Each compiler fix in this release is
pinned by a conformance fixture, so the removals are verifiable against
this release.
Distribution
Re-issued twice; the tag now points at
64f82b6db:
- the first upload's binaries self-reported
0.1.0(the internal
Cargo version was never bumped since the first release);- a same-file variant-owner tie broke
nova-postgres(a registry
entry of its own — the bareComplete { ... }literal resolved to a
diagnostic twin type instead of the expected one; now a tie stays
ambiguous and the expected type decides).
All assets below are rebuilt from the final tag —nova --version
prints0.1.3and the satellite-package suite passes. If you
downloaded earlier, the checksums differ; the ones below are
authoritative.
nova-oracle-0.1.3-windows-x86_64.zip— SmokeTest PASSED (hello project
built and run from a clean folder outside the monorepo).nova-oracle-0.1.3-linux-x86_64.tar.gz— smoke-tested in Docker
("Hello from Linux Nova 0.1.3", via the new print path;
nova --version→0.1.3inside the image).nova-oracle-0.1.3-src.tar.gz—git archiveof the tag.SHA256SUMS— the three archives.
Known limitations
- Everything from 0.1.1/0.1.2 applies (alpha, API not frozen,
stop-the-world GC). - Items 14/21/22 (the C-emitter
NovaValue_Outputname collision) and
item 19 root 3 (a rare lost wake of the main fiber): design passes
completed (variant A mangling qualification; the epoch-latch
scheduler fix with the A/B protocol) — the implementations are filed
as the first candidates of the next cycle. - Item 49's pin awaits the erased-generic thunk echo; the interpreter's
effect machinery stays on the capture path (compile-path printing is
fully on Io). - Unit-variant constructors of generic sums without arguments still have
no mono route;nova buildICEs insem/channel.nv:812in some shapes
(both pre-existing, filed).
Links
- Quickstart
- Previous: Oracle 0.1.2