Skip to content

Fix native console and scalar call parity - #13

Merged
bytetroll merged 2 commits into
masterfrom
codex/native-runtime-parity
Oct 26, 2026
Merged

bytetroll merged 2 commits into
masterfrom
codex/native-runtime-parity

Conversation

@bytetroll

@bytetroll bytetroll commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Native programs rejected exit(7) unless the caller explicitly cast the argument to i32, and could not use the standard console input or flush functions. Normalize declared scalar representations before direct native dispatch and implement managed line input and output flushing for AOT and JIT. Ny and Matrix can now use these public calls across execution routes. Integer widths normalize using existing storage semantics; floating-to-integer conversions require an explicit cast, preserving provider checks such as fractional-duration rejection. Raw NIL and provider ABI checks remain strict.

Also correct VM cumulative allocation statistics when arrays grow. Successful appends count once, including through aliases, while writes, frees, and collection preserve the cumulative total. Extend Aperture coverage for native stdin and EOF failures, and record remaining GC API, analysis and input limitations in findings F54–F55.

Validation on Linux x86-64:

  • All 477 CTests passed in the clean SDK build.
  • Copied SDK: 960 consumer executions across source/binary libraries, 419 argument/ABI checks, 316 console checks, and 100 Aperture checks passed.
  • All 81 real VS Code extension-host checks passed against the copied SDK.
  • Activated the validated SDK locally, retaining the previous generation.

Stacked on #12. Native text still rejects embedded NUL; public native GC control/statistics and broader scalar argument diagnostics remain follow-up work. Windows console behavior is not yet qualified.

@bytetroll
bytetroll marked this pull request as ready for review October 26, 2026 20:42
Base automatically changed from codex/aperture-memory-profile to master October 26, 2026 20:46
@bytetroll
bytetroll merged commit 8bbd1c0 into master Oct 26, 2026
6 checks passed
@bytetroll
bytetroll deleted the codex/native-runtime-parity branch October 26, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant