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

筛选
英文 中文
Server-side type profiling for optimizing client-side JavaScript engines 用于优化客户端JavaScript引擎的服务器端类型分析
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816719
Madhukar N. Kedlaya, Behnam Robatmili, B. Hardekopf
{"title":"Server-side type profiling for optimizing client-side JavaScript engines","authors":"Madhukar N. Kedlaya, Behnam Robatmili, B. Hardekopf","doi":"10.1145/2816707.2816719","DOIUrl":"https://doi.org/10.1145/2816707.2816719","url":null,"abstract":"Modern JavaScript engines optimize hot functions using a JIT compiler along with type information gathered by an online profiler. However, the profiler's information can be unsound and when unexpected types are encountered the engine must recover using an expensive mechanism called deoptimization. In this paper we describe a method to significantly reduce the number of deoptimizations observed by client-side JavaScript engines by using ahead-of-time profiling on the server-side. Unlike previous work on ahead-of-time profiling for statically-typed languages such as Java, our technique must operate on a dynamically-typed language, which significantly changes the required insights and methods to make the technique effective. We implement our proposed technique using the SpiderMonkey JavaScript engine, and we evaluate our implementation using three different kinds of benchmarks: the industry-standard Octane benchmark suite, a set of JavaScript physics engines, and a set of real-world websites from the Membench50 benchmark suite. We show that using ahead-of-time profiling provides significant performance benefits over the baseline vanilla SpiderMonkey engine.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"49 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":"115252780","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}
引用次数: 7
Control-flow analysis of dynamic languages via pointer analysis 通过指针分析实现动态语言的控制流分析
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816712
Steven Lyde, William E. Byrd, M. Might
{"title":"Control-flow analysis of dynamic languages via pointer analysis","authors":"Steven Lyde, William E. Byrd, M. Might","doi":"10.1145/2816707.2816712","DOIUrl":"https://doi.org/10.1145/2816707.2816712","url":null,"abstract":"We demonstrate how to map a control-flow analysis for a higher-order language (dynamic languages are typically higher-order) into a pointer analysis for a first-order language, such as C. This allows us to use existing pointer analysis tools to perform a control-flow analysis, exploiting their technical advancements and the engineering effort that went into developing them. We compare the results of two recent parallel pointer analysis tools with a parallel control-flow analysis tool. While it has been known that a control-flow analysis of higher-order languages and a pointer analysis of first-order languages are very similar, we demonstrate that these two analyses are actually more similar than previously thought. We present the first mapping between a high-order control-flow analysis and a pointer analysis.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"8 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":"127069373","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
Java-to-JavaScript translation via structured control flow reconstruction of compiler IR 通过编译器IR的结构化控制流重构实现java到javascript的转换
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816715
David Leopoldseder, Lukas Stadler, Christian Wimmer, H. Mössenböck
{"title":"Java-to-JavaScript translation via structured control flow reconstruction of compiler IR","authors":"David Leopoldseder, Lukas Stadler, Christian Wimmer, H. Mössenböck","doi":"10.1145/2816707.2816715","DOIUrl":"https://doi.org/10.1145/2816707.2816715","url":null,"abstract":"We present an approach to cross-compile Java bytecodes to Java-Script, building on existing Java optimizing compiler technology. Static analysis determines which Java classes and methods are reachable. These are then translated to JavaScript using a re-configured Java just-in-time compiler with a new back end that generates JavaScript instead of machine code. Standard compiler optimizations such as method inlining and global value numbering, as well as advanced optimizations such as escape analysis, lead to compact and optimized JavaScript code. Compiler IR is unstructured, so structured control flow needs to be reconstructed before code generation is possible. We present details of our control flow reconstruction algorithm. Our system is based on Graal, an open-source optimizing compiler for the Java HotSpot VM and other VMs. The modular and VM-independent architecture of Graal allows us to reuse the intermediate representation, the bytecode parser, and the high-level optimizations. Our custom back end first performs control flow reconstruction and then JavaScript code generation. The generated JavaScript undergoes a set of optimizations to increase readability and performance. Static analysis is performed on the Graal intermediate representation as well. Benchmark results for medium-sized Java benchmarks such as SPECjbb2005 run with acceptable performance on the V8 JavaScript VM.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"7 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":"124701883","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}
引用次数: 9
Measuring polymorphism in python programs 测量python程序中的多态性
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816717
Beatrice Åkerblom, Tobias Wrigstad
{"title":"Measuring polymorphism in python programs","authors":"Beatrice Åkerblom, Tobias Wrigstad","doi":"10.1145/2816707.2816717","DOIUrl":"https://doi.org/10.1145/2816707.2816717","url":null,"abstract":"Following the increased popularity of dynamic languages and their increased use in critical software, there have been many proposals to retrofit static type system to these languages to improve possibilities to catch bugs and improve performance. A key question for any type system is whether the types should be structural, for more expressiveness, or nominal, to carry more meaning for the programmer. For retrofitted type systems, it seems the current trend is using structural types. This paper attempts to answer the question to what extent this extra expressiveness is needed, and how the possible polymorphism in dynamic code is used in practise. We study polymorphism in 36 real-world open source Python programs and approximate to what extent nominal and structural types could be used to type these programs. The study is based on collecting traces from multiple runs of the programs and analysing the polymorphic degrees of targets at more than 7 million call-sites. Our results show that while polymorphism is used in all programs, the programs are to a great extent monomorphic. The polymorphism found is evenly distributed across libraries and program-specific code and occur both during program start-up and normal execution. Most programs contain a few ``megamorphic'' call-sites where receiver types vary widely. The non-monomorphic parts of the programs can to some extent be typed with nominal or structural types, but none of the approaches can type entire programs.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"43 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":"127506794","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}
引用次数: 21
Language-independent storage strategies for tracing-JIT-based virtual machines 用于跟踪基于jit的虚拟机的与语言无关的存储策略
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816716
Tobias Pape, T. Felgentreff, R. Hirschfeld, Anton Gulenko, Carl Friedrich Bolz-Tereick
{"title":"Language-independent storage strategies for tracing-JIT-based virtual machines","authors":"Tobias Pape, T. Felgentreff, R. Hirschfeld, Anton Gulenko, Carl Friedrich Bolz-Tereick","doi":"10.1145/2816707.2816716","DOIUrl":"https://doi.org/10.1145/2816707.2816716","url":null,"abstract":"Storage strategies have been proposed as a run-time optimization for the PyPy Python implementation and have shown promising results for optimizing execution speed and memory requirements. However, it remained unclear whether the approach works equally well in other dynamic languages. Furthermore, while PyPy is based on RPython, a language to write VMs with reusable components such as a tracing just-in-time compiler and garbage collection, the strategies design itself was not generalized to be reusable across languages implemented using that same toolchain. In this paper, we present a general design and implementation for storage strategies and show how they can be reused across different RPython-based languages. We evaluate the performance of our implementation for RSqueak, an RPython-based VM for Squeak/Smalltalk and show that storage strategies may indeed offer performance benefits for certain workloads in other dynamic programming languages.We furthermore evaluate the generality of our implementation by applying it to Topaz, a Ruby VM, and Pycket, a Racket implementation.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"21 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":"132378799","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 Symposium on Dynamic Languages 第十一届动态语言学术研讨会论文集
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707
M. Serrano
{"title":"Proceedings of the 11th Symposium on Dynamic Languages","authors":"M. Serrano","doi":"10.1145/2816707","DOIUrl":"https://doi.org/10.1145/2816707","url":null,"abstract":"","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"1 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":"130230274","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
Access control to reflection with object ownership 具有对象所有权的反射的访问控制
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816721
Camille Teruel, Stéphane Ducasse, D. Cassou, M. Denker
{"title":"Access control to reflection with object ownership","authors":"Camille Teruel, Stéphane Ducasse, D. Cassou, M. Denker","doi":"10.1145/2816707.2816721","DOIUrl":"https://doi.org/10.1145/2816707.2816721","url":null,"abstract":"Reflection is a powerful programming language feature that enables language extensions, generic code, dynamic analyses, development tools, etc. However, uncontrolled reflection breaks object encapsulation and considerably increases the attack surface of programs e.g., malicious libraries can use reflection to attack their client applications. To bring reflection and object encapsulation back together, we use dynamic object ownership to design an access control policy to reflective operations. This policy grants objects full reflective power over the objects they own but limited reflective power over other objects. Code is still able to use advanced reflective operations but reflection cannot be used as an attack vector anymore.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"29 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":"126151101","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
Tracking down performance variation against source code evolution 根据源代码演变跟踪性能变化
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816718
Juan Pablo Sandoval Alcocer, Alexandre Bergel
{"title":"Tracking down performance variation against source code evolution","authors":"Juan Pablo Sandoval Alcocer, Alexandre Bergel","doi":"10.1145/2816707.2816718","DOIUrl":"https://doi.org/10.1145/2816707.2816718","url":null,"abstract":"Little is known about how software performance evolves across software revisions. The severity of this situation is high since (i) most performance variations seem to happen accidentally and (ii) addressing a performance regression is challenging, especially when functional code is stacked on it. This paper reports an empirical study on the performance evolution of 19 applications, totaling over 19 MLOC. It took 52 days to run our 49 benchmarks. By relating performance variation with source code revisions, we found out that: (i) 1 out of every 3 application revisions introduces a performance variation, (ii) performance variations may be classified into 9 patterns, (iii) the most prominent cause of performance regression involves loops and collections. We carefully describe the patterns we identified, and detail how we addressed the numerous challenges we faced to complete our experiment.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"6 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":"127747400","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}
引用次数: 24
Compiling for multi-language task migration 编译多语言任务迁移
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816713
M. Feeley
{"title":"Compiling for multi-language task migration","authors":"M. Feeley","doi":"10.1145/2816707.2816713","DOIUrl":"https://doi.org/10.1145/2816707.2816713","url":null,"abstract":"Task migration allows a running program to continue its execution in a different destination environment. Increasingly, execution environments are defined by combinations of cultural and technological constraints, affecting the choice of host language, libraries and tools. A compiler supporting multiple target environments and task migration must be able to marshal continuations and then unmarshal and continue their execution, ideally, even if the language of the destination environment is different. In this paper, we propose a compilation approach based on a virtual machine that strikes a balance between implementation portability and efficiency. We explain its implementation within a Scheme compiler targeting JavaScript, PHP, Python, Ruby and Java -- some of the most popular host languages for web applications. As our experiments show, this approach compares well with other Scheme compilers targeting high-level languages in terms of execution speed, being sometimes up to 3 orders of magnitude faster.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"20 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":"130023156","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 empirical investigation of the effects of type systems and code completion on API usability using TypeScript and JavaScript in MS visual studio 在MS visual studio中使用TypeScript和JavaScript对类型系统和代码完成对API可用性的影响进行实证调查
Proceedings of the 11th Symposium on Dynamic Languages Pub Date : 2015-10-21 DOI: 10.1145/2816707.2816720
Lars Fischer, Stefan Hanenberg
{"title":"An empirical investigation of the effects of type systems and code completion on API usability using TypeScript and JavaScript in MS visual studio","authors":"Lars Fischer, Stefan Hanenberg","doi":"10.1145/2816707.2816720","DOIUrl":"https://doi.org/10.1145/2816707.2816720","url":null,"abstract":"Recent empirical studies that compared static and dynamic type systems on API usability showed a positive impact of static type systems on developer productivity in most cases. Nevertheless, it is unclear how large this effect is in comparison to other factors. One obvious factor in programming is tooling: It is commonly accepted that modern IDEs have a large positive impact on developers, although it is not clear which parts of modern IDEs are responsible for that. One possible---and for most developers obvious candidate---is code completion. This paper describes a 2x2 randomized trial that compares JavaScript and Microsoft's statically typed alternative TypeScript with and without code completion in MS Visual Studio. While the experiment shows (in correspondence to previous experiments) a large positive effect of the statically typed language TypeScript, the code completion effect is not only marginal, but also just approaching statistical significance. This seems to be an indicator that the effect of static type systems is larger than often assumed, at least in comparison to code completion.","PeriodicalId":111089,"journal":{"name":"Proceedings of the 11th Symposium on Dynamic Languages","volume":"8 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":"125318724","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}
引用次数: 17
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学术官方微信
小红书