Back to search

Johns Hopkins University

Building a Typed Scripting Language

Abstract

dc:description.abstract

Since the 1990s, scripting languages (e.g. Python, Ruby, JavaScript, and many others) have gained widespread popularity. Features such as ad-hoc data manipulation, dynamic structural typing, and terse syntax permit rapid engineering and improve developer productivity. Unfortunately, programs written in scripting languages execute slower and are less scalable than those written in traditional languages (such as C or Java) due to the challenge of statically analyzing scripting languages' semantics. Although various research projects have made progress on this front, corner cases in the semantics of existing scripting languages continue to defy static analysis and software engineers must generally still choose between program performance and programmer performance when selecting a language. We address that dichotomy in this dissertation by designing a scripting language with the intent of statically analyzing it. We select a set of core primitives in which common language features such as object-orientation and case analysis can be encoded and give a sound and decidable type inference system for it. Our type theory is based on subtype constraint systems but is also closely related to abstract interpretation; we use this connection to guide development of the type system and to employ a novel type soundness proof strategy based on simulation. At the heart of our approach is a type indexed record we call the onion which supports asymmetric concatenation and dispatch; we use onions to formally encode a variety of features, including records, operator overloading, objects, and mixins. An optimistic call-site polymorphism model defined herein captures the ad-hoc, case-analysis-based reasoning often used in scripting languages. Although the language in this dissertation uses a particular set of core primitives, the strategy we use to design it is general: we demonstrate a simple, formulaic process for adding features such as integers and state.

Degree

thesis:*
Name thesis:degree_name
Ph.D.
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor dc:publisher
Johns Hopkins University
Year dc:date.issued
2015

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Palmer, Zachary Eli
Advisor dc:contributor.advisor
  • Smith, Scott F.
Committee members dc:contributor.committeemember
  • Foster, Jeffrey S.
  • Ahmad, Yanif N.

Subjects

dc:subject × 9

Rights

Language dc:language
en

Identifiers

dc:identifier.*
Repository record dc:identifier.uri
http://jhir.library.jhu.edu/handle/1774.2/39502

Chain of custody

source
Harvested from
Johns Hopkins University
Base URL
jscholarship.library.jhu.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Palmer, Zachary Eli. Building a Typed Scripting Language. Doctoral thesis, Johns Hopkins University, 2015. http://jhir.library.jhu.edu/handle/1774.2/39502