Skip to content

Compress Lua descriptor and dispatch names with -opt - #1496

Merged
Frotty merged 2 commits into
masterfrom
codex/lua-name-compression
Oct 19, 2026
Merged

Frotty merged 2 commits into
masterfrom
codex/lua-name-compression

Conversation

@Frotty

@Frotty Frotty commented Oct 19, 2026

Copy link
Copy Markdown
Member

Lua -opt shortened IM globals and functions before backend lowering, leaving source names in class descriptors, field storage, dispatch slots and declarations introduced by the Lua backend. Assign final names after lowering and dispatch resolution so those declarations and the matching slot reads and bindings are compressed together.

Preserve native/extern names, entry points, @preserveName and string callback targets. Reserve identifiers referenced by raw Lua literals rather than rewriting arbitrary code or strings; converting those helpers to structured AST bindings remains in BACKLOG.md.

Validation: 353 tests passed on Windows across LuaNameCompressionTests, LuaTranslationTests, OptimizerTests and DeterministicChecks. Coverage includes four generic sibling dispatch implementations, both Jass and Lua execution, runtime metadata, preserved-name collisions, ExecuteFunc/native calls and repeated-compilation determinism. Linux and macOS have not been run locally.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T07:40:29.932917Z df3f98b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Frotty

Frotty commented Oct 19, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50acff4232

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty

Frotty commented Oct 19, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: df3f98bcc1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty
Frotty merged commit 51eb419 into master Oct 19, 2026
2 checks passed
@Frotty
Frotty deleted the codex/lua-name-compression branch November 25, 2026 08:53
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