Show simple item record

Data from "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, Seán
dc.date.accessioned2024-01-16T07:46:12Z
dc.date.available2024-01-16T07:46:12Z
dc.date.issued2018-06-18
dc.identifier.urihttps://hdl.handle.net/10651/70831
dc.descriptionData from the article "F. Ortin, M. Garcia, S. McSweeney. Rule-based program specialization to optimize gradually typed code. Knowledge-Based Systems (179), pp. 145-173, 2019. https://doi.org/10.1016/j.knosys.2019.05.013"spa
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-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%.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, Spain through its support of the Campus of International Excellencespa
dc.language.isoengspa
dc.relation.isreferencedbyF. Ortin, M. Garcia, S. McSweeney. Rule-based program specialization to optimize gradually typed code. Knowledge-Based Systems (179), pp. 145-173, 2019. https://doi.org/10.1016/j.knosys.2019.05.013spa
dc.rightsOpen Data Commons Attribution License (ODC-By)
dc.rights.urihttps://opendatacommons.org/licenses/by/
dc.subjectGradual typingspa
dc.subjectProgram specializationspa
dc.subjectRule-based systemsspa
dc.subjectType safetyspa
dc.subjectRuntime performancespa
dc.titleData from "Rule-based program specialization to optimize gradually typed code"spa
dc.typedatasetspa
dc.identifier.doi10.17811/ruo_datasets.70831
dc.relation.projectIDinfo:eu-repo/grantAgreement/AEI/Plan Estatal de Investigación Científica y Técnica y de Innovación 2017-2020/RTI2018-099235-B-I00/ES/MODELADO DE USUARIO PARA PERSONALIZACION DE INTERFAZ GUIADO POR ANALISIS AUTOMATICO DE PATRONES DE COMPORTAMIENTO/ spa
dc.rights.accessRightsopen accessspa
dc.relation.ispartofURIhttp://hdl.handle.net/10651/53505
dc.publication.year2018


Files in this item

untranslated
untranslated

This item appears in the following Collection(s)

Show simple item record