pith. sign in

arxiv: 1112.4106 · v3 · pith:YVMAENCQnew · submitted 2011-12-18 · 💻 cs.PL

Dependent Types for JavaScript

classification 💻 cs.PL
keywords javascriptdependentheapprototypetypesarraysbenchmarkbook
0
0 comments X
read the original abstract

We present Dependent JavaScript (DJS), a statically-typed dialect of the imperative, object-oriented, dynamic language. DJS supports the particularly challenging features such as run-time type-tests, higher-order functions, extensible objects, prototype inheritance, and arrays through a combination of nested refinement types, strong updates to the heap, and heap unrolling to precisely track prototype hierarchies. With our implementation of DJS, we demonstrate that the type system is expressive enough to reason about a variety of tricky idioms found in small examples drawn from several sources, including the popular book JavaScript: The Good Parts and the SunSpider benchmark suite.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.