gah4
unread,Feb 15, 2023, 5:25:05 PM2/15/23You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Since we all want to know whether Fortran of PL/I is better for scientific
programming, I decided to ask the reliable source: ChatGPT:
"It's difficult to make a definitive statement about whether FORTRAN or PL/I is "better" for scientific programming, as both languages have their strengths and weaknesses.
FORTRAN (which stands for "Formula Translation") has a long history of use in scientific and engineering applications. It has strong support for numerical computation, with built-in features for arrays and matrices, as well as a variety of mathematical functions. Many scientific libraries and packages are written in FORTRAN, and the language is still widely used in fields such as computational fluid dynamics, computational chemistry, and nuclear engineering.
PL/I (which stands for "Programming Language One") is a general-purpose programming language that was designed to combine the features of several other languages, including FORTRAN and COBOL. It has a broader range of capabilities than FORTRAN, with support for structured programming, string manipulation, and file handling. PL/I also has better support for non-numeric data types, such as strings and characters.
In terms of performance, FORTRAN is often considered faster than PL/I for numerical computations, due to its built-in support for arrays and matrices. However, modern compilers and hardware have narrowed this performance gap, and PL/I can still be used for scientific programming with reasonable performance.
Ultimately, the choice between FORTRAN and PL/I will depend on the specific needs of your project and the tools and libraries available for each language. Both languages have their strengths and weaknesses, and the best choice will depend on a variety of factors, such as the complexity of the problem being solved, the available hardware, and the expertise of the programming team."
I especially like the part about modern compilers and hardware
narrowing the gap. In not so many years, PL/I should pass Fortran,
if the trend keeps up!