An analysis of the dynamic behavior of JavaScript programs
Author(s) -
Gregor Richards,
Sylvain Lebresne,
Brian R. Burg,
Jan Vítek
Publication year - 2010
Publication title -
acm sigplan notices
Language(s) - English
Resource type - Journals
eISSN - 1558-1160
pISSN - 0362-1340
DOI - 10.1145/1809028.1806598
Subject(s) - unobtrusive javascript , javascript , computer science , programming language , compiler , correctness , just in time compilation , web application , dynamism , benchmark (surveying) , rich internet application , software engineering , world wide web , physics , geodesy , quantum mechanics , geography
The JavaScript programming language is widely used for web programming and, increasingly, for general purpose computing. As such, improving the correctness, security and performance of JavaScript applications has been the driving force for research in type systems, static analysis and compiler techniques for this language. Many of these techniques aim to reign in some of the most dynamic features of the language, yet little seems to be known about how programmers actually utilize the language or these features. In this paper we perform an empirical study of the dynamic behavior of a corpus of widely-used JavaScript programs, and analyze how and why the dynamic features are used. We report on the degree of dynamism that is exhibited by these JavaScript programs and compare that with assumptions commonly made in the literature and accepted industry benchmark suites.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom