Seven-Streams opened a new pull request, #720: URL: https://github.com/apache/tvm-ffi/pull/720
`NamedTypeSchema` now records the byte facts the C++ registry already publishes for every reflected field (size/alignment/offset, static default or factory value, structural-eq flag, frozen-ness), and `ObjectInfo` records the ancestor chain plus the type's own `sizeof` (`None` for a type without its own metadata entry, whose inherited size says nothing about the type). This gives non-Python backends the memory-layout inputs they need without a second reflection pass. Language-neutral infrastructure for such backends: - `//` marker syntax for `.rs` files (the block parser was already syntax-driven); - directory scans visit only the active generator's `source_exts`, so one tree can hold stub files for several languages without one target rewriting another's files; - `--target` choices follow the generator registry instead of a hard-coded list; - drop the unused `generate_helpers_block` protocol method. No generator other than `python` is registered yet. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
