arrow
返回

Rule-based program specialization to optimize gradually typed code

delete2019-09-01
delete5
delete
OA
AI
F
Francisco Ortín *
M
Miguel García
S
Seán McSweeney
DOI:10.1016/j.knosys.2019.05.013delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Both static and dynamic typing provide different benefits to the programmer. Statically typed languages support earlier type error detection and more opportunities for compiler optimizations. Dynamically typed languages facilitate the development of runtime adaptable applications and rapid prototyping. Since both approaches provide benefits, gradually typed languages support both typing approaches in the very same programming language. Gradual typing has been an active research field in the last years, turning out to be a strong influence on commercial languages. However, one important drawback of gradual typing is the runtime performance cost of the additional type checks performed at runtime. In this article, we propose a rule-based program specialization mechanism to provide significant performance optimizations of gradually typed code. Our system gathers dynamic type information of the application by simulating its execution. That type information is used to optimize the generated code, reducing the number of type checks performed at runtime. Moreover, program specialization allows the early detection of compile-time type errors, providing static type safety. To ensure the correctness of the proposed approach, we prove its soundness and efficiency properties. The specialization system has been implemented as part of a full-fledged programming language, measuring the runtime performance gain. The generated code performs significantly better than the state-of-theart techniques to optimize dynamically typed code. Unlike the existing approaches, our system does not consume additional memory resources at runtime, because program specialization is performed statically. Program specialization involves an average compilation time increase from 2% to 11.75%. (C) 2019 Elsevier B.V. All rights reserved.
Keyword:
Gradual typing
Program specialization
Rule-based systems
Type safety
Runtime performance
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

Practical Inference With Systems of Gradual Implicative Rules
err2009-02-01
err26
errOAAI
errJones, Hazael; Charnomordic, Brigitte; Dubois, Didier; Guillaume, Serge
err分享
err收藏
A graph-based generic type system for object-oriented programs
err2013-01-09
err5
PREAI
errKe, Wei; Liu, Zhiming; Wang, Shuling; Zhao, Liang
err分享
err收藏
err分享
err收藏

期刊

K
Knowledge-Based Systems
IF:
7.6
论文数:
1.3W
被引数:
5.9W

机构

M
munster technological university (mtu)
学者数:
732
论文数: 668
被引数: 1.2K
U
University of Oviedo
学者数:
250
论文数: 104
被引数: 4.8K
引用论文

引用论文

A Comprehensive Evaluation of Common Python Implementations
err2015-07-01
err25
PREAI
errRedondo, Jose Manuel; Ortin, Francisco
err分享
err收藏
err分享
err收藏
学者 查看更多内容