English

Transient Typechecks are (Almost) Free

Programming Languages 2019-02-19 v3

Abstract

Transient gradual typing imposes run-time type tests that typically cause a linear slowdown in programs' performance. 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.

Keywords

Cite

@article{arxiv.1807.00661,
  title  = {Transient Typechecks are (Almost) Free},
  author = {Richard Roberts and Stefan Marr and Michael Homer and James Noble},
  journal= {arXiv preprint arXiv:1807.00661},
  year   = {2019}
}

Comments

Draft

R2 v1 2026-06-23T02:48:09.653Z