首页 > 最新文献

Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering最新文献

英文 中文
A practical type system for safe aliasing 一种实用的安全混叠类型系统
Dimitri Racordon, Didier Buchs
Aliasing is a vital concept of programming, but it comes with a plethora of challenging issues, such as the problems related to race safety. This has motivated years of research, and promising solutions such as ownership or linear types have found their way into modern programming languages. Unfortunately, most current approaches are restrictive. In particular, they often enforce a single-writer constraint, which prohibits the creation of mutable self-referential structures. While this constraint is often indispensable in the context of preemptive multithreading, it can be worked around in the case of single threaded programs. With the recent resurgence of cooperative multitasking, where processes voluntarily share control over a single execution thread, this appears to be interesting trade-off. In this paper, we propose a type system that relaxes the usual single-writer constraint for single threaded programs, without sacrificing race safety properties. We present it in the form of a simple reference-based language, for which we provide a formal semantics, as well as an interpreter.
混叠是编程的一个重要概念,但它带来了大量具有挑战性的问题,例如与比赛安全相关的问题。这激发了多年的研究,并且有前途的解决方案(如所有权或线性类型)已经在现代编程语言中找到了自己的方式。不幸的是,目前大多数方法都是限制性的。特别是,它们经常强制执行单写入器约束,这禁止创建可变的自引用结构。虽然这个约束在抢占式多线程的上下文中通常是不可缺少的,但在单线程程序的情况下也可以绕过它。随着最近合作多任务的复兴,进程自愿共享对单个执行线程的控制,这似乎是一个有趣的权衡。在本文中,我们提出了一种类型系统,它在不牺牲竞争安全属性的情况下,放松了单线程程序通常的单写入器约束。我们以简单的基于引用的语言的形式表示它,为此我们提供了形式化语义和解释器。
{"title":"A practical type system for safe aliasing","authors":"Dimitri Racordon, Didier Buchs","doi":"10.1145/3276604.3276612","DOIUrl":"https://doi.org/10.1145/3276604.3276612","url":null,"abstract":"Aliasing is a vital concept of programming, but it comes with a plethora of challenging issues, such as the problems related to race safety. This has motivated years of research, and promising solutions such as ownership or linear types have found their way into modern programming languages. Unfortunately, most current approaches are restrictive. In particular, they often enforce a single-writer constraint, which prohibits the creation of mutable self-referential structures. While this constraint is often indispensable in the context of preemptive multithreading, it can be worked around in the case of single threaded programs. With the recent resurgence of cooperative multitasking, where processes voluntarily share control over a single execution thread, this appears to be interesting trade-off. In this paper, we propose a type system that relaxes the usual single-writer constraint for single threaded programs, without sacrificing race safety properties. We present it in the form of a simple reference-based language, for which we provide a formal semantics, as well as an interpreter.","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"22 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"117211393","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
Declarative specification of indentation rules: a tooling perspective on parsing and pretty-printing layout-sensitive languages 缩进规则的声明性规范:解析和美观打印布局敏感语言的工具视角
L. E. D. S. Amorim, M. Steindorfer, Sebastian Erdweg, E. Visser
In layout-sensitive languages, the indentation of an expression or statement can influence how a program is parsed. While some of these languages (e.g., Haskell and Python) have been widely adopted, there is little support for software language engineers in building tools for layout-sensitive languages. As a result, parsers, pretty-printers, program analyses, and refactoring tools often need to be handwritten, which decreases the maintainability and extensibility of these tools. Even state-of-the-art language workbenches have little support for layout-sensitive languages, restricting the development and prototyping of such languages. In this paper, we introduce a novel approach to declarative specification of layout-sensitive languages using layout declarations. Layout declarations are high-level specifications of indentation rules that abstract from low-level technicalities. We show how to derive an efficient layout-sensitive generalized parser and a corresponding pretty-printer automatically from a language specification with layout declarations. We validate our approach in a case-study using a syntax definition for the Haskell programming language, investigating the performance of the generated parser and the correctness of the generated pretty-printer against 22191 Haskell files.
在布局敏感的语言中,表达式或语句的缩进会影响程序的解析方式。虽然其中一些语言(例如Haskell和Python)已被广泛采用,但软件语言工程师在为布局敏感语言构建工具方面几乎没有得到支持。因此,解析器、漂亮的打印机、程序分析和重构工具通常需要手写,这降低了这些工具的可维护性和可扩展性。即使是最先进的语言工作台也很少支持布局敏感的语言,这限制了这些语言的开发和原型设计。本文介绍了一种使用布局声明对布局敏感语言进行声明性规范的新方法。布局声明是从低级技术抽象出来的缩进规则的高级规范。我们将展示如何从带有布局声明的语言规范中自动派生出对布局敏感的高效通用解析器和相应的漂亮打印机。我们在一个案例研究中验证了我们的方法,使用了Haskell编程语言的语法定义,针对22191个Haskell文件调查了生成的解析器的性能和生成的漂亮打印机的正确性。
{"title":"Declarative specification of indentation rules: a tooling perspective on parsing and pretty-printing layout-sensitive languages","authors":"L. E. D. S. Amorim, M. Steindorfer, Sebastian Erdweg, E. Visser","doi":"10.1145/3276604.3276607","DOIUrl":"https://doi.org/10.1145/3276604.3276607","url":null,"abstract":"In layout-sensitive languages, the indentation of an expression or statement can influence how a program is parsed. While some of these languages (e.g., Haskell and Python) have been widely adopted, there is little support for software language engineers in building tools for layout-sensitive languages. As a result, parsers, pretty-printers, program analyses, and refactoring tools often need to be handwritten, which decreases the maintainability and extensibility of these tools. Even state-of-the-art language workbenches have little support for layout-sensitive languages, restricting the development and prototyping of such languages. In this paper, we introduce a novel approach to declarative specification of layout-sensitive languages using layout declarations. Layout declarations are high-level specifications of indentation rules that abstract from low-level technicalities. We show how to derive an efficient layout-sensitive generalized parser and a corresponding pretty-printer automatically from a language specification with layout declarations. We validate our approach in a case-study using a syntax definition for the Haskell programming language, investigating the performance of the generated parser and the correctness of the generated pretty-printer against 22191 Haskell files.","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"44 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129612051","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 10
Shape-diverse DSLs: languages without borders (vision paper) 形状多样的dsl:没有边界的语言(远景文件)
F. Coulon, Thomas Degueule, T. Storm, B. Combemale
Domain-Specific Languages (DSLs) manifest themselves in remarkably diverse shapes, ranging from internal DSLs embedded as a mere fluent API within a programming language, to external DSLs with dedicated syntax and tool support. Although different shapes have different pros and cons, combining them for a single language is problematic: language designers usually commit to a particular shape early in the design process, and it is hard to reconsider this choice later. In this new ideas paper, we envision a language engineering approach enabling (i) language users to manipulate language constructs in the most appropriate shape according to the task at hand, and (ii) language designers to combine the strengths of different technologies for a single DSL. We report on early experiments and lessons learned building , our prototype approach to this problem. We illustrate its applicability in the engineering of a simple shape-diverse DSL implemented conjointly in Rascal, EMF, and Java. We hope that our initial contribution will raise the awareness of the community and encourage future research.
领域特定语言(Domain-Specific Languages, dsl)以非常不同的形式表现出来,从作为编程语言中简单的流畅API嵌入的内部dsl,到具有专用语法和工具支持的外部dsl。尽管不同的形状有不同的优点和缺点,但将它们组合成一种语言是有问题的:语言设计师通常在设计过程的早期就致力于特定的形状,并且之后很难重新考虑这个选择。在这篇新的思想论文中,我们设想了一种语言工程方法,使(i)语言用户能够根据手头的任务以最合适的形式操纵语言结构,以及(ii)语言设计者能够将不同技术的优势结合到单个DSL中。我们报告早期的实验和经验教训,我们对这个问题的原型方法。我们说明了它在用Rascal、EMF和Java联合实现的简单形状多样DSL工程中的适用性。我们希望我们的初步贡献将提高社会的认识,并鼓励未来的研究。
{"title":"Shape-diverse DSLs: languages without borders (vision paper)","authors":"F. Coulon, Thomas Degueule, T. Storm, B. Combemale","doi":"10.1145/3276604.3276623","DOIUrl":"https://doi.org/10.1145/3276604.3276623","url":null,"abstract":"Domain-Specific Languages (DSLs) manifest themselves in remarkably diverse shapes, ranging from internal DSLs embedded as a mere fluent API within a programming language, to external DSLs with dedicated syntax and tool support. Although different shapes have different pros and cons, combining them for a single language is problematic: language designers usually commit to a particular shape early in the design process, and it is hard to reconsider this choice later. In this new ideas paper, we envision a language engineering approach enabling (i) language users to manipulate language constructs in the most appropriate shape according to the task at hand, and (ii) language designers to combine the strengths of different technologies for a single DSL. We report on early experiments and lessons learned building , our prototype approach to this problem. We illustrate its applicability in the engineering of a simple shape-diverse DSL implemented conjointly in Rascal, EMF, and Java. We hope that our initial contribution will raise the awareness of the community and encourage future research.","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"73 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127600574","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 5
Deriving fluent internal domain-specific languages from grammars 从语法中派生出流畅的内部领域特定语言
Arvid Butting, M. Dalibor, Gerrit Leonhardt, Bernhard Rumpe, A. Wortmann
A prime decision of engineering domain-specific languages (DSLs) is implementing these as external DSLs or internal DSLs. Agile language engineering benefits from easily switching between both shapes to provide rapidly developed prototypes before settling on a specific syntax. This switching, however, is rarely feasible due to the effort of re-implementing language tooling for both shapes. Current research in software language engineering focuses either on internal DSLs or external DSLs. We conceived a concept to automatically derive customizable internal DSLs from grammars that operate on the same abstract syntax as the external DSL. This supports reusing tooling (such as model checkers or code generators) between both shapes. We realized our concept with the MontiCore language workbench and Groovy as host language for internal DSLs. This concept is applicable to many grammar-based language definition
工程领域特定语言(dsl)的主要决策是将它们实现为外部dsl或内部dsl。敏捷语言工程受益于在两种形式之间轻松切换,从而在确定特定语法之前提供快速开发的原型。然而,这种转换很少可行,因为需要为两种形状重新实现语言工具。当前软件语言工程的研究主要集中在内部语言领域和外部语言领域。我们构思了一个概念,从与外部DSL操作相同抽象语法的语法中自动派生可定制的内部DSL。这支持在两个形状之间重用工具(例如模型检查器或代码生成器)。我们使用MontiCore语言工作台和Groovy作为内部dsl的宿主语言来实现我们的概念。这个概念适用于许多基于语法的语言定义
{"title":"Deriving fluent internal domain-specific languages from grammars","authors":"Arvid Butting, M. Dalibor, Gerrit Leonhardt, Bernhard Rumpe, A. Wortmann","doi":"10.1145/3276604.3276621","DOIUrl":"https://doi.org/10.1145/3276604.3276621","url":null,"abstract":"A prime decision of engineering domain-specific languages (DSLs) is implementing these as external DSLs or internal DSLs. Agile language engineering benefits from easily switching between both shapes to provide rapidly developed prototypes before settling on a specific syntax. This switching, however, is rarely feasible due to the effort of re-implementing language tooling for both shapes. Current research in software language engineering focuses either on internal DSLs or external DSLs. We conceived a concept to automatically derive customizable internal DSLs from grammars that operate on the same abstract syntax as the external DSL. This supports reusing tooling (such as model checkers or code generators) between both shapes. We realized our concept with the MontiCore language workbench and Groovy as host language for internal DSLs. This concept is applicable to many grammar-based language definition","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131247897","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 6
Languages as first-class citizens (vision paper) 语言成为一等公民(愿景文件)
M. Cimini
In this paper, we introduce languages as first-class citizens as a sub-paradigm of language-oriented programming. In this approach, language definitions are in the context of a general purpose programming language with the same status as any other expression. In particular, language definitions are elevated to be run-time values, that can be assigned to variables, passed to functions, returned by functions, and inserted into lists, to name a few possibilities. This approach offers flexible features in the run-time creation and modification of languages, and may promote new idioms in language-oriented programming. As a proof of concept, we have designed and implemented lang-n-play, a functional language with languages as first-class citizens. We present the features of lang-n-play with an example, and show that they naturally enable dynamic programming scenarios.
在本文中,我们将语言作为一等公民作为面向语言的程序设计的子范式进行介绍。在这种方法中,语言定义位于通用编程语言的上下文中,具有与任何其他表达式相同的状态。特别是,语言定义被提升为运行时值,可以将其赋值给变量,传递给函数,由函数返回,并插入到列表中,仅列举几种可能性。这种方法在运行时创建和修改语言时提供了灵活的特性,并可能在面向语言的编程中促进新的习惯用法。作为概念验证,我们设计并实现了lang-n-play,这是一种将语言作为一等公民的函数式语言。我们通过一个示例展示了lang-n-play的特性,并展示了它们自然地支持动态规划场景。
{"title":"Languages as first-class citizens (vision paper)","authors":"M. Cimini","doi":"10.1145/3276604.3276983","DOIUrl":"https://doi.org/10.1145/3276604.3276983","url":null,"abstract":"In this paper, we introduce languages as first-class citizens as a sub-paradigm of language-oriented programming. In this approach, language definitions are in the context of a general purpose programming language with the same status as any other expression. In particular, language definitions are elevated to be run-time values, that can be assigned to variables, passed to functions, returned by functions, and inserted into lists, to name a few possibilities. This approach offers flexible features in the run-time creation and modification of languages, and may promote new idioms in language-oriented programming. As a proof of concept, we have designed and implemented lang-n-play, a functional language with languages as first-class citizens. We present the features of lang-n-play with an example, and show that they naturally enable dynamic programming scenarios.","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"51 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123639611","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 6
A new approach for software correctness and reliability (keynote) 提高软件正确性和可靠性的新方法(主题演讲)
M. Rinard
Software correctness and security have been a central issue in the field for decades. Researchers have developed a wide range of approaches to these problems, none of which has solved these problems to date. In this talk I consider two very different approaches to solving correctness and security problems, failure-oblivious computing and domain-specific languages. I will discuss how these approaches (as well as others) interact with the cognitive limitations and available technical skills of the human population of software developers that currently must be part of any solution for it to be successful. I’ll conclude by outlining a new approach that, by deploying automated programming language technology in an appropriately targeted way, may interact more productively with the characteristics of the developer population as a whole.
几十年来,软件正确性和安全性一直是该领域的核心问题。研究人员已经开发了各种各样的方法来解决这些问题,但迄今为止还没有一种方法能解决这些问题。在这次演讲中,我将考虑两种非常不同的方法来解决正确性和安全性问题,即故障无关计算和特定于领域的语言。我将讨论这些方法(以及其他方法)如何与软件开发人员的认知限制和可用技术技能相互作用,这些技术技能目前必须是任何解决方案成功的一部分。最后,我将概述一种新的方法,通过以适当的有针对性的方式部署自动化编程语言技术,可以更有效地与整个开发人员群体的特征进行交互。
{"title":"A new approach for software correctness and reliability (keynote)","authors":"M. Rinard","doi":"10.1145/3276604.3284957","DOIUrl":"https://doi.org/10.1145/3276604.3284957","url":null,"abstract":"Software correctness and security have been a central issue in the field for decades. Researchers have developed a wide range of approaches to these problems, none of which has solved these problems to date. In this talk I consider two very different approaches to solving correctness and security problems, failure-oblivious computing and domain-specific languages. I will discuss how these approaches (as well as others) interact with the cognitive limitations and available technical skills of the human population of software developers that currently must be part of any solution for it to be successful. I’ll conclude by outlining a new approach that, by deploying automated programming language technology in an appropriately targeted way, may interact more productively with the characteristics of the developer population as a whole.","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"5 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130395739","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering 第11届ACM SIGPLAN软件语言工程国际会议论文集
{"title":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","authors":"","doi":"10.1145/3276604","DOIUrl":"https://doi.org/10.1145/3276604","url":null,"abstract":"","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"90 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130901000","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
Modular language composition for the masses 面向大众的模块化语言组成
Manuel Leduc, Thomas Degueule, B. Combemale
The goal of modular language development is to enable the definition of new languages as assemblies of pre-existing ones. Recent approaches in this area are plentiful but usually suffer from two main problems: either they do not support modular language composition both at the specification and implementation levels, or they require advanced knowledge of specific paradigms which hampers wide adoption in the industry. In this paper, we introduce a non-intrusive approach to modular development of language concerns with well-defined interfaces that can be composed modularly at the specification and implementation levels. We present an implementation of our approach atop the Eclipse Modeling Framework, namely Alex, an object-oriented meta-language for semantics definition and language composition. We evaluate Alex in the development of a new DSL for IoT systems modeling resulting from the composition of three independently defined languages (UML activity diagrams, Lua, and the OMG Interface Description Language). We evaluate the effort required to implement and compose these languages using Alex with regards to similar approaches of the literature.
模块化语言开发的目标是支持将新语言定义为已有语言的集合。该领域的最新方法很多,但通常存在两个主要问题:要么它们在规范和实现级别上都不支持模块化语言组合,要么它们需要特定范例的高级知识,这阻碍了行业的广泛采用。在本文中,我们引入了一种非侵入式的方法,通过定义良好的接口对语言关注点进行模块化开发,这些接口可以在规范和实现级别上进行模块化组合。我们在Eclipse建模框架(Eclipse Modeling Framework)上提供了我们的方法的实现,即Alex,一种用于语义定义和语言组合的面向对象元语言。我们在开发物联网系统建模的新DSL时对Alex进行了评估,该建模由三种独立定义的语言(UML活动图、Lua和OMG接口描述语言)组成。我们根据文献中类似的方法来评估使用Alex实现和编写这些语言所需的努力。
{"title":"Modular language composition for the masses","authors":"Manuel Leduc, Thomas Degueule, B. Combemale","doi":"10.1145/3276604.3276622","DOIUrl":"https://doi.org/10.1145/3276604.3276622","url":null,"abstract":"The goal of modular language development is to enable the definition of new languages as assemblies of pre-existing ones. Recent approaches in this area are plentiful but usually suffer from two main problems: either they do not support modular language composition both at the specification and implementation levels, or they require advanced knowledge of specific paradigms which hampers wide adoption in the industry. In this paper, we introduce a non-intrusive approach to modular development of language concerns with well-defined interfaces that can be composed modularly at the specification and implementation levels. We present an implementation of our approach atop the Eclipse Modeling Framework, namely Alex, an object-oriented meta-language for semantics definition and language composition. We evaluate Alex in the development of a new DSL for IoT systems modeling resulting from the composition of three independently defined languages (UML activity diagrams, Lua, and the OMG Interface Description Language). We evaluate the effort required to implement and compose these languages using Alex with regards to similar approaches of the literature.","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"23 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126773280","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 8
An industrial case study in compiler testing (tool demo) 编译器测试的工业案例研究(工具演示)
V. Zaytsev
Compiler construction is one of the oldest areas of software engineering, yet despite its maturity it has underdeveloped sides such as compiler testing. There exist many disparate methods for testing parsers, optimisers and other components, but no unified methodology that consumable by practitioners from a book to be directly applied to fulfil their needs. Instead of striving to cover all theoretical aspects of compiler testing in one paper, we present a case study for an ongoing project of a relatively large size for our company (2 years, 3--6 devs, 500kLOC), a clean room compiler development effort in replicating a 4GL. We built a testing framework and a model-based test data generator, which consumes manually written specifications and generates all the necessary test code in the 4GL, in the host language, and in auxiliary DSLs (batch files, XML project descriptions), to both the developers' and the customer's satisfaction. The number of specifications is 927 at the publication time, while the number of test cases generated from them, is 6268. All these tests have been run prior to shipping for the last 49 releases of the compiler, both to ensure the lack of regression and to report on the project overall progress. The generated tests are separated into 11 categories which the paper details in the hope that the classification will aid in seeking related work and in pushing this line of research forward.
编译器构建是软件工程中最古老的领域之一,尽管它很成熟,但也有不发达的方面,比如编译器测试。有许多不同的方法用于测试解析器、优化器和其他组件,但是没有一个统一的方法可供从业者从一本书中直接应用来满足他们的需求。我们没有试图在一篇论文中涵盖编译器测试的所有理论方面,而是为我们公司正在进行的一个规模相对较大的项目(2年,3- 6个开发人员,500kLOC)提供一个案例研究,这是一个复制4GL的洁净室编译器开发工作。我们构建了一个测试框架和一个基于模型的测试数据生成器,它使用手工编写的规范,并以4GL、主机语言和辅助dsl(批处理文件、XML项目描述)生成所有必要的测试代码,以使开发人员和客户都满意。在发布时,规范的数量是927个,而从中生成的测试用例的数量是6268个。所有这些测试都是在编译器的最后49个版本发布之前运行的,以确保没有回归,并报告项目的总体进度。本文将生成的测试分为11个类别,希望分类有助于寻找相关工作并推动这一研究方向向前发展。
{"title":"An industrial case study in compiler testing (tool demo)","authors":"V. Zaytsev","doi":"10.1145/3276604.3276619","DOIUrl":"https://doi.org/10.1145/3276604.3276619","url":null,"abstract":"Compiler construction is one of the oldest areas of software engineering, yet despite its maturity it has underdeveloped sides such as compiler testing. There exist many disparate methods for testing parsers, optimisers and other components, but no unified methodology that consumable by practitioners from a book to be directly applied to fulfil their needs. Instead of striving to cover all theoretical aspects of compiler testing in one paper, we present a case study for an ongoing project of a relatively large size for our company (2 years, 3--6 devs, 500kLOC), a clean room compiler development effort in replicating a 4GL. We built a testing framework and a model-based test data generator, which consumes manually written specifications and generates all the necessary test code in the 4GL, in the host language, and in auxiliary DSLs (batch files, XML project descriptions), to both the developers' and the customer's satisfaction. The number of specifications is 927 at the publication time, while the number of test cases generated from them, is 6268. All these tests have been run prior to shipping for the last 49 releases of the compiler, both to ensure the lack of regression and to report on the project overall progress. The generated tests are separated into 11 categories which the paper details in the hope that the classification will aid in seeking related work and in pushing this line of research forward.","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"11 2 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125645398","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 8
Translating grammars to accurate metamodels 将语法转换为精确的元模型
Arvid Butting, Nico Jansen, Bernhard Rumpe, A. Wortmann
There is a software language engineering gap between metamodel-based languages and grammar-based languages. Grammars can support integrated definition of concrete syntax and abstract syntax, which facilitates processing models, but usually prevents reusing the variety of language tools operating on Ecore metamodels (such as editors, interpreters, debuggers, etc.). Existing work on translating grammars to Ecore metamodels features very cursory translations only, which requires re-engineering intricacies natural to grammars for the metamodels again. We conceived a translation from an EBNF-like syntax to Ecore metamodels that considers the grammars’ intricacies. This translation is realized as a fully automated toolchain from grammars into Ecore & OCL using the language workbench MontiCore. Using this translation enables grammar-based languages to leverage the benefits of Ecore-compatible language tools while supporting natural definition of concrete and abstract syntax.
在基于元模型的语言和基于语法的语言之间存在软件语言工程上的差距。语法可以支持具体语法和抽象语法的集成定义,这有助于处理模型,但通常会阻止重用在Ecore元模型上操作的各种语言工具(如编辑器、解释器、调试器等)。将语法翻译成Ecore元模型的现有工作只提供非常粗略的翻译,这需要重新设计元模型中语法自然的复杂性。我们设想了从类似ebnf的语法到考虑语法复杂性的Ecore元模型的转换。这种翻译是通过使用语言工作台MontiCore实现的,从语法到Ecore和OCL的全自动工具链。使用这种转换使基于语法的语言能够利用与ecore兼容的语言工具的优点,同时支持具体和抽象语法的自然定义。
{"title":"Translating grammars to accurate metamodels","authors":"Arvid Butting, Nico Jansen, Bernhard Rumpe, A. Wortmann","doi":"10.1145/3276604.3276605","DOIUrl":"https://doi.org/10.1145/3276604.3276605","url":null,"abstract":"There is a software language engineering gap between metamodel-based languages and grammar-based languages. Grammars can support integrated definition of concrete syntax and abstract syntax, which facilitates processing models, but usually prevents reusing the variety of language tools operating on Ecore metamodels (such as editors, interpreters, debuggers, etc.). Existing work on translating grammars to Ecore metamodels features very cursory translations only, which requires re-engineering intricacies natural to grammars for the metamodels again. We conceived a translation from an EBNF-like syntax to Ecore metamodels that considers the grammars’ intricacies. This translation is realized as a fully automated toolchain from grammars into Ecore & OCL using the language workbench MontiCore. Using this translation enables grammar-based languages to leverage the benefits of Ecore-compatible language tools while supporting natural definition of concrete and abstract syntax.","PeriodicalId":117525,"journal":{"name":"Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering","volume":"17 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126773230","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 6
期刊
Proceedings of the 11th ACM SIGPLAN International Conference on Software Language Engineering
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1