Proceedings of the 11th Symposium on Dynamic Languages最新文献

筛选
英文 中文
Message safety in Dart 香港的讯息安全
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816711
Erik Ernst, Anders Møller, Mathias Schwarz, Fabio Strocco
{"title":"Message safety in Dart","authors":"Erik Ernst, Anders Møller, Mathias Schwarz, Fabio Strocco","doi":"10.1145/2816707.2816711","DOIUrl":"https://doi.org/10.1145/2816707.2816711","url":null,"abstract":"Unlike traditional static type checking, the type system in the Dart programming language is unsound by design, even for fully annotated programs. The rationale has been that this allows compile-time detection of likely errors and enables code completion in integrated development environments, without being restrictive on programmers. Despite unsoundness, judicious use of type annotations can ensure useful properties of the runtime behavior of Dart programs. We present a formal model of a core of Dart with a focus on its type system, which allows us to elucidate the causes of unsoundness. Our main contribution is a characterization of message-safe programs and a theorem stating that such programs will never encounter 'message not understood' errors at runtime. Message safety is less restrictive than traditional type soundness, and we argue that it forms a natural intermediate point between dynamically typed and statically typed Dart programs.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"22 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2015-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127650546","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
From APIs to languages: generalising method names 从api到语言:泛化方法名
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816708
Michael Homer, T. Jones, J. Noble
{"title":"From APIs to languages: generalising method names","authors":"Michael Homer, T. Jones, J. Noble","doi":"10.1145/2816707.2816708","DOIUrl":"https://doi.org/10.1145/2816707.2816708","url":null,"abstract":"Method names with multiple separate parts are a feature of many dynamic languages derived from Smalltalk. Generalising the syntax of method names to allow parts to be repeated, optional, or alternatives, means a single definition can respond to a whole family of method requests. We show how generalising method names can support flexible APIs for domain-specific languages, complex initialisation tasks, and control structures defined in libraries. We describe how we have extended Grace to support generalised method names, and prove that such an extension can be integrated into a gradually-typed language while preserving type soundness.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"363 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2015-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"134129508","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}
引用次数: 3
High-performance cross-language interoperability in a multi-language runtime 多语言运行时中的高性能跨语言互操作性
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816714
Matthias Grimmer, Chris Seaton, Roland Schatz, Thomas Würthinger, H. Mössenböck
{"title":"High-performance cross-language interoperability in a multi-language runtime","authors":"Matthias Grimmer, Chris Seaton, Roland Schatz, Thomas Würthinger, H. Mössenböck","doi":"10.1145/2816707.2816714","DOIUrl":"https://doi.org/10.1145/2816707.2816714","url":null,"abstract":"Programmers combine different programming languages because it allows them to use the most suitable language for a given problem, to gradually migrate existing projects from one language to another, or to reuse existing source code. However, existing cross-language mechanisms suffer from complex interfaces, insufficient flexibility, or poor performance. We present the TruffleVM, a multi-language runtime that allows composing different language implementations in a seamless way. It reduces the amount of required boiler-plate code to a minimum by allowing programmers to access foreign functions or objects by using the notation of the host language. We compose language implementations that translate source code to an intermediate representation (IR), which is executed on top of a shared runtime system. Language implementations use language-independent messages that the runtime resolves at their first execution by transforming them to efficient foreign-language-specific operations. The TruffleVM avoids conversion or marshaling of foreign objects at the language boundary and allows the dynamic compiler to perform its optimizations across language boundaries, which guarantees high performance. This paper presents an implementation of our ideas based on the Truffle system and its guest language implementations JavaScript, Ruby, and C.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"87 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2015-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128618668","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}
引用次数: 54
A formalization of typed lua 类型化lua的形式化
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816709
André Murbach Maidl, Fabio Mascarenhas, R. Ierusalimschy
{"title":"A formalization of typed lua","authors":"André Murbach Maidl, Fabio Mascarenhas, R. Ierusalimschy","doi":"10.1145/2816707.2816709","DOIUrl":"https://doi.org/10.1145/2816707.2816709","url":null,"abstract":"Programmers often migrate from a dynamically typed to a statically typed language when their simple scripts evolve into complex programs. Optional type systems are one way of having both static and dynamic typing in the same language, while keeping its dynamically typed semantics. This makes evolving a program from dynamic to static typing a matter of describing the implied types that it is using and adding annotations to make those types explicit. Designing an optional type system for an existing dynamically typed language is challenging, as its types should feel natural to programmers that are already familiar with this language. In this work, we give a formal description of Typed Lua, an optional type system for Lua, with a focus on two of its novel type system features: incremental evolution of imperative record and object types that is both lightweight and type-safe, and projection types, a combination of flow typing, functions that return multiple values, and multiple assignment. While our type system is tailored to the features and idioms of Lua, its features can be adapted to other imperative scripting languages.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"74 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2015-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122182476","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}
引用次数: 13
Gradual certified programming in coq coq中的渐进式认证编程
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-06-13 DOI: 10.1145/2816707.2816710
É. Tanter, Nicolas Tabareau
{"title":"Gradual certified programming in coq","authors":"É. Tanter, Nicolas Tabareau","doi":"10.1145/2816707.2816710","DOIUrl":"https://doi.org/10.1145/2816707.2816710","url":null,"abstract":"Expressive static typing disciplines are a powerful way to achieve high-quality software. However, the adoption cost of such techniques should not be under-estimated. Just like gradual typing allows for a smooth transition from dynamically-typed to statically-typed programs, it seems desirable to support a gradual path to certified programming. We explore gradual certified programming in Coq, providing the possibility to postpone the proofs of selected properties, and to check \"at runtime\" whether the properties actually hold. Casts can be integrated with the implicit coercion mechanism of Coq to support implicit cast insertion à la gradual typing. Additionally, when extracting Coq functions to mainstream languages, our encoding of casts supports lifting assumed properties into runtime checks. Much to our surprise, it is not necessary to extend Coq in any way to support gradual certified programming. A simple mix of type classes and axioms makes it possible to bring gradual certified programming to Coq in a straightforward manner.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"25 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2015-06-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116666905","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}
引用次数: 29
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
相关产品
×
本文献相关产品
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书