Skip to content

feat(js): microjs accent and typescript support - #4

Draft
fffonion wants to merge 41 commits into
masterfrom
subagent/es51-abuf176-restored
Draft

fffonion wants to merge 41 commits into
masterfrom
subagent/es51-abuf176-restored

Conversation

@fffonion

Copy link
Copy Markdown
Contributor

No description provided.

fffonion and others added 30 commits October 10, 2026 02:32
Real Owned-dispatch __compat_array_owner module (allocate/register/
collect/resize) with factory-before-return registration, scope-local
weak roots, independent pending/registered/payload quotas, fixed-four
safety points and transactional resize, plus per-VM initializer/stats.
No Core/SDK/CLI/default changes.
…ected Add and hygienic helpers

Explicit opt-in TypeScript reference-array mode over B1 owned runtime.
Logical number[] lowers to private B1-backed carrier; physical schemas
stay carrier/Number, hints project logical number[].

Numeric Add in explicit mode for statically proven numerics (other than
pure Int+Int, strings stay) runs through existing checked Div(_,1.0)
into existing Float Add; local/indexed ++ and += likewise, --/Sub stays.
Un-annotated numeric returns infer Number so partition index projects.
Prelude parsed separately and merged as AST items (no source-text
concat); helper authority from predeclared indices with duplicate
rejection. No Core/SDK changes.
…-owned default thunks/carriers/getters for imported omitted defaults; fixes int fill, alias sort, dual five-sort
…ginal args; honest lexical/extensionless boundaries

- Local-slot numeric projection now requires a current immutable guest
  origin; bare Callable(Number) schemas no longer coerce host values,
  so typed host aliases preserve Int vs Float like direct calls.
- Guarded default aliases stage original once-evaluated args;
  guest numeric projection applies only to the taken guest branch,
  fallback observes original ABI after public slot replacement.
  Snapshot stays schema-free for the identity guard.
- Boundary diagnostics: lexical-value defaults and extensionless imports
  remain pre-existing unsupported/resolver rejections with honest
  rejection controls and diagnostic comments; no failing desired-success.
- TDD: host ABI RED Int(0) vs Int(1); fallback RED Int(2) vs Int(1);
  both GREEN plus full b2r3/focused/workspace-parallel gates.
…our-module acceptance

Thin pd-vm-compat-run gains a leading Compat-only
--typescript-reference-arrays selector. Default route keeps
main_with_services exactly; the selected route strips only the first
token and passes the rest unchanged to Core run_with_args with the
exact selected-mode catalog/options and a fresh per-VM production
factory (four array/math descriptors plus the accepted scalar error
adapter and generator-proven Core numeric builtins, capture
certification, per-VM owned-array init).

tests/typescript_reference_cli_tests.rs adds 29 selected-mode tests:
selector-first semantics, four unchanged upstream modules via
importing callers plus a joint caller, fresh Node oracle agreement,
four genuine import-native SSA paths, logical/physical typehints,
VMBC/AOT artifact Unavailable/refusal safety with scalar/generator
success preserved, factory quota/reset/Live-owner boundary, selected
REPL behavior and default regression controls. README documents the
selector; CI gains a targeted selected-mode smoke.
fffonion and others added 11 commits October 17, 2026 03:02
Implement the bounded P3-A static binding profile with hoisting, ordered function initialization, assignment roots and runtime-tag typeof. Preserve whole-code admission and explicit unsupported environment/exception paths.

Maintain native forced-GC verification with a local 32 MiB worker and a finite 900s AOT child deadline; retain source, guest quotas and semantic/resource assertions.
Preserve strict/sloppy role recording and diagnostic behavior while satisfying rolling-stable Clippy collapsible_match. Local nine source-bound gates and 111 distinct product cases pass; remote Rust 1.99.1 confirmation remains separate.
Preserve Empty/Undefined completion, rooted return handoff and branch-local type-name cache dominance. Share repeated UTF-16 and fresh undefined emission without changing the Core ABI. Add interpreted/native regressions and matched typeof GC controls.
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