{"title":"Method Lookup Simulation with a Gradual Typing Language","authors":"Esteban Allende, J. Fabry","doi":"10.1109/SCCC.2012.7","DOIUrl":null,"url":null,"abstract":"Historically, programming languages have taken one of two positions with respect to types: static typing or dynamic typing. However, in recent years, there has been research on a third option: gradual typing. Gradual typing allows a developer to choose what parts of the application are statically typed or dynamically typed. Focusing on the aspect of optimizing applications, there is a particular procedure: method lookup, that is a target for optimization by VM developers when trying to provide better performance. To optimize gradually typed applications, we investigate the use of a hybrid method lookup strategy that separates callsites, i.e. places of method invocation, in two kinds: statically typed and dynamically typed. The goal of our work is to measure its performance in interpreters. To achieve our goal, we have carried out a simulation of method invocation. The simulation consisted of creating the callsites and related objects, simulating the invocations and finally measuring the time taken to accomplish the method lookup.","PeriodicalId":211295,"journal":{"name":"2012 31st International Conference of the Chilean Computer Science Society","volume":"24 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-11-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 31st International Conference of the Chilean Computer Science Society","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SCCC.2012.7","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
Historically, programming languages have taken one of two positions with respect to types: static typing or dynamic typing. However, in recent years, there has been research on a third option: gradual typing. Gradual typing allows a developer to choose what parts of the application are statically typed or dynamically typed. Focusing on the aspect of optimizing applications, there is a particular procedure: method lookup, that is a target for optimization by VM developers when trying to provide better performance. To optimize gradually typed applications, we investigate the use of a hybrid method lookup strategy that separates callsites, i.e. places of method invocation, in two kinds: statically typed and dynamically typed. The goal of our work is to measure its performance in interpreters. To achieve our goal, we have carried out a simulation of method invocation. The simulation consisted of creating the callsites and related objects, simulating the invocations and finally measuring the time taken to accomplish the method lookup.