<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-22T20:09:17Z</responseDate><request verb="GetRecord" identifier="oai:uwspace.uwaterloo.ca:10012/19362" metadataPrefix="dim">https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request</request><GetRecord><record><header><identifier>oai:uwspace.uwaterloo.ca:10012/19362</identifier><datestamp>2025-03-26T23:36:09Z</datestamp><setSpec>com_10012_9924</setSpec><setSpec>com_10012_1</setSpec><setSpec>col_10012_9930</setSpec><setSpec>col_10012_6</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="advisor">Lhoták, Ondřej</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="author" authority="23290139-90fb-45f0-83bf-883630d59691" confidence="600">D&amp;apos;Souza, Matthew</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2023-04-28T18:33:37Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2023-04-28T18:33:37Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2023-04-28</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">2023-04-27</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">http://hdl.handle.net/10012/19362</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract" lang="en">Parametric polymorphism is a language feature that lets programmers define code that behaves independently of the types of values it operates on.&#xd;
Using parametric polymorphism enables code reuse and improves the maintainability of software projects.&#xd;
&#xd;
The approach that a language implementation uses to support parametric polymorphism can have important performance implications.&#xd;
One such approach, erasure, converts generic code to non-generic code that uses a uniform representation for generic data.&#xd;
Erasure is notorious for introducing primitive boxing and other indirections that harm the performance of generic code.&#xd;
More generally, erasure destroys type information that could be used by the language implementation to optimize generic code.&#xd;
&#xd;
This thesis presents TASTyTruffle, a new interpreter for the Scala language.&#xd;
Whereas the standard Scala implementation executes erased Java Virtual Machine (JVM) bytecode, TASTyTruffle interprets TASTy, a different representation that has precise type information.&#xd;
This thesis explores how the type information present in TASTy empowers TASTyTruffle to implement generic code more effectively.&#xd;
In particular, TASTy&amp;apos;s type information allows TASTyTruffle to reify types as objects that can be passed around the interpreter.&#xd;
These reified types are used to support heterogeneous box-free representations of generic values.&#xd;
Reified types also enable TASTyTruffle to create specialized, monomorphic copies of generic code that can be easily and reliably optimized by its just-in-time (JIT) compiler.&#xd;
&#xd;
Empirically, TASTyTruffle is competitive with the standard JVM implementation.&#xd;
Both implementations perform similarly on monomorphic workloads, but when generic code is used with multiple types, TASTyTruffle consistently outperforms the JVM.&#xd;
TASTy&amp;apos;s type information enables TASTyTruffle to find additional optimization opportunities that could not be uncovered with erased JVM bytecode alone.</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso" lang="en">en</dim:field>
   <dim:field mdschema="dc" element="publisher" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">reified types</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">parametric polymorphism</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">just-in-time compilers</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">Scala</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">erasure</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">monomorphization</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">Truffle</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">Graal</dim:field>
   <dim:field mdschema="dc" element="title" lang="en">Efficient Implementation of Parametric Polymorphism using Reified Types</dim:field>
   <dim:field mdschema="dc" element="type" lang="en">Master Thesis</dim:field>
   <dim:field mdschema="dc" element="pending">false</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="department" lang="en">David R. Cheriton School of Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="discipline" lang="en">Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="grantor" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="uws-etd" element="degree" lang="en">Master of Mathematics</dim:field>
   <dim:field mdschema="uws-etd" element="embargo" qualifier="terms" lang="en">0</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="advisor">Lhoták, Ondřej</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="affiliation1" lang="en">Faculty of Mathematics</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="city" lang="en">Waterloo</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="country" lang="en">Canada</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="province" lang="en">Ontario</dim:field>
   <dim:field mdschema="uws" element="typeOfResource" lang="en">Text</dim:field>
   <dim:field mdschema="uws" element="peerReviewStatus" lang="en">Unreviewed</dim:field>
   <dim:field mdschema="uws" element="scholarLevel" lang="en">Graduate</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>