Skip to content

Nova Oracle 0.1.3 (alpha)

Pre-release
Pre-release

Choose a tag to compare

@unitcraft unitcraft released this 07 Nov 22:01
· 311 commits to main since this release

Not 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
    carry Io (extern "nova" fn println(...items []any) Io -> ());
    enforcement per D62 rule 1 (--strict-effects names a missing Io with
    an exact hint). The lowering is a synthesis: args become one interpolated
    string through the existing display engine (honest
    E_INTERP_NO_DISPLAY for user types instead of the old %lld garbage),
    then a single dispatch through the Io.write_out op with the lazy D431
    default. The ~190-LOC nova_print_* dispatch family is gone. Behavior
    notes: a multi-arg call is one write; println(char) prints UTF-8; a
    user type without @display is a clean compile error.
  • io.read_line[R Read] — one line over the Read protocol (up to and
    including the first \n, consumed but not included; Ok("") = EOF).
    Byte-wise reads keep the documented fill-semantics of read_in intact
    (line input works against the fill-only stdio primitive). Mock-covered.

The compiler

  • Item 126 (both doors + remainder): a bare-None if-branch unifies
    with the other branch's Option[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):

  1. 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.UnexpectedEof vs io's ErrorKind.UnexpectedEof).
    Fixed: the operand's/scrutinee's declared type is authoritative
    (together with defect 7 below).
  2. 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).
  3. @field-hoisted snapshot locals emitted without a type when the
    declaring module wasn't emitted in the CU.
  4. A value-record named through an Option/Result typedef had no struct
    definition
    in the C (field has incomplete type).
  5. The same for an erased generic base used by value in a method stub.
  6. @/@field outside any method silently compiled into an
    undeclared nova_self — now the honest E_SELF_OUTSIDE_METHOD
    diagnostic with a negative-conformance pin.
  7. The fail(e) handler-literal param was bound as nova_str at any
    E
    while throw stores the typed pointer — the handler read a
    wrong-typed payload. Fixed by inheriting E from the with header,
    plus an operand-first is operator.

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:

  1. the first upload's binaries self-reported 0.1.0 (the internal
    Cargo version was never bumped since the first release);
  2. a same-file variant-owner tie broke nova-postgres (a registry
    entry of its own — the bare Complete { ... } 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
    prints 0.1.3 and 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.3 inside the image).
  • nova-oracle-0.1.3-src.tar.gz — git archive of 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_Output name 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 build ICEs in sem/channel.nv:812 in some shapes
    (both pre-existing, filed).

Links