<?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-22T18:49:19Z</responseDate><request verb="GetRecord" identifier="oai:uwspace.uwaterloo.ca:10012/17237" metadataPrefix="dim">https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request</request><GetRecord><record><header><identifier>oai:uwspace.uwaterloo.ca:10012/17237</identifier><datestamp>2025-03-26T23:33:04Z</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">Richards, Gregor</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="author" authority="bb16130d-5ad2-4038-8b5c-3c1a268313be" confidence="600">Zi, Yangtian</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2021-08-24T18:52:48Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2021-08-24T18:52:48Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2021-08-24</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">2021-08-11</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">http://hdl.handle.net/10012/17237</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract" lang="en">Gradual type systems with the monotonic dynamic semantics, such as HiggsCheck implementing SafeTypeScript, are able to achieve decent performance, making them a viable option for JavaScript programmers seeking run-time-checkable type annotations. &#xd;
However, the type restrictions for objects in the monotonic dynamic semantics are, as the name suggests, monotonic.&#xd;
Once a typed reference is defined or assigned to refer to an object, the contract carrying the type obligation of the reference is part of the object for the remainder of execution.&#xd;
In some cases, such contracts become &amp;quot;zombies&amp;quot;: the reference that justifies a contract is out of scope, yet the object still retains the type obligation.&#xd;
&#xd;
In this thesis, we propose a novel idea of contract liveness and its implementation.&#xd;
Briefly speaking, contracts must be justified by live stack references defined with associated type obligations.&#xd;
Our implementation, taking inspiration from how garbage collectors approximate object liveness by reachability of objects, approximates contract liveness by reachability of contracts.&#xd;
Then, to achieve a much closer approximation to contract liveness, we introduce a poisoning process:&#xd;
we nullify the stack references justifying the violated contract, and associate the location that triggered the contract violation with a poisoned reference for blame.&#xd;
&#xd;
The implementation is compared with the original implementation of HiggsCheck. The comparison shows our system is fully compatible with code that raised no errors, with a small performance penalty of 8.14% average slowdown.&#xd;
We also discuss the performance of the contract removal process, and possible worst cases for the liveness-based system.&#xd;
Also, the semantics of HiggsCheck SafeTypeScript is modified to formalize the liveness-based type system.&#xd;
Our work proves that relaxations of contractual obligations in a gradually typed system with the monotonic semantics are viable and realistic.</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">gradual typing</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">liveness-based type justification</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">monotonic dynamic semantics</dim:field>
   <dim:field mdschema="dc" element="title" lang="en">No Zombie Types: Liveness-Based Justification For Monotonic Gradual 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">Richards, Gregor</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>