Mostrar el registro sencillo del ítem

Rule-based program specialization to optimize gradually typed code

dc.contributor.authorOrtín Soler, Francisco 
dc.contributor.authorGarcía Rodríguez, Miguel 
dc.contributor.authorMcSweeney, Sean
dc.date.accessioned2019-12-10T08:19:09Z
dc.date.available2019-12-10T08:19:09Z
dc.date.issued2019-09-01
dc.identifier.citationKnowledge-Based Systems, 179(1), p. 145-173 (2019); doi:10.1016/j.knosys.2019.05.013
dc.identifier.issn0950-7051
dc.identifier.urihttp://hdl.handle.net/10651/53505
dc.description.abstractBoth 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-the-art 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%.spa
dc.description.sponsorshipThis work has been partially funded by the Spanish Department of Science, Innovation and Universities: project RTI2018-099235-B-I00. The authors have also received funds from the Banco Santander through its support to the Campus of International Excellence.spa
dc.format.extentp. 145-173spa
dc.language.isoengspa
dc.relation.ispartofKnowledge-Based Systems, 179spa
dc.rights© 2019 Elsevier B.V.
dc.rightsCC Reconocimiento – No Comercial – Sin Obra Derivada 4.0 Internacional
dc.rights.urihttp://creativecommons.org/licenses/by-nc-nd/4.0/
dc.subjectGradual typingspa
dc.subjectprogram specializationspa
dc.subjectrule-based systemsspa
dc.subjecttype safetyspa
dc.subjectruntime performancespa
dc.titleRule-based program specialization to optimize gradually typed codespa
dc.typejournal articlespa
dc.identifier.doi10.1016/j.knosys.2019.05.013
dc.relation.projectIDRTI2018-099235-B-I00spa
dc.relation.publisherversionhttps://doi.org/10.1016/j.knosys.2019.05.013
dc.rights.accessRightsopen accessspa
dc.rights.accessRightsopen access
dc.relation.ispartofURIhttps://hdl.handle.net/10651/70831
dc.type.hasVersionAM


Ficheros en el ítem

untranslated

Este ítem aparece en la(s) siguiente(s) colección(ones)

Mostrar el registro sencillo del ítem

© 2019 Elsevier B.V.
Este ítem está sujeto a una licencia Creative Commons