Repository navigation
Conversation
Convert module/function/enum registration from runtime traversal to compile-time generation: - `use Dagger.Mod.Enum` now generates `__register__/1` (builds TypeDef directly from pre-computed member data) and `__dependencies__/0 => []` - `defn` macro captures doc/deprecated/cache attrs before `def` clears them, accumulating into `@function_compile_data` - `@before_compile` in `Dagger.Mod.Object` generates `__register__/1` (full TypeDef construction with fields, functions, constructor, args, cache policies, descriptions) and `__dependencies__/0` (pre-computed list of user-defined object/enum dependencies) - `Registry.register/1` uses `__dependencies__/0` when available, falling back to runtime `FunctionDef` traversal for legacy modules - `Dagger.Mod.Module.define/3` and `TypeDef.define/3` use `__register__/1` when available, falling back to the existing runtime define_object/ define_enum paths https://claude.ai/code/session_01AJTBsnMvLqQ5JRtQXGeGm6
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.
Convert module/function/enum registration from runtime traversal to
compile-time generation:
use Dagger.Mod.Enumnow generates__register__/1(builds TypeDefdirectly from pre-computed member data) and
__dependencies__/0 => []defnmacro captures doc/deprecated/cache attrs beforedefclearsthem, accumulating into
@function_compile_data@before_compileinDagger.Mod.Objectgenerates__register__/1(full TypeDef construction with fields, functions, constructor, args,
cache policies, descriptions) and
__dependencies__/0(pre-computedlist of user-defined object/enum dependencies)
Registry.register/1uses__dependencies__/0when available,falling back to runtime
FunctionDeftraversal for legacy modulesDagger.Mod.Module.define/3andTypeDef.define/3use__register__/1when available, falling back to the existing runtime define_object/
define_enum paths
https://claude.ai/code/session_01AJTBsnMvLqQ5JRtQXGeGm6