Skip to content

Refactor C++ codegen for submodules#5535

Draft
JasonAtClockwork wants to merge 2 commits into
masterfrom
jlarabie/cpp-submodule-codegen
Draft

Refactor C++ codegen for submodules#5535
JasonAtClockwork wants to merge 2 commits into
masterfrom
jlarabie/cpp-submodule-codegen

Conversation

@JasonAtClockwork

Copy link
Copy Markdown
Contributor

Description of Changes

The initial design I made was rushed, brittle, and wired into the front facing path. This follows the work on for TypeScript to use the internal codegen instead. Will need to apply after #5486

  • Removed the added generation code from the public facing codegen
  • Added targeted generation for the submodule recursion to the internal codegen
  • Updated the tagged enum equality check to be less broad for deserialization check of a submodule

API and ABI breaking changes

No breaking changes intended.

Expected complexity level and risk

3 - Still complicated on the generation for C++ to allow the circular reference cleanly and allow for deserialization check.

Testing

Until we have end to end the testing is light to make sure modules build and generate

  • Full Unreal test suite
  • C++ Blackholio
  • A simple throwaway project

aasoni and others added 2 commits July 10, 2026 13:39
- TypeScript server SDK: runtime API for module mounting (submodules),
  including namespaced dispatch, ctx.as helpers for cross-namespace calls,
  and HTTP handler delegation
- TypeScript client codegen: namespace-aware table/reducer/procedure
  exports and query builder for submodule tables and views
- Migrations: auto-migrate support for submodule tables, views, and
  indexes; AddConstraint step added alongside NamespacedIdentifier-based
  migration steps
- CLI: namespace support for `spacetime call` and `spacetime sql`
- C++/C# bindings: autogenerated RawSubmoduleV10 types
- module-test-ts: submodule integration test (lib_submodule)
@JasonAtClockwork JasonAtClockwork changed the title Jlarabie/cpp submodule codegen Refactor C++ codegen for submodules Jul 13, 2026
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.

2 participants