Repository navigation
Nova Oracle 0.1.1 (alpha)
Pre-release
Pre-release
Not recommended for installation. Use Nova Oracle 0.1.4, which consolidates all fixes since 0.1.0.
Nova Oracle 0.1.1 (alpha)
Nova Oracle 0.1.1 is a quality patch release of the Oracle compiler
line (Oracle compiles to C and then to a native binary — there is no
interpreter; see the 0.1.0 notes
for the language overview). 0.1.1 does not change the language surface: it
fixes sixteen defects carried by 0.1.0, several of them silent
miscompilations found while building a real product (CrewHarness/Canopus)
on the toolchain. Every fix below is pinned by a conformance fixture that
is red on 0.1.0 and green on 0.1.1.
Highlights — what got fixed
Silent miscompilations (the worst class)
- A bare record-variant constructor whose name is also a type name
(Ok(Message { ... })where another package declares aMessagesum)
was typed as the unrelated type — the PostgreSQL driver and Polaris
could not be linked into one program (spike item 30). The literal now
keeps its own sum; a record (or alias-to-record) of the same name keeps
the record reading. - A qualified variant pattern/literal
Sum.Variant { ... }beside a
same-named record was judged by the last segment: no tag check, fields
read straight off the sum struct,nova_intbinders (item 48). The
owner sum decides; a bare pattern resolves against the scrutinee's own
sum first (the N279 discipline). - A nested generic pattern
Some(Answer(reply))boundreplyto NULL
— the check passed, the program printed garbage (item 10): the mono
payload type was not registered for variant sub-patterns. It is now. - Record-pattern match bindings were untyped, so an
import std.text
in a neighbour module hijacked a variable namedtextin another module
(item 32) — and, as a side effect of this fix, a latent cross-module
read ofDuration's privatenanosfield instd/concurrency/retry
surfaced and was corrected to the public@compare/@max.
Checker and parser
- Protocol-bound generic inference reaches let bindings (items 12/13):
ro r = run_once(...)overM Machine[S, B]no longer loses the local's
type — 28 explicit-turbofish workarounds in the product become
unnecessary. Cases with no inference anchor still require turbofish
(deliberately unchanged). for x in [literal, ...]over enum variants, record constructors
and nested arrays now compiles (items 33/36/52, one root cause).- A record literal inside brackets of a
matchscrutinee parses
again, andif cond { a } else { b }as a call argument still does
(item 51 + its hotfix; both pinned). - A module in a second-level folder may declare its full package path
again (item 25): declaration and import paths finally agree. leak_ab: a peer test-file'sa/bparameters no longer leak into
the prelude's member fast-path when a file is embedded (item 47).
Standard library and runtime
fs.create_dir_allon the in-memory test FS now creates every parent
level (mock_fs parity with the real FS, item 55); a barecreate_dir
under a missing parent isNotFound, like the real FS.- SHA-256 no longer rebuilds its round-constant table on every round:
a PBKDF2/SCRAM login on a debug (-O0) build drops by 15-40% (item 57);
digests are unchanged (pinned). - A pipe-callback race is closed (item 19, root 1 of 3): the
operation registration is cleared before the done-store, so a late NULL
store can no longer erase the next operation's registration and park a
fiber forever. The child-pipes spike (400 rounds) passes 13/14 under
full load; the remaining hang is the cancel fan-out (root 2), filed for
a dedicated scheduler workstream — production workarounds stay until
then. NOVA_WORKSPACE_ROOTenv override for the (currently parked)
Carina build path; the three nova-cli tests pin the workspace root
explicitly instead of relying on temp dirs.
Distribution
- Release assets on this page:
nova-oracle-0.1.1-windows-x86_64.zip,
nova-oracle-0.1.1-linux-x86_64.tar.gz,nova-oracle-0.1.1-src.tar.gz,
andSHA256SUMS. - The Windows archive was built by
scripts/package-release.ps1 -SmokeTest
(clean extraction,hello.nvcompiled and executed outside the monorepo). - The Linux archive follows the 0.1.0 docker recipe (
docker/release/) and
was smoke-tested in the image: a clean project built and ran (Hello from Linux Nova 0.1.1). - A C compiler is required (Nova compiles to C). See
docs/guide/quickstart.md.
Known limitations
- Everything stated in the 0.1.0 limitations applies unchanged (alpha,
API not frozen, stop-the-world GC, spec in Russian, serdeflatten
not synthesized, package acceptance boundaries). - Known defects intentionally not in this release (each with a
reproduction inspikes/env/of the product repo):str.split()
indexing still passes the checker and fails in codegen (item 42);
pipe hangs under heavy load remain possible until the scheduler
cancel fan-out lands (item 19 roots 2-3);mutparameter reassignment
of a heap type still changes only the local name (item 46). - The product-side
ORACLE-WORKAROUND(N)marks for the fixed items are
removed in the product repository after this release, not in it.
Links
- Quickstart
- Language tour
- spec/decisions/
- Previous release: Nova Oracle 0.1.0 (alpha)