An analysis of the dynamic behavior of JavaScript programs
Authors:
Open Access
- 5 June 2010
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 45 (6) , 1-12
Abstract
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.Keywords
This publication has 16 references indexed in Scilit:
- Understanding the dynamics of JavaScript2009
- Type Analysis for JavaScript2009
- How Do Java Programs Use Inheritance? An Empirical Study of Inheritance in Java Software2008
- The design and implementation of typed scheme2008
- The Lively Kernel A Self-supporting System on a Web Page2008
- JavaScript instrumentation for browser security2007
- Type Checking for JavaScriptElectronic Notes in Theoretical Computer Science, 2005
- Towards a Type System for Analyzing JavaScript ProgramsLecture Notes in Computer Science, 2005
- Dynamic metrics for java2003
- An efficient implementation of SELF a dynamically-typed object-oriented language based on prototypesACM SIGPLAN Notices, 1989