Skip to content

refactor: take the engine's doors from x/core/doors - #226

Merged
jonruttan merged 3 commits into
mainfrom
refactor/shared-doors
Nov 10, 2026
Merged

jonruttan merged 3 commits into
mainfrom
refactor/shared-doors

Conversation

@jonruttan

@jonruttan jonruttan commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

x-lang v0.44.0 carries lib/x/core/doors.x (x-lang#1138): the engine's hot doors under one set of names. This moves x-python onto it.

  • 37 door binds in 12 files now come from (import x/core/doors ...).
  • A %-name only its own file uses is renamed to the module's name (int+, str-byte-ref, obj-ref ...).
  • A name another file or a spec reads, or one in the bundle's own vocabulary, stays as an alias of the door, e.g. (def fx+ int+); it is the same object, so calls cost the same.
  • Kept: (convert to) binds (convert is registered by a library, not an engine door), and binds inside function bodies.

Verification: this PR's CI runs the whole suite. Merged with main after #228 (the v0.46.0 environment fix); main's new python/lexer.x and python/syntax.x are swept too, and their two specs (C0-syntax, C0-env-frames) pass locally on v0.46.0.

🤖 Generated with Claude Code

jonruttan and others added 3 commits November 4, 2026 17:27
The bundle's 37 door binds across 12 files now come from x/core/doors
(x-lang#1138). A local name used only in its own file becomes the
module's name; a name other files or specs read, or one in the bundle's
own vocabulary, stays as an alias of the door, costing the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…core/doors

The two files main added bind str byte-ref, char ->int and str byte-len
themselves; they import them like the rest of the bundle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonruttan
jonruttan merged commit 77e7010 into main Nov 10, 2026
12 checks passed
@jonruttan
jonruttan deleted the refactor/shared-doors branch November 10, 2026 02:49
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