Repository navigation
refactor: take the engine's doors from x/core/doors - #226
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.(import x/core/doors ...).%-name only its own file uses is renamed to the module's name (int+,str-byte-ref,obj-ref...).(def fx+ int+); it is the same object, so calls cost the same.(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