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

Consider using swig-fortran to access C++ STL #84

Open
rweed opened this issue Jan 5, 2020 · 2 comments
Open

Consider using swig-fortran to access C++ STL #84

rweed opened this issue Jan 5, 2020 · 2 comments
Labels
topic: interface Interfacing with other libraries or languages

Comments

@rweed
Copy link

rweed commented Jan 5, 2020

I'll just throw this out as an alternative to building stdlib from scratch. Seth Johnson at ORNL has a project that can generate SWIG bindings to the C++ STL for Fortran. (see https://github.com/swig-fortran). I ran across his project a few months back and thought it interesting but didn't do a deep dive into what issues where involved in using it for things like lists etc. More info in the following two PDFS
Johnson_Automated_Fortran-C++_Bindings_ArXiv.pdf
siam-cse-johnsonsr.pdf

@certik
Copy link
Member

certik commented Jan 5, 2020 via email

@rweed
Copy link
Author

rweed commented Jan 5, 2020

Actually, I personnaly prefer a "pure" Fortran implementation if possible. I just put this forward as something that could be an option to provide some of the containers etc. needed for ADTs etc. if there is no consensus as to the best way to do it in Fortran. I agree it should only be an option (and only if its impracticle or time-consuming to do it in Fortran).

@awvwgk awvwgk added the topic: interface Interfacing with other libraries or languages label Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: interface Interfacing with other libraries or languages
Projects
None yet
Development

No branches or pull requests

3 participants