Can advanced type systems be usable? An empirical study of ownership, assets, and typestate in Obsidian

Author:

Coblenz Michael1ORCID,Aldrich Jonathan1ORCID,Myers Brad A.1ORCID,Sunshine Joshua1ORCID

Affiliation:

1. Carnegie Mellon University, USA

Abstract

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 usability 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 the Solidity participants commonly inserted asset-related bugs, which Obsidian detects at compile time.

Funder

National Science Foundation

International Business Machines Corporation

Air Force Office of Scientific Research

National Security Agency

Ripple, Inc.

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference50 articles.

1. Jonathan Aldrich Joshua Sunshine Darpan Saini and Zachary Sparks. 2009. Typestate-oriented Programming. In Companion of Object Oriented Programming Systems Languages and Applications (OOPSLA '09). 1015-1022. https://doi.org/10.1145/ 1639950.1640073 10.1145/1639950.1640073 Jonathan Aldrich Joshua Sunshine Darpan Saini and Zachary Sparks. 2009. Typestate-oriented Programming. In Companion of Object Oriented Programming Systems Languages and Applications (OOPSLA '09). 1015-1022. https://doi.org/10.1145/ 1639950.1640073 10.1145/1639950.1640073

2. Compiler Error Messages Considered Unhelpful

3. Kevin Bierhof and Jonathan Aldrich. 2007. Modular Typestate Checking of Aliased Objects. In Object-oriented programming systems languages and applications ( OOPSLA '07). 301-320. https://doi.org/10.1145/1297027.1297050 10.1145/1297027.1297050 Kevin Bierhof and Jonathan Aldrich. 2007. Modular Typestate Checking of Aliased Objects. In Object-oriented programming systems languages and applications ( OOPSLA '07). 301-320. https://doi.org/10.1145/1297027.1297050 10.1145/1297027.1297050

4. Session Types as Intuitionistic Linear Propositions

Cited by 12 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Dafny vs. Dala: Experience with Mechanising Language Design;Proceedings of the 26th ACM International Workshop on Formal Techniques for Java-like Programs;2024-09-20

2. Liquidity analysis in resource-aware programming;Journal of Logical and Algebraic Methods in Programming;2023-10

3. How to Evaluate Blame for Gradual Types, Part 2;Proceedings of the ACM on Programming Languages;2023-08-30

4. Usability-Oriented Design of Liquid Types for Java;2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE);2023-05

5. Pacta sunt servanda: Legal contracts in;Science of Computer Programming;2023-01

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3