Fortran 编程语言#
Fortran
高性能并行编程语言
特征
高性能
Fortran自始至终为科学和工程中的计算密集型应用而精心打造,成熟的、久经实战考验的编译器和库使得您可以编写出贴近硬件、运行高效的代码。
静态和强类型
Fortran是一种静态强类型语言,这种特性使得编译器能够及早发现许多编程错误,并有助于编译器生成高效的目标代码。
易于学习和使用
Fortran作为一种相对较小型的语言,其学习和使用的便捷性令人惊讶。表达大多数数学和算术运算,尤其是针对大型数组的操作,就如同在白板上书写方程式一样简单直观。
多范式
Fortran赋予您根据问题特性选择最适宜编程风格的灵活性,无论是命令式、过程式、面向数组、面向对象还是函数式编程,皆能得心应手。
Built-in parallelism
Fortran directly supports parallel programming with its intuitive array-like syntax to communicate data between CPUs. You can run almost the same code on a single CPU, on a shared-memory multicore system, or on a distributed-memory HPC or cloud-based system. Coarrays, teams, events, and collective subroutines allow you to express different parallel programming patterns that best fit your problem at hand.
Interoperable
Fortran's standardized C interoperability enables seamless integration into multi-language projects, enabling the optimization of performance-critical components.
FAQ(常见问题)
Fortran 的现状如何?
Fortran is mature and under active development. The latest revision of the language is Fortran 2023. For the latest published interpretations, see the Fortran 2023 Interpretation Document. There are over a dozen open source and proprietary Fortran compilers. Further, open source projects like the Standard Library and the Fortran Package Manager are under active development.
Fortran 是用来做什么的?
Fortran主要应用于早期即采纳计算技术的领域,如科学与工程计算。这其中涵盖了数值天气预报、海洋预测、计算流体动力学、应用数学、统计学乃至金融等领域。在高性能计算领域中,Fortran占据主导地位,并且正是借助Fortran编写的程序来衡量和基准测试世界上最快的超级计算机性能。
是否应选用Fortran进行新项目的开发?
如果您正在编写一个程序或库,以对大型数值数组进行快速算术计算,那么Fortran是完成这项工作的最佳工具。
Join us!
Mailing list
Subscribe to our mailing list to discuss anything Fortran related, announce Fortran projects, discuss development of core fortran-lang.org projects (stdlib, fpm), and get the latest news.
Discourse
Join the discussion about all things Fortran on the fortran-lang discourse.
RSS feed
RSS clients can follow the RSS feed.
Open source
Contribute code, report bugs and request features at GitHub.
让 Fortran 变得更好
撰写提案
有关于如何提高语言的想法吗?你可以在 GitHub 上向 Fortran 标准委员会撰写新提案或为现有提案做出贡献。
开发工具
你还可以通过贡献其工具套件来帮助改进 Fortran,例如 标准库、Fortran 包管理器、本网站。
编写 Fortran 软件
或者只是为你的研究、业务或学校作业编写 Fortran 软件。你可以了解如何从这里开始。