Skip to content

Nova Oracle 0.1.2 (alpha)

Pre-release
Pre-release

Choose a tag to compare

@unitcraft unitcraft released this 03 Nov 04:34
· 443 commits to main since this release

Not recommended for installation. Use Nova Oracle 0.1.4.

Nova Oracle 0.1.2 (alpha)

Nova Oracle 0.1.2 is the second quality patch of the Oracle line. Like
0.1.1 it does not change the language surface; it closes the next batch of
defects found by building a real product on the toolchain, including the
long-standing scheduler roots of the pipe hangs. Every fix is pinned by a
conformance fixture that is red on 0.1.1.

Highlights — what got fixed

Checker and codegen

  • Indexing the result of str.split(sep) is a clear checker error now
    (item 42): the checker silently accepted parts[0] and the code generator
    died with an INTERNAL-PANIC pointing into generated C. Per D238/D249 a lazy
    iterator declares no @index; the new [E_NO_INDEX_IMPL] names the
    iteration form (for part in text.split(sep)).
  • A generic sum with mixed-payload variants compiles (item 8,
    Output[I] enum Send(I) | Log(str)): both constructor doors route to the
    monomorphized instance instead of a never-defined static dispatcher and a
    void*-boxed payload.
  • Turbofish record construction gets an actionable error (item 54):
    [E_GENERIC_TURBOFISH_LIT] names the canonical bare form (D55
    construction), which compiles and runs already.
  • Option-bound generic inference desanitizes the pointer id (found by the
    product's workaround-mark sweep): inferring S solely from a protocol method
    returning Option[S] bound a mangled Nova_ChatState_p into every S
    position — broken C, and a cross-file infection through the test-unit
    inlining channel. Turbofish-less chat-form generics now infer like their
    alula counterparts.
  • A detach consume binding survives across match arms (task 268's live
    catalog): the fiber body's unconditional var_types removal killed the
    parent entry after the first arm; the second arm's capture came out empty
    (use of undeclared identifier). Scoped save/restore, gated to fiber
    bodies.
  • Chan[Option/Result/record] code-generates (task 268): two nested-mono
    doors — the dependency edge trimmed a _p that was part of a node name,
    and pointer-field payloads needed forward typedefs in their own instance.

Runtime (item 19, the pipe hangs)

  • Root 2 fixed — a parked pipe fiber is always freed: the orphan-drain
    cancel is now periodic, and the cancel walk adds an idempotent direct
    wake. The child-pipes spike (400 rounds) self-exits across 18/18
    consecutive runs under load; race strikes are recovered by the next cancel
    tick.
  • Root 3 diagnosed, not fixed — and we say so: the exact lost-wake window
    is captured by a tracing harness (NOVA_DIAG_ITEM19_R3=1, shipped, off by
    default) and documented at the G1 store in nova_sched.h: a preempted
    parker's blind WAIT overwrites a ready latch. A minimal fix was implemented
    and REJECTED by an A/B under load (it converted rare hangs into segfaults);
    a proper scheduler design pass is filed. Until it lands, root 2 guarantees
    the process exits even when root 3's window is hit.

Known limitations

  • Everything from 0.1.1 applies (alpha, API not frozen, stop-the-world GC).
  • Root 3 of the pipe wake loss remains: a rare hang window turns into a
    delayed self-exit, not a crash; product-side workarounds may be retired
    only after the scheduler design pass.
  • Unit-variant constructors of generic sums without arguments still have no
    mono route (found during item 8; filed).
  • nova build of programs ICEs in sem/channel.nv:812 in some shapes
    (pre-existing on 0.1.1, unchanged here; filed).

Links