Software Open Access

Can Advanced Type Systems Be Usable? An Empirical Study of Ownership, Assets, and Typestate in Obsidian (Artifact)

Coblenz, Michael; Aldrich, Jonathan; Myers, Brad A.; Sunshine, Joshua


DataCite XML Export

<?xml version='1.0' encoding='utf-8'?>
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd">
  <identifier identifierType="DOI">10.5281/zenodo.4035150</identifier>
  <creators>
    <creator>
      <creatorName>Coblenz, Michael</creatorName>
      <givenName>Michael</givenName>
      <familyName>Coblenz</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="http://orcid.org/">0000-0002-9369-4069</nameIdentifier>
      <affiliation>Carnegie Mellon University</affiliation>
    </creator>
    <creator>
      <creatorName>Aldrich, Jonathan</creatorName>
      <givenName>Jonathan</givenName>
      <familyName>Aldrich</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="http://orcid.org/">0000-0003-0631-5591</nameIdentifier>
      <affiliation>Carnegie Mellon University</affiliation>
    </creator>
    <creator>
      <creatorName>Myers, Brad A.</creatorName>
      <givenName>Brad A.</givenName>
      <familyName>Myers</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="http://orcid.org/">0000-0002-4769-0219</nameIdentifier>
      <affiliation>Carnegie Mellon University</affiliation>
    </creator>
    <creator>
      <creatorName>Sunshine, Joshua</creatorName>
      <givenName>Joshua</givenName>
      <familyName>Sunshine</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="http://orcid.org/">0000-0002-9672-5297</nameIdentifier>
      <affiliation>Carnegie Mellon University</affiliation>
    </creator>
  </creators>
  <titles>
    <title>Can Advanced Type Systems Be Usable? An Empirical Study of Ownership, Assets, and Typestate in Obsidian (Artifact)</title>
  </titles>
  <publisher>Zenodo</publisher>
  <publicationYear>2020</publicationYear>
  <subjects>
    <subject>typestate</subject>
    <subject>linear types</subject>
    <subject>ownership</subject>
    <subject>assets</subject>
    <subject>permissions</subject>
    <subject>blockchain</subject>
    <subject>smart contracts</subject>
    <subject>empirical studies of programmers</subject>
    <subject>empirical studies of programming languages</subject>
  </subjects>
  <dates>
    <date dateType="Issued">2020-09-17</date>
  </dates>
  <language>en</language>
  <resourceType resourceTypeGeneral="Software"/>
  <alternateIdentifiers>
    <alternateIdentifier alternateIdentifierType="url">https://zenodo.org/record/4035150</alternateIdentifier>
  </alternateIdentifiers>
  <relatedIdentifiers>
    <relatedIdentifier relatedIdentifierType="DOI" relationType="IsVersionOf">10.5281/zenodo.4035149</relatedIdentifier>
    <relatedIdentifier relatedIdentifierType="URL" relationType="IsPartOf">https://zenodo.org/communities/empirical-software-engineering</relatedIdentifier>
  </relatedIdentifiers>
  <rightsList>
    <rights rightsURI="http://www.opensource.org/licenses/bsd-license.php">BSD licenses (New and Simplified)</rights>
    <rights rightsURI="info:eu-repo/semantics/openAccess">Open Access</rights>
  </rightsList>
  <descriptions>
    <description descriptionType="Abstract">&lt;p&gt;&lt;strong&gt;Abstract&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Some blockchain programs (smart contracts) have included serious security vulnerabilities. Obsidian is a new typestate-oriented programming language that uses a strong type system to rule out some of these vulnerabilities. Although Obsidian was designed to promote &lt;em&gt;usability&lt;/em&gt;&amp;nbsp;to make it as easy as possible to write programs, strong type systems can cause a language to be difficult to use. In particular, ownership, typestate, and assets, which Obsidian uses to provide safety guarantees, have not seen broad adoption together in popular languages and result in significant usability challenges. We performed an empirical study with 20 participants comparing Obsidian to Solidity, which is the language most commonly used for writing smart contracts today. We observed that Obsidian participants were able to successfully complete more of the programming tasks than the Solidity participants. We also found that asset-related bugs, which Obsidian detects at compile time, were commonly accidentally inserted by the Solidity participants.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Artifact&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The artifact supports replication of the experiment described in the paper. For instructions regarding how to use the artifact, please see the included artifact evaluation guide.&lt;/p&gt;</description>
    <description descriptionType="Other">Additional funding sources:

NSA award H9823018D0008
NSF award CCF1901033
USAF award FA8702-15-D-0002
IBM
Ripple</description>
  </descriptions>
  <fundingReferences>
    <fundingReference>
      <funderName>National Science Foundation</funderName>
      <funderIdentifier funderIdentifierType="Crossref Funder ID">10.13039/100000001</funderIdentifier>
      <awardNumber awardURI="info:eu-repo/grantAgreement/NSF/CISE/OAD/1423054/">1423054</awardNumber>
      <awardTitle>TWC: Small: Empirical Evaluation of the Usability and Security Implications of Application Programming Interface Design</awardTitle>
    </fundingReference>
  </fundingReferences>
</resource>
87
8
views
downloads
All versions This version
Views 8787
Downloads 88
Data volume 491.8 MB491.8 MB
Unique views 8080
Unique downloads 66

Share

Cite as