并行粒子方法的领域专用语言及编辑器
A Domain-Specific Language and Editor for Parallel Particle Methods
摘要:
领域特定语言(DSL)在科学高性能计算中越来越重要,以降低开发成本,提高抽象水平,从而简化科学编程。然而,设计和实现DSL并不是一件容易的事情,因为它需要应用领域的知识以及语言工程和编译器方面的经验。因此,许多DSL使用宏或文本生成器来遵循一种弱的方法,这些方法缺乏使DSL对程序员来说更舒适的许多功能。其中一些功能-例如,语法突出显示、类型推断、错误报告和代码完成-都可以由语言工作台轻松提供,它将语言工程技术和工具结合在一个公共的生态系统中。在本文中,我们提出了并行粒子网格环境(PPME),一个DSL和开发环境的基础上的粒子方法和混合粒子网格方法的数值模拟。PPME使用Meta编程系统(MPS),一种投影语言工作台。PPME是并行粒子网格语言(PPML)的继承者,PPML是一种使用传统实现策略的基于Fortran的DSL。我们分析和比较这两种语言,并演示如何使用静态分析和投影编辑程序员的经验可以得到改善。此外,我们提出了一个明确的领域模型的粒子抽象和粒子方法的第一个形式类型系统。
英文摘要:
Domain-specific languages (DSLs) are of increasing importance in scientific high-performance computing to reduce development costs, raise the level of abstraction and, thus, ease scientific programming. However, designing and implementing DSLs is not an easy task, as it requires knowledge of the application domain and experience in language engineering and compilers. Consequently, many DSLs follow a weak approach using macros or text generators, which lack many of the features that make a DSL a comfortable for programmers. Some of these features---e.g., syntax highlighting, type inference, error reporting, and code completion---are easily provided by language workbenches, which combine language engineering techniques and tools in a common ecosystem. In this paper, we present the Parallel Particle-Mesh Environment (PPME), a DSL and development environment for numerical simulations based on particle methods and hybrid particle-mesh methods. PPME uses the meta programming system (MPS), a projectional language workbench. PPME is the successor of the Parallel Particle-Mesh Language (PPML), a Fortran-based DSL that used conventional implementation strategies. We analyze and compare both languages and demonstrate how the programmer's experience can be improved using static analyses and projectional editing. Furthermore, we present an explicit domain model for particle abstractions and the first formal type system for particle methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。