Transient Typechecks are (Almost) Free

Richard Roberts, Stefan Marr, Michael Homer, James Noble

Research output: Chapter in Book/Report/Conference proceedingConference proceedingspeer-review

Abstract

Transient gradual typing imposes run-time type tests that typically cause a linear slowdown. This performance impact discourages the use of type annotations because adding types to a program makes the program slower. A virtual machine can employ standard just-in-time optimizations to reduce the overhead of transient checks to near zero. These optimizations can give gradually-typed languages performance comparable to state-of-the-art dynamic languages, so programmers can add types to their code without affecting their programs' performance.
Original languageEnglish
Title of host publication33rd European Conference on Object-Oriented Programming
EditorsAlastair F. Donaldson
PublisherSchloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
Pages5:1-5:28
Volume134
ISBN (Electronic)9783959771115
ISBN (Print)978-3-95977-111-5
DOIs
Publication statusPublished - 15 Jul 2019
Externally publishedYes

Publication series

NameECOOP
PublisherSchloss Dagstuhl--Leibniz-Zentrum fuer Informatik

Fields of science

  • 102 Computer Sciences

Cite this