Home

About

Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network
FAQHELPSITE MAPCONTACT US


  Advanced Search  

 
Static Type Inference in a Dynamically Typed Language Alexander Aiken
 

Summary: Static Type Inference in a Dynamically Typed Language
Alexander Aiken
IBM Almaden Research Center
650 Harry Rd.
San Jose, CA 95120
email: aiken@ibm.com
Brian R. Murphy
Computer Science Department
Stanford University
Stanford, CA 94305
email: brm@neon.stanford.edu
Abstract
We present a type inference system for FL based on an operational, rather than a denotational, formulation
of types. The essential elements of the system are a type language based on regular trees and a type inference
logic that implements an abstract interpretation of the operational semantics of FL. We use a non­standard
approach to type inference because our requirements---using type information in the optimization of functional
programs---differ substantially from those of other type systems.
1 Introduction
Compilers derive at least two benefits from static type inference: the ability to detect and report potential run­time
errors at compile­time, and the use of type information in program optimization. Traditionally, type systems have

  

Source: Aiken, Alex - Department of Computer Science, Stanford University

 

Collections: Computer Technologies and Information Sciences