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

Provide Windows installers for stdlib #553

Open
awvwgk opened this issue Oct 12, 2021 · 4 comments
Open

Provide Windows installers for stdlib #553

awvwgk opened this issue Oct 12, 2021 · 4 comments
Labels
platform: Windows Build issues specific to the Windows platform

Comments

@awvwgk
Copy link
Member

awvwgk commented Oct 12, 2021

Description

Since Windows has no actual package manager installing of software is usually expected to be possible by an installer. So far we haven't explored this road for distribution of stdlib.

Possible Solution

Find out how we can automatically create an installer using GitHub actions

Tools:

Additional Information

Related fortran-lang/fpm#580
See post by Vipul @FortranFan at https://fortran-lang.discourse.group/t/2001/33
Simply Fortran's stdlib package: https://packages.simplyfortran.com/package/92.html
Packaging stdlib for MSYS2: https://fortran-lang.discourse.group/t/2005

@awvwgk awvwgk added the platform: Windows Build issues specific to the Windows platform label Oct 12, 2021
@JAMMIASHOK
Copy link

Hi,
I have a small suggestion or you can take it as a request.
The best thing to do with windows for now is this:
Make a separate repository for stdlib-windows
Strip off all the preprocessor stuff - just keep only the modules with hard coded integer or real or character or array or derived types. We can just download the stdlib -> Type the "use stdlib" statement and use whatever subroutines. This will encourage users a lot - because they have something running at hand and they can easily add to the functionality. Yes I understand that generics are important and we need to cater to different data types .... But for short term please just use plain Fortran features - and let the more generic one incubate and grow in time and let time decide whether Fortran will have generics ...
Now it's like instead of improving the tooling around Fortran, we are producing tools that are difficult to use.
I have a long desire to use stdlib and contribute some linear algebra and differential equations and so on... But just seeing the installation process and Fypp - I feel that better to write my own small subroutines.
Remember that Boost and Eigen - two gold standard libraries for c++ are so successful because - they are just header files. You just have to type #include"Eigen/core" and everything works. This is what windows users expect. Of course I have so much appreciation for the work you are doing for Fortran community, I cannot demand. But this is just a request.
When people are contributing to stdlib, they can submit two versions - one bare version where everything is hard coded and another using Fypp. This way both the versions can keep growing.
I hope you understand

@awvwgk
Copy link
Member Author

awvwgk commented Oct 26, 2021

Strip off all the preprocessor stuff - just keep only the modules with hard coded integer or real or character or array or derived types. We can just download the stdlib -> Type the "use stdlib" statement and use whatever subroutines. This will encourage users a lot - because they have something running at hand and they can easily add to the functionality. Yes I understand that generics are important and we need to cater to different data types .... But for short term please just use plain Fortran features - and let the more generic one incubate and grow in time and let time decide whether Fortran will have generics ...

This would be already available at the stdlib-fpm branch in this repository, not with CMake, but with fpm.

@awvwgk
Copy link
Member Author

awvwgk commented Nov 14, 2021

Thanks to @LKedward there is now an installer which can build stdlib 🎉

https://github.com/LKedward/quickstart-fortran

@JAMMIASHOK
Copy link

JAMMIASHOK commented Nov 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows Build issues specific to the Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants