Discussion Overview
The discussion revolves around the feasibility of using Fortran 90 to run external programs and loops, particularly in comparison to C++. Participants explore the capabilities of Fortran in handling interprocess communication and the efficiency of its execution in scientific computing contexts.
Discussion Character
- Exploratory
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant describes a need to run an external program multiple times while modifying an input file, expressing uncertainty about how to execute the program from within Fortran.
- Another participant suggests that Fortran may not have robust interprocess communication capabilities.
- Some participants argue that Fortran is still used in scientific work due to its efficiency in numerical calculations, while others question its relevance in modern programming.
- A suggestion is made to use Perl for manipulating text and calling external programs, rather than relying solely on Fortran.
- One participant mentions a method to call an external program using the CALL SYSTEM command in Fortran, indicating it works for their needs.
- Concerns are raised about ensuring that the Fortran program waits for the external program to finish before continuing the loop.
- There is a debate regarding the performance of Fortran compared to C and C++, with some participants asserting that Fortran generates highly optimized executable code.
- Another participant challenges the assertion that Fortran can outperform C++ in all cases, asking for examples where Fortran cannot be translated into C++ while maintaining speed.
Areas of Agreement / Disagreement
Participants express differing views on the relevance and performance of Fortran compared to C and C++. While some assert Fortran's advantages in scientific applications, others question its current usage and efficiency. The discussion remains unresolved regarding the best approach to executing external programs from Fortran.
Contextual Notes
Participants mention limitations in Fortran's interprocess communication capabilities and the need for the program to pause until the external program completes, indicating potential challenges in implementation.