<?xml version="1.0" encoding="UTF-8"?>
<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-07-21T19:24:50Z</responseDate>
  <request identifier="7264" metadataPrefix="oai_dc" verb="GetRecord">https://drops.dagstuhl.de/oai</request>
  <GetRecord>
    <record>
      <header>
        <identifier>oai:drops-oai.dagstuhl.de:7264</identifier>
        <datestamp>2024-03-06T10:39:46Z</datestamp>
        <setSpec>ddc:004</setSpec>
        <setSpec>open_access</setSpec>
      </header>
      <metadata>
        <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
          <dc:title>Mixed Messages: Measuring Conformance and Non-Interference in TypeScript</dc:title>
          <dc:creator>Williams, Jack</dc:creator>
          <dc:creator>Morris, J. Garrett</dc:creator>
          <dc:creator>Wadler, Philip</dc:creator>
          <dc:creator>Zalewski, Jakub</dc:creator>
          <dc:subject>Gradual Typing</dc:subject>
          <dc:subject>TypeScript</dc:subject>
          <dc:subject>JavaScript</dc:subject>
          <dc:subject>Proxies</dc:subject>
          <dc:description>TypeScript participates in the recent trend among programming&#13;
languages to support gradual typing. The DefinitelyTyped Repository&#13;
for TypeScript supplies type definitions for over 2000 popular&#13;
JavaScript libraries. However, there is no guarantee that&#13;
implementations conform to their corresponding declarations.&#13;
&#13;
We present a practical evaluation of gradual typing for TypeScript.&#13;
We have developed a tool for use with TypeScript, based on the&#13;
polymorphic blame calculus, for monitoring JavaScript libraries and&#13;
TypeScript clients against the TypeScript definition. We apply our&#13;
tool, TypeScript TPD, to those libraries in the DefinitelyTyped&#13;
Repository which had adequate test code to use. Of the 122 libraries&#13;
we checked, 62 had cases where either the library or its tests&#13;
failed to conform to the declaration.&#13;
&#13;
Gradual typing should satisfy non-interference. Monitoring a program&#13;
should never change its behaviour, except to raise a type error&#13;
should a value not conform to its declared type. However, our&#13;
experience also suggests serious technical concerns with the use of&#13;
the JavaScript proxy mechanism for enforcing contracts. Of the 122&#13;
libraries we checked, 22 had cases where the library or its tests&#13;
violated non-interference.</dc:description>
          <dc:publisher>Schloss Dagstuhl – Leibniz-Zentrum für Informatik</dc:publisher>
          <dc:contributor>Jack Williams and J. Garrett Morris and Philip Wadler and Jakub Zalewski</dc:contributor>
          <dc:date>2017</dc:date>
          <dc:relation>Is Part Of LIPIcs, Volume 74, 31st European Conference on Object-Oriented Programming (ECOOP 2017)</dc:relation>
          <dc:type>InProceedings</dc:type>
          <dc:type>Text</dc:type>
          <dc:type>doc-type:ResearchArticle</dc:type>
          <dc:type>publishedVersion</dc:type>
          <dc:format>application/pdf</dc:format>
          <dc:identifier>doi:10.4230/LIPIcs.ECOOP.2017.28</dc:identifier>
          <dc:identifier>urn:nbn:de:0030-drops-72640</dc:identifier>
          <dc:identifier>https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ECOOP.2017.28</dc:identifier>
          <dc:language>eng</dc:language>
          <dc:rights>https://creativecommons.org/licenses/by/3.0/legalcode</dc:rights>
        </oai_dc:dc>
      </metadata>
    </record>
  </GetRecord>
</OAI-PMH>
