/////////////////////////////////////////////////////////////////////
// Papers on Thorn (scripting, dynamic PLs, gradual typing)
/////////////////////////////////////////////////////////////////////

Integration of Typed and Untyped Code in Thorn

Tobias Wrigstad, Francesco Zappa Nardelli, Sylvain Lebresne, Johan Östlund & Jan Vitek.

Accepted for POPL 2010.

ABSTRACT

Many large software systems originate from untyped scripting language code. While good for initial development, the lack of static type annotations can impact code-quality and performance in the long run. We present an approach for integrating untyped code and typed code in the same system to allow an initial prototype to smoothly evolve into an efficient and robust program. We introduce like types, a novel intermediate point between dynamic and static typing. Occurrences of like types variables are checked statically within their scope but, as they may be bound to dynamic values, their usage is checked dynamically. Thus like types provide some of the benefits of static typing without decreasing the expressiveness of the language. We provide a formal account of like types in a core object calculus and evaluate their applicability in the context of a new scripting language.

Download paper.

Download [EXTENDED] paper [WITH PROOFS].

Thorn---Robust, Concurrent, Extensible Scripting on the JVM

Bard Bloom, John Field, Nate Nystrom Johan Östlund, Gregor Richards Rok Strnisa, Jan Vitek, & Tobias Wrigstad.

Accepted for OOPSLA'09.

ABSTRACT

Scripting languages enjoy great popularity due to their support for rapid and exploratory development. They typically have lightweight syntax, weak data privacy, dynamic typing, powerful aggregate data types, and allow execution of the completed parts of incomplete programs. The price of these features comes later in the software life cycle. Scripts are hard to evolve and compose, and often slow. An additional weakness of most scripting languages is lack of support for concurrency---though concurrency is required for scalability and interacting with remote services. This paper reports on the design and implementation of Thorn, a novel programming language targeting the JVM. Our principal contributions are a careful selection of features that support the evolution of scripts into industrial grade programs---e.g., an expressive module system, an optional type annotation facility for declarations, and support for concurrency based on message passing between lightweight, isolated processes. On the implementation side, Thorn has been designed to accommodate the evolution of the language itself through a compiler plugin mechanism and target the Java virtual machine.

Download paper.

Visit the Thorn homepage.