It's Crazy Using Fortran Nowadays: Not So Fast.

Since its inception, Fortran has been optimized favoring fast execution speed using hand-coded Assembly language as the ideal benchmark to approach. Following this tradition, modern Fortran is highly optimized for efficiency, especially with regards to numerical computation. It offers a rich set of features for meeting its intended objective. Efficient numerical computation is important for science, engineering, economics and applied mathematics. Straight-forward application development and generating efficient executables have been top priorities since the first FORTRAN release in 1957. Modern Fortran's array intrinsics are similar to Python's numpy module. Fortran's array intrinsics however are more intuitive to use and offer a more comprehensive set of features.

Modern Fortran additionally features user defined data types and classes, making it a full-fledged object oriented programming language. Unlike other languages such as Java and C#, object oriented programming is not imposed on the Fortran programmer. In the spirit of Python, the use of modern Fortran's object oriented features is optional.

Since the 2003 standard, Fortran has been capable of interacting with C using the iso_c_binding module. Fortran can call C-coded procedures and vice versa. In Fortran 2018, the capabilities of interacting with C have been significantly enhanced to include passing Fortran pointers and user defined data types to C. As the iso_c_binding module forms a part of the Fortran standard, it is available on all platforms obviating the need to be concerned with platform-specific calling conventions. Prior to Fortran 2003, calling C-compiled code from Fortran often necessitated using non-standard, vendor-specific extensions. Companies such as DEC, IBM, Microsoft and Intel added extensions to their Fortran offerings to fill in the gaps where standard Fortran capability was lacking.

Modern Fortran's ability of interacting with C in a portable manner opens possibilities of developing mixed language applications extending well beyond C. In Python for example, with the aid of the ctypes module, it is easy to call Fortran-coded shared libraries (called DLL's on Windows systems) in a platform-independent, straight-forward manner.

While Fortran is continually being upgraded and modernized, maintaining backwards compatibility has always been a primary consideration of the Fortran standards committee. Almost all Fortran 77 can be successfully compiled with any of the crop of currently-maintained Fortran compilers. Fortran developers will never face the challenges that Python programmers encounter migrating code from Python 2.x to Python 3.x. Vintage Fortran 77 code may however include vendor-specific extensions which did not become part of the Fortran standard. In many cases, modern Fortran includes portable alternatives to the vendor-specific extensions. Retrieving command line arguments, running external programs or commands and handling binary files are examples which quickly come to mind.

The small but active Fortran community continually monitors current and emerging trends in software development and programming languages. This vigilance assures that the new features added to the language will continue to keep Fortran relevant both now and in the future. Additionally, Fortran features not compatible with current best practices are deprecated with their use in new code being discouraged. This attention to keeping Fortran current with modern trends is reason enough to seriously consider using the language for coding the numerically intensive components of your next project.