Object-Oriented Type Inference for Telescoping Languages

dc.contributor.authorAllen, Eric
dc.contributor.authorKennedy, Ken
dc.contributor.authorMcCosh, Cheryl
dc.date.accessioned2017-08-02T22:03:02Z
dc.date.available2017-08-02T22:03:02Z
dc.date.issued2004
dc.date.note2004
dc.description.abstractThe telescoping-languages approach achieves high performance from applications encoded as high-level scripts. The core idea is to pre-compile underlying libraries to generate multiple variants optimized for use indifferent possible contexts including different argument types. We have previously developed a type inference algorithm that enables type-based specialization. The algorithm infers types over untyped library procedures before actual inputs are known. Type inference is necessary both to determine the minimum number of variants needed to handle all possible uses of the library procedure as well as to statically determine, for each variant, which optimized implementations should be dispatched at each call location. In this paper, we extend the type inference algorithm to handle user-defined types in an object-oriented scripting language such as Python. Variants will be generated in order to eliminate dynamic dispatch where possible. This will allow for faster runtimes as well as enable more cross-method optimizations. Two problems that arise when handling user-defined types are the lack of abound on the number of types and the possibility of extensions to the type hierarchy after type inference. We address these problems and describe the type inference solution.
dc.format.extent6 pp
dc.identifier.citationAllen, Eric, Kennedy, Ken and McCosh, Cheryl. "Object-Oriented Type Inference for Telescoping Languages." (2004) https://hdl.handle.net/1911/96332.
dc.identifier.digitalTR04-441
dc.identifier.urihttps://hdl.handle.net/1911/96332
dc.language.isoeng
dc.rightsYou are granted permission for the noncommercial reproduction, distribution, display, and performance of this technical report in any format, but this permission is only for a period of forty-five (45) days from the most recent time that you verified that this technical report is still available from the Computer Science Department of Rice University under terms that include this permission. All other rights are reserved by the author(s).
dc.titleObject-Oriented Type Inference for Telescoping Languages
dc.typeTechnical report
dc.type.dcmiText
Files
Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
TR04-441.pdf
Size:
144.16 KB
Format:
Adobe Portable Document Format