Skip to content

Support inline and grouped Python Extension API v2 calls - #66

Merged
denikryt merged 18 commits into
mainfrom
feature/extension-inline-grouped-materialization
Nov 21, 2026
Merged

denikryt merged 18 commits into
mainfrom
feature/extension-inline-grouped-materialization

Conversation

@denikryt

Copy link
Copy Markdown
Owner

Summary

Add inline and grouped materialization for Python Extension API v2 functions.

Python-backed functions can now generate nodes directly in the calling node tree or create a separate Node Group using the __inline__ modifier.

from packages import math

a = math.sin(1.0)                    # Inline (default)
b = math.sin(2.0, __inline__=False)  # Separate Node Group

Both modes work in root scripts and inside .nf functions.

Changes

  • Added __inline__ support for physical Python-backed extensions, with inline materialization enabled by default.
  • Added grouped materialization with typed inputs, outputs, and support for DynamicResults.
  • Implemented stable group identity and transactional updates, preserving existing references across recompilation.
  • Added isolated root compilation to prevent Python backends from modifying user-owned nodes directly.
  • Implemented strict graph transfer, preserving node properties, sockets, links, and dynamic items.
  • Preserved root interfaces, structural I/O, rollback, and Undo behavior.
  • Added safe cleanup of unused extension groups and their generated resources.
  • Added regression tests and characterization baselines covering both materialization modes, nested calls, dynamic results, and Capture Attribute with Rotation.

Closes #61

Related to #53.

@denikryt
denikryt force-pushed the feature/extension-inline-grouped-materialization branch from f643f4c to 4c1b1c8 Compare November 21, 2026 21:32
@denikryt
denikryt merged commit 8b1036c into main Nov 21, 2026
6 checks passed
@denikryt
denikryt deleted the feature/extension-inline-grouped-materialization branch November 21, 2026 22:10
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.

Support inline and grouped materialization for Python-backend extension calls

2 participants