Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Swift Bindings] Remove loading dylib during bindings projections #2914

Open
1 of 3 tasks
jkurdek opened this issue Jan 9, 2025 · 0 comments
Open
1 of 3 tasks

[Swift Bindings] Remove loading dylib during bindings projections #2914

jkurdek opened this issue Jan 9, 2025 · 0 comments
Labels
area-SwiftBindings Swift bindings for .NET

Comments

@jkurdek
Copy link
Member

jkurdek commented Jan 9, 2025

Currently during bindings generations a dylib is loaded to provide information about types. Among others it is queried to provide blittability, size, stride and alignment. Calling into dylib during binding time is not secure and can be problematic when generating bindings for a different platform. We should implement an algorithm which will provide us with information about types without loading a dylib.

Steps:

  • Calculate size, stride, alignment
  • Determine blittability
  • Determine frozenness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-SwiftBindings Swift bindings for .NET
Projects
None yet
Development

No branches or pull requests

1 participant