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

Using source generators for interop #4136

Closed
JeremyKuhne opened this issue Oct 19, 2020 · 3 comments
Closed

Using source generators for interop #4136

JeremyKuhne opened this issue Oct 19, 2020 · 3 comments
Labels
enhancement Product code improvement that does NOT require public API changes/additions tenet-performance Improve performance, flag performance regressions across core releases

Comments

@JeremyKuhne
Copy link
Member

This issue is for tracking usage of source generators for interop.

The Runtime is considering implementing P/Invoke support through source generators: https://github.com/dotnet/runtime/blob/master/docs/design/features/source-generator-pinvokes.md

We should also be exploring is implementing common patterns via source generators. Things like:

  • Handling common buffer usage patterns (buffer growth, movement from stack to heap, etc.)
  • Generating resource scoping boilerplate (see our various scope types and how we switch between class and struct for tracking proper disposal in debug builds)
@JeremyKuhne JeremyKuhne added enhancement Product code improvement that does NOT require public API changes/additions tenet-performance Improve performance, flag performance regressions across core releases labels Oct 19, 2020
@JeremyKuhne JeremyKuhne added this to the 6.0 milestone Oct 19, 2020
@JeremyKuhne
Copy link
Member Author

Related issues/pulls:

dotnet/runtime#32091

@elachlan
Copy link
Contributor

elachlan commented Nov 7, 2022

@RussKie Should we close this issue because of #7445?

@RussKie
Copy link
Member

RussKie commented Nov 7, 2022

Yes, thank you for finding this.

@RussKie RussKie closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2022
@ghost ghost removed this from the .NET 8.0 milestone Nov 7, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Product code improvement that does NOT require public API changes/additions tenet-performance Improve performance, flag performance regressions across core releases
Projects
None yet
Development

No branches or pull requests

4 participants