Skip to content

Conversation

@chaokunyang
Copy link
Collaborator

@chaokunyang chaokunyang commented Jan 31, 2026

Why?

Enable deterministic auto-generated type IDs for FDL/IDL (with optional aliases) so generated code can register by ID without requiring manual IDs for every type.

What does this PR do?

  • Add compiler support for auto-generated type IDs (MurmurHash3), package/type aliases, and the enable_auto_type_id file option; propagate generated IDs into IR and codegen comments/registration.
  • Update xlang type metadata/resolvers to carry a separate user type ID (C++/Go/Dart/Java) and adjust type-info encoding and registration flows accordingly.
  • Improve Go codegen output path resolution by reading go.mod when present.
  • Expand docs and tests (compiler + IDL roundtrip) to cover auto IDs and aliasing.

Related issues

#3099

Does this PR introduce any user-facing change?

  • Does this PR introduce any public API change?
  • Does this PR introduce any binary protocol compatibility change?

Benchmark

@chaokunyang chaokunyang force-pushed the use_generated_hash_for_generated_class_as_name branch from 89b4b06 to 2bef18d Compare February 3, 2026 14:27
@chaokunyang chaokunyang changed the title feat(compiler): use generated hash for generated class as id feat(compiler): use generated hash for generated class as id and refactor type user type id encoding Feb 3, 2026
@chaokunyang chaokunyang changed the title feat(compiler): use generated hash for generated class as id and refactor type user type id encoding feat(compiler): use hash for generated class as id and refactor type user type id encoding Feb 3, 2026
@chaokunyang chaokunyang changed the title feat(compiler): use hash for generated class as id and refactor type user type id encoding feat(compiler): use hash for generated class as id and refactor user type id encoding Feb 3, 2026
@chaokunyang chaokunyang force-pushed the use_generated_hash_for_generated_class_as_name branch from 782502f to d4939f0 Compare February 3, 2026 15:15
@chaokunyang chaokunyang changed the title feat(compiler): use hash for generated class as id and refactor user type id encoding feat(compiler/runtime): use hash for generated class as id and refactor user type id encoding Feb 3, 2026
@chaokunyang chaokunyang merged commit 9891bde into apache:main Feb 3, 2026
114 checks passed
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