Skip to content

Add C++20 modules support #902

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

Open
gruenich opened this issue Feb 17, 2025 · 2 comments
Open

Add C++20 modules support #902

gruenich opened this issue Feb 17, 2025 · 2 comments

Comments

@gruenich
Copy link
Contributor

Is your feature request related to a problem? Please describe.
C++20 modules make it easier to use C and C++ libraries from C++ code.

Describe the solution you'd like
We need to add some C++ and CMake code. Main question if a merge request has the chance to be accepted or if it is out of scope for SuiteSparse.

Describe alternatives you've considered
Maybe it should only be applied to C++ libraries and not for C libraries

Additional context
Some useful links:
https://arewemodulesyet.org/documents/

There is also an initiative with central tracking of hundreds of libraries: https://arewemodulesyet.org

@DrTimothyAldenDavis
Copy link
Owner

I would be open to considering it. I would need to wait a bit. I'm working on a few major releases and lots of minor updates, to GraphBLAS (a minor update to 9.4.5 and a major update to 10.0.0), LAGraph, and SPEX. Some of those changes are not yet reflected in the current dev2 branch on this repository, since each of those 3 packages have their own primary repositories.

Would the C++20 modules be added to each individual package? Or would they appear outside of them, say in a top level SuiteSparse/CPPmodules, or something?

@gruenich
Copy link
Contributor Author

I don't plan to start working on this now. Thus, I cannot answer your legitimate questions.

There is a bigger initiative to make C++20 modules more popular, https://arewemodulesyet.org . As far as I can see, there is no clear path for C libraries. If you want, I can mark the SuiteSparse entry as "Help wanted" and see where this leads to.

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

No branches or pull requests

2 participants