Work

Demand-driven type inference with subgoal pruning

Year: 2005
Type: dissertation
Abstract: Highly dynamic languages like Smalltalk do not have much static type\ninformation immediately available before the program runs. Static\ntypes can still be inferred by analysis tools, but historically, such\nanalysis is only effective on smaller programs of at most a few tens\nof thousands of lines of code.\n\nThis dissertation presents a new type inference algorithm, DDP,\nthat is effective on larger programs with hundreds of thousands\nof lines of code. The approach of the algorithm borrows from the\nfield of knowledge-based systems: it is a demand-driven algorithm that\nsometimes prunes subgoals. The algorithm is formally described,\nproven correct, and implemented. Experimental results show that the\ninferred types are usefully precise. A complete program understanding\napplication, Chuck, has been developed that uses DDP type\ninferences.\n\nThis work contributes the DDP algorithm itself, the most thorough\nsemantics of Smalltalk to date, a new general approach for analysis\nalgorithms, and experimental analysis of DDP including\ndetermination of useful parameter settings. It also contributes\nan implementation of DDP, a general analysis framework for\nSmalltalk, and a complete end-user application that uses DDP.
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W2147749818
Cites: 74
Cited by: 7
Related to: 10